cvs.delorie.com/djgpp/bugs/show.cgi | search |
The following code makes the program crash #include <stdlib.h> int main() { abort(); return 0; }
After some email discussion with the poster, here's more info. The basic problem is that there has been a change of behaviour in 'abort' from version 2.01 to 2.02: it now calls raise(SIGABRT). This was necessary to match the ANSI standard definition of abort(). This change was not updated to the 2.02 version of the docs.
The docs have been updated for the next release, already. To avoid the crash dump, you can install a signal handler for SIGABRT.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |