Irix: catch SIGFPE and write data before aborting (.exe).
GNU/Linux: nada.