digitalmars.D.bugs - -cov crashing dmd
- Ivan Senji (4/4) Dec 05 2005 After a long long time I managed to get it down to this,
- Walter Bright (6/10) Dec 05 2005 I tried:
- Ivan Senji (3/21) Dec 05 2005 You are right, it works that way. But it still crashes if invoked by
- Derek Parnell (15/36) Dec 05 2005 No, it doesn't like the order that Build gives it to DMD.
- Walter Bright (3/10) Dec 05 2005 Thanks. I am able to reproduce it now.
- Ivan Senji (2/39) Dec 05 2005 Thanks, i get it.
- Derek Parnell (9/47) Dec 05 2005 In fact, if main.d has a main() function, it works in all cases.
- Ivan Senji (9/23) Dec 05 2005 But it doesn't to me.
- Derek Parnell (9/33) Dec 05 2005 LOL ... stupid me ... I forgot the '-cov' switch when testing ... Sorry.
- Kris (6/28) Dec 06 2005 There's a bug posting from a while back noting similar behaviour for
- Ivan Senji (4/8) Dec 06 2005 I know, that one has been more or less around forever :), but what is
- Derek Parnell (11/44) Dec 05 2005 Try ...
- clayasaurus (3/9) Dec 05 2005 I was under the impression that you use build to make the 'exe', and
- clayasaurus (3/15) Dec 05 2005 Nevermind, you just compile it with the -cov option and run it to get
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
"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 -covI 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
Walter Bright wrote:"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.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 -covI 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
On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:Walter Bright wrote: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"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.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 -covI 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
"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 : failsThanks. I am able to reproduce it now.
Dec 05 2005
Derek Parnell wrote:On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:Thanks, i get it.Walter Bright wrote: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"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.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 -covI 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
On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:Derek Parnell wrote: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 PMOn Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:Thanks, i get it.Walter Bright wrote: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"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.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 -covI 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
Derek Parnell wrote:On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote: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.In fact, if main.d has a main() function, it works in all cases.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 : failsThanks, i get it.
Dec 05 2005
On Tue, 06 Dec 2005 08:38:21 +0100, Ivan Senji wrote:Derek Parnell wrote: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 PMOn Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote: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.In fact, if main.d has a main() function, it works in all cases.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 : failsThanks, i get it.
Dec 05 2005
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: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.In fact, if main.d has a main() function, it works in all cases.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 : failsThanks, i get it.
Dec 06 2005
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
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...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 PMAfter 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 -covI 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
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 -covI 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
clayasaurus wrote:Ivan Senji wrote:Nevermind, you just compile it with the -cov option and run it to get the .lst file.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 -covI 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