digitalmars.D.learn - Exit with code xx
- Ozan (8/8) Nov 25 2015 Hi
- John Colvin (13/21) Nov 25 2015 That's just normal exit-code stuff, same as in C . Could be a
- Alex Parrill (6/14) Nov 25 2015 You know about process exit codes right? On Linux, a negative
- Ozan (4/12) Nov 25 2015 Okay, I found my little bug: An array error.
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
Nov 25 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, OzanThat'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
Nov 25 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, OzanYou know about process exit codes right? On Linux, a negative exit code means that the process exited due to a signal. Signal 11 is SIGSEGV, aka a segmentation fault. Run your binary in a debugger (ex. gdb) and find out where it's causing the error.
Nov 25 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, OzanOkay, I found my little bug: An array error. So "Program exited with code -11" is about memory bugs, I think. Regards, Ozan
Nov 25 2015