www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - RDMD is broken on Windows7

reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
In DMD 2.054 RDMD is broken. It crashes on any file, and this only
came to my attention after simendsjo started reporting that he can't
build neither gtkD nor my DWindowsProgramming project.

It works fine on XP, but on Win7 it just crashes with any piece of code:

http://i.imgur.com/X9s9y.png
Jul 19 2011
next sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Wed, 20 Jul 2011 02:05:03 +0300, Andrej Mitrovic  
<andrej.mitrovich gmail.com> wrote:

 In DMD 2.054 RDMD is broken. It crashes on any file, and this only
 came to my attention after simendsjo started reporting that he can't
 build neither gtkD nor my DWindowsProgramming project.

 It works fine on XP, but on Win7 it just crashes with any piece of code:

 http://i.imgur.com/X9s9y.png
See here: http://comments.gmane.org/gmane.comp.lang.d.dmd.beta/788 -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Jul 19 2011
parent reply Trass3r <un known.com> writes:
 See here: http://comments.gmane.org/gmane.comp.lang.d.dmd.beta/788
Well Walter states that adding printf's would make it work. But I think simendsjo added printfs and it still crashed.
Jul 19 2011
parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Wed, 20 Jul 2011 02:10:42 +0300, Trass3r <un known.com> wrote:

 See here: http://comments.gmane.org/gmane.comp.lang.d.dmd.beta/788
Well Walter states that adding printf's would make it work. But I think simendsjo added printfs and it still crashed.
Well, I reduced the crash to an exception thrown inside the constructor of a temporary (see bug report[1]), but I didn't notice the fragility (heisenbug traits) that Walter described. While they MIGHT be different bugs, they definitely share something related to destruction of temporaries. [1]: http://d.puremagic.com/issues/show_bug.cgi?id=6308 -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Jul 19 2011
prev sibling parent reply Trass3r <un known.com> writes:
Yep. See thread 'gtkD doesn't compile on windows' in D.learn.

"
 If I compile rdmd (with my patch, haven't tried the original) without
 -g, it crashes when trying to compile anything...
 Does this also happen if you compile it with -g and then run cv2pdb on  
 it?
I cannot compile anything without first compiling rdmd with -g. Compiling rdmd with -g and running cv2pdb on it works. It fails on the return statement in getDependencies. It never gets to the line after getDependencies in main. "
Jul 19 2011
parent reply Kagamin <spam here.lot> writes:
Trass3r Wrote:

 Yep. See thread 'gtkD doesn't compile on windows' in D.learn.
 
 "
 If I compile rdmd (with my patch, haven't tried the original) without
 -g, it crashes when trying to compile anything...
 Does this also happen if you compile it with -g and then run cv2pdb on  
 it?
I cannot compile anything without first compiling rdmd with -g. Compiling rdmd with -g and running cv2pdb on it works. It fails on the return statement in getDependencies. It never gets to the line after getDependencies in main.
May be, it's an exception while getting symbols? Try to disable strack trace generation.
Jul 20 2011
parent reply simendsjo <simendsjo gmail.com> writes:
On 20.07.2011 11:52, Kagamin wrote:
 Trass3r Wrote:

 Yep. See thread 'gtkD doesn't compile on windows' in D.learn.

 "
 If I compile rdmd (with my patch, haven't tried the original) without
 -g, it crashes when trying to compile anything...
 Does this also happen if you compile it with -g and then run cv2pdb on
 it?
I cannot compile anything without first compiling rdmd with -g. Compiling rdmd with -g and running cv2pdb on it works. It fails on the return statement in getDependencies. It never gets to the line after getDependencies in main.
May be, it's an exception while getting symbols? Try to disable strack trace generation.
Not sure I understand what you mean.. Isn't stack trace enabled with -g?
Jul 20 2011
parent Kagamin <spam here.lot> writes:
simendsjo Wrote:

 May be, it's an exception while getting symbols? Try to disable strack trace
generation.
Not sure I understand what you mean.. Isn't stack trace enabled with -g?
It's enabled. Try to disable it at runtime: set stack trace handler to null. The more features are enabled the more bugs trigger.
Jul 21 2011