Program exited with code -11

Adam D. Ruppe destructionator at gmail.com
Wed Sep 18 14:04:21 UTC 2019


On Wednesday, 18 September 2019 at 13:36:30 UTC, Arjan wrote:
> On Wednesday, 18 September 2019 at 13:22:03 UTC, Danny Arends
>> "Program exited with code -11"
>
> Not signal 11? On unix/linux I assume?

Same thing. This is a segmentation fault.

Compile the program with the -g switch to dmd, then run it inside 
the gdb program


gdb --args ./your_program any_args_to_your_program

the hit the "r" command to run and when it crashes, it will tell 
you where. probably a null pointer.


More information about the Digitalmars-d-learn mailing list