Exit with code xx

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 25 09:02:41 PST 2015


On Wednesday, 25 November 2015 at 16:11:09 UTC, Ozan wrote:
> Hi
>
> Is there any overview, list, wiki about what's behind runtime 
> errors like
> "Program exited with code -11"?
>
> Okay, I made a mistake...but it's better to know where and what 
> kind?
>
> Thanks & Regards,
> Ozan

That's just normal exit-code stuff, same as in C . Could be a 
segfault of some sort.

If you've compiled with -release and/or no bounds checks (can be 
hidden behind -O flags with ldc/gdc), try dropping those options 
and you might get a more useful error.

Alternatively, fire up a debugger and find where things went 
wrong the old-fashioned way, e.g.

$ gdb ./myProgram
(gdb) run
segfault, some information ....
(gdb) bt full
full stack trace


More information about the Digitalmars-d-learn mailing list