Thread overview
DMD crashes without giving any info
Sep 13, 2013
simendsjo
Sep 13, 2013
nazriel
Sep 13, 2013
simendsjo
Sep 13, 2013
simendsjo
Sep 13, 2013
bearophile
Sep 13, 2013
simendsjo
Sep 13, 2013
simendsjo
September 13, 2013
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?
September 13, 2013
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
September 13, 2013
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
September 13, 2013
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...
September 13, 2013
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.
September 13, 2013
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]
September 13, 2013
Added a bug report: http://d.puremagic.com/issues/show_bug.cgi?id=11023