Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [RFC] What to do on VM exhaustion
@ 2006-01-05  1:00 Michael Snyder
  2006-01-05  5:13 ` Eli Zaretskii
  2006-01-05 14:50 ` Paul Koning
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Snyder @ 2006-01-05  1:00 UTC (permalink / raw)
  To: gdb, gdb-patches, Wendy Peikes

Hey folks,

I don't know how many of you may have ever run into this situation,
but my question is, what should we do in gdb when we detect that
we are dead out of memory?

Theoretically it's handled -- there is a routine in utils.c called
"nomem", which calls internal_error.  The problem is that internal_error
isn't a simple bailout -- it calls query to ask the user what s/he
wants to do.  And you can't count on something like that working,
when you are out of virtual memory.

I actually ran into this once before, years ago -- in fact it was
RMS himself who called me to beef about gdb bailing on him, when
he was debugging emacs and crashed the stack with an infinite
recursion.  I think gdb ran out of memory while trying to do a
backtrace.  He wanted me to make it recover gracefully and let him
keep debugging.  I couldn't do it, but then I didn't have the
luxury of having all you guys to ask for advice!

In present time, I'm suggesting that nomem should just write
a simple error msg to the console and abort.  What do you think?


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-06  8:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-05  1:00 [RFC] What to do on VM exhaustion Michael Snyder
2006-01-05  5:13 ` Eli Zaretskii
     [not found]   ` <43BD965C.1080500@cisco.com>
2006-01-06  8:50     ` Eli Zaretskii
2006-01-05 14:50 ` Paul Koning
2006-01-05 22:00   ` Michael Snyder
     [not found]     ` <b1fa29170601051725t2fc37a96r2dc959a45a2aa92f@mail.gmail.com>
2006-01-06  1:35       ` Michael Snyder
     [not found]         ` <b1fa29170601051800n452bda22sc28082a2776c858@mail.gmail.com>
2006-01-06  3:16           ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox