www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - -cov crashing dmd

reply Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
After a long long time I managed to get it down to this, 
changing/removing anything else makes code compile.

I compile it like this:

build main.d -full -clean -cov
Dec 05 2005
next sibling parent reply "Walter Bright" <newshound digitalmars.com> writes:
"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message
news:dn20e8$1q23$1 digitaldaemon.com...
 After a long long time I managed to get it down to this,
 changing/removing anything else makes code compile.

 I compile it like this:

 build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
Dec 05 2005
next sibling parent reply Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
Walter Bright wrote:
 "Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message
 news:dn20e8$1q23$1 digitaldaemon.com...
 
After a long long time I managed to get it down to this,
changing/removing anything else makes code compile.

I compile it like this:

build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
Dec 05 2005
parent reply Derek Parnell <derek psych.ward> writes:
On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:

 Walter Bright wrote:
 "Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message
 news:dn20e8$1q23$1 digitaldaemon.com...
 
After a long long time I managed to get it down to this,
changing/removing anything else makes code compile.

I compile it like this:

build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 12:23:06 PM
Dec 05 2005
next sibling parent "Walter Bright" <newshound digitalmars.com> writes:
"Derek Parnell" <derek psych.ward> wrote in message
news:hfmw5i74yg20.19uyy5ema0dii.dlg 40tude.net...
 No, it doesn't like the order that Build gives it to DMD.

    main LR ivan_set : works
    LR main ivan_set : works
    main ivan_set LR : fails
    ivan_set main LR : fails
    LR ivan_set main : works
    ivan_set lr main : fails
Thanks. I am able to reproduce it now.
Dec 05 2005
prev sibling parent reply Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
Derek Parnell wrote:
 On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:
 
 
Walter Bright wrote:

"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message
news:dn20e8$1q23$1 digitaldaemon.com...


After a long long time I managed to get it down to this,
changing/removing anything else makes code compile.

I compile it like this:

build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
Dec 05 2005
parent reply Derek Parnell <derek psych.ward> writes:
On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:

 Derek Parnell wrote:
 On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:
 
Walter Bright wrote:

"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message
news:dn20e8$1q23$1 digitaldaemon.com...


After a long long time I managed to get it down to this,
changing/removing anything else makes code compile.

I compile it like this:

build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 6:06:18 PM
Dec 05 2005
parent reply Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
Derek Parnell wrote:
 On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:
   main LR ivan_set : works
   LR main ivan_set : works   
   main ivan_set LR : fails
   ivan_set main LR : fails
   LR ivan_set main : works
   ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases.
But it doesn't to me. Have yout tried: dmd main ivan_set LR -cov dmd ivan_set main LR -cov dmd ivan_set lr main -cov I got so crazy removing stuff from these 3 files that in the end i also removed main, but main isn't the problem, the problem is it doesn't work with -cov with some orders of files.
Dec 05 2005
next sibling parent Derek Parnell <derek psych.ward> writes:
On Tue, 06 Dec 2005 08:38:21 +0100, Ivan Senji wrote:

 Derek Parnell wrote:
 On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:
   main LR ivan_set : works
   LR main ivan_set : works   
   main ivan_set LR : fails
   ivan_set main LR : fails
   LR ivan_set main : works
   ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases.
But it doesn't to me. Have yout tried: dmd main ivan_set LR -cov dmd ivan_set main LR -cov dmd ivan_set lr main -cov I got so crazy removing stuff from these 3 files that in the end i also removed main, but main isn't the problem, the problem is it doesn't work with -cov with some orders of files.
LOL ... stupid me ... I forgot the '-cov' switch when testing ... Sorry. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 6:59:17 PM
Dec 05 2005
prev sibling parent reply "Kris" <fu bar.com> writes:
There's a bug posting from a while back noting similar behaviour for 
"circular dependencies" ~ compiled one way the executable runs, whilst 
compiling in a different order causes that error message to show up. Wierd.

- Kris

"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message 
news:dn3f5e$7p0$1 digitaldaemon.com...
 Derek Parnell wrote:
 On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:
   main LR ivan_set : works
   LR main ivan_set : works   main ivan_set LR : fails
   ivan_set main LR : fails
   LR ivan_set main : works
   ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases.
But it doesn't to me. Have yout tried: dmd main ivan_set LR -cov dmd ivan_set main LR -cov dmd ivan_set lr main -cov I got so crazy removing stuff from these 3 files that in the end i also removed main, but main isn't the problem, the problem is it doesn't work with -cov with some orders of files.
Dec 06 2005
parent Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
Kris wrote:
 There's a bug posting from a while back noting similar behaviour for 
 "circular dependencies" ~ compiled one way the executable runs, whilst 
 compiling in a different order causes that error message to show up. Wierd.
 
I know, that one has been more or less around forever :), but what is interesting is that in this case -cov causes it, and everything works fine without it.
Dec 06 2005
prev sibling parent Derek Parnell <derek psych.ward> writes:
On Mon, 5 Dec 2005 10:40:27 -0800, Walter Bright wrote:

 Path: digitalmars.com!not-for-mail
 From: "Walter Bright" <newshound digitalmars.com>
 Newsgroups: digitalmars.D.bugs
 Subject: Re: -cov crashing dmd
 Date: Mon, 5 Dec 2005 10:40:27 -0800
 Organization: Digital Mars
 Lines: 18
 Message-ID: <dn22qr$1sum$1 digitaldaemon.com>
 References: <dn20e8$1q23$1 digitaldaemon.com>
 X-Trace: digitaldaemon.com 1133809308 62422 24.16.50.251 (5 Dec 2005 19:01:48
GMT)
 X-Complaints-To: usenet digitalmars.com
 NNTP-Posting-Date: Mon, 5 Dec 2005 19:01:48 +0000 (UTC)
 X-Priority: 3
 X-MSMail-Priority: Normal
 X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
 Xref: digitalmars.com digitalmars.D.bugs:5752
 
 "Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message
 news:dn20e8$1q23$1 digitaldaemon.com...
 After a long long time I managed to get it down to this,
 changing/removing anything else makes code compile.

 I compile it like this:

 build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
Try ... dmd -cov main ivan_set LR That will crash it. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 12:15:16 PM
Dec 05 2005
prev sibling parent reply clayasaurus <clayasaurus gmail.com> writes:
Ivan Senji wrote:
 After a long long time I managed to get it down to this, 
 changing/removing anything else makes code compile.
 
 I compile it like this:
 
 build main.d -full -clean -cov
I was under the impression that you use build to make the 'exe', and then run 'dmd main.exe -cov' to get the code coverage *confused*
Dec 05 2005
parent clayasaurus <clayasaurus gmail.com> writes:
clayasaurus wrote:
 Ivan Senji wrote:
 
 After a long long time I managed to get it down to this, 
 changing/removing anything else makes code compile.

 I compile it like this:

 build main.d -full -clean -cov
I was under the impression that you use build to make the 'exe', and then run 'dmd main.exe -cov' to get the code coverage *confused*
Nevermind, you just compile it with the -cov option and run it to get the .lst file.
Dec 05 2005