From bug-octave-request at bevo dot che dot wisc dot edu Thu Sep 14 14:06:59 1995 Subject: Crash on memory full From: John Eaton To: Eyal Doron Cc: bug-octave at che dot utexas dot edu Date: Thu, 14 Sep 1995 14:06:43 -0500 Eyal Doron wrote: : Octave crashes if virtual memory is exhausted. : Any possibility to trap this and abort just the current calculation? Try this patch: *** src/sighandlers.cc~ 1995/09/07 07:19:58 --- src/sighandlers.cc 1995/09/14 19:04:35 *************** *** 64,71 **** static void octave_new_handler (void) { ! error ("new: virtual memory exhausted -- stopping myself"); ! clean_up_and_exit (1); } static RETSIGTYPE --- 64,78 ---- static void octave_new_handler (void) { ! error ("memory exhausted -- trying to return to prompt"); ! ! if (can_interrupt) ! { ! jump_to_top_level (); ! panic_impossible (); ! } ! else ! my_friendly_exit ("operator new", 1); } static RETSIGTYPE