www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Program exited with code -11

reply Danny Arends <Danny.Arends gmail.com> writes:
Hey all,

I have written some code to analyze massive gzipped files (using 
std.iopipe), tested it on small subsets of the gzip files, and 
everything works using small 20 to 50 Mb files.

However when I try to run the code on 2.7 Gb file sizes the 
program always crashes with the following error:

"Program exited with code -11"

No other messages, did anyone ever encounter something like this 
before / got any ideas on how to figure out what is wrong ?

Danny
Sep 18 2019
parent reply Arjan <arjan ask.me.to> writes:
On Wednesday, 18 September 2019 at 13:22:03 UTC, Danny Arends 
wrote:
 Hey all,

 "Program exited with code -11"
Not signal 11? On unix/linux I assume?
Sep 18 2019
next sibling parent Danny Arends <Danny.Arends gmail.com> writes:
On Wednesday, 18 September 2019 at 13:36:30 UTC, Arjan wrote:
 On Wednesday, 18 September 2019 at 13:22:03 UTC, Danny Arends 
 wrote:
 Hey all,

 "Program exited with code -11"
Not signal 11? On unix/linux I assume?
It's on linux yes... No idea if it is a signal or an exitcode, the only indication is the text: "Program exited with code -11"
Sep 18 2019
prev sibling parent Adam D. Ruppe <destructionator gmail.com> writes:
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.
Sep 18 2019