www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000291

When Created: 07/06/1999 20:00:30
Against DJGPP version: 2.02
By whom: vfg@servidor.unam.mx
Abstract: abort has a bug
The following code makes the program crash
#include <stdlib.h>

int main()
 return 0;

Note added: 07/12/1999 14:00:48
By whom: broeker@physik.rwth-aachen.de
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.

Solution added: 07/12/1999 14:00:02
By whom: broeker@physik.rwth-aachen.de
The docs have been updated for the next release, already.

To avoid the crash dump, you can install a signal handler for SIGABRT.

Fixed in version on 07/12/1999 14:00:55
By whom: broeker@physik.rwth-aachen.de

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010