www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD crashes without giving any info

reply "simendsjo" <simendsjo gmail.com> writes:
What should I do when DMD keeps crashing and doesn't give me any 
output?
I'm using dmd 2.063.2 on win8.

This is all that -v gives me before crashing..

binary    C:\dmd\windows\bin\dmd.exe
version   v2.063.2
config    C:\dmd\windows\bin\sc.ini
parse     app

I've tried compiling just object files, and an exe and removed 
all -debug -g etc.

Is there any way to get more verbose info from dmd?
Sep 13 2013
next sibling parent reply "nazriel" <spam dzfl.pl> writes:
On Friday, 13 September 2013 at 12:41:44 UTC, simendsjo wrote:
 What should I do when DMD keeps crashing and doesn't give me 
 any output?
 I'm using dmd 2.063.2 on win8.

 This is all that -v gives me before crashing..

 binary    C:\dmd\windows\bin\dmd.exe
 version   v2.063.2
 config    C:\dmd\windows\bin\sc.ini
 parse     app

 I've tried compiling just object files, and an exe and removed 
 all -debug -g etc.

 Is there any way to get more verbose info from dmd?
Run it via GDB, OllyDBG, [putyourfavouritedebugerhere] Example: gdb /c/d/dmd2/bin/dmd.exe gdb> r /path/to/your/code.d
Sep 13 2013
next sibling parent "simendsjo" <simendsjo gmail.com> writes:
On Friday, 13 September 2013 at 12:45:06 UTC, nazriel wrote:
 On Friday, 13 September 2013 at 12:41:44 UTC, simendsjo wrote:
 What should I do when DMD keeps crashing and doesn't give me 
 any output?
 I'm using dmd 2.063.2 on win8.

 This is all that -v gives me before crashing..

 binary    C:\dmd\windows\bin\dmd.exe
 version   v2.063.2
 config    C:\dmd\windows\bin\sc.ini
 parse     app

 I've tried compiling just object files, and an exe and removed 
 all -debug -g etc.

 Is there any way to get more verbose info from dmd?
Run it via GDB, OllyDBG, [putyourfavouritedebugerhere] Example: gdb /c/d/dmd2/bin/dmd.exe gdb> r /path/to/your/code.d
Way over my head. Tried OllyDBG, but I wasn't able to set the current working directory...
Sep 13 2013
prev sibling parent "simendsjo" <simendsjo gmail.com> writes:
On Friday, 13 September 2013 at 12:45:06 UTC, nazriel wrote:
 On Friday, 13 September 2013 at 12:41:44 UTC, simendsjo wrote:
(...)
 Is there any way to get more verbose info from dmd?
Run it via GDB, OllyDBG, [putyourfavouritedebugerhere]
The error is Access Violation when reading 00000004. I cannot be more helpful as I don't know assembly. 00421DDB |. 8B46 04 MOV EAX,DWORD PTR DS:[ESI+4]
Sep 13 2013
prev sibling next sibling parent reply "bearophile" <bearophileHUGS lycos.com> writes:
simendsjo:

 What should I do when DMD keeps crashing and doesn't give me 
 any output?
I suggest to look for stack overflows in the program (and/or increase the stack space). Since some time it has stopped giving a "stack overflow" message. Bye, bearophile
Sep 13 2013
parent "simendsjo" <simendsjo gmail.com> writes:
On Friday, 13 September 2013 at 12:53:17 UTC, bearophile wrote:
 simendsjo:

 What should I do when DMD keeps crashing and doesn't give me 
 any output?
I suggest to look for stack overflows in the program (and/or increase the stack space). Since some time it has stopped giving a "stack overflow" message.
I don't see any dmd option to increase stack space. I tried adding -L/STACK:16000000, but it still crashes.
Sep 13 2013
prev sibling parent "simendsjo" <simendsjo gmail.com> writes:
Added a bug report: 
http://d.puremagic.com/issues/show_bug.cgi?id=11023
Sep 13 2013