public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/28014] New: gdb coredumps when remote+kgdbing a system that OOMs too hard
@ 2021-06-25 23:43 rincebrain at gmail dot com
  2021-06-26  1:20 ` [Bug threads/28014] " simark at simark dot ca
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rincebrain at gmail dot com @ 2021-06-25 23:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=28014

            Bug ID: 28014
           Summary: gdb coredumps when remote+kgdbing a system that OOMs
                    too hard
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: threads
          Assignee: unassigned at sourceware dot org
          Reporter: rincebrain at gmail dot com
  Target Milestone: ---

I was using gdb on mips64el under qemu-user to remote a qemu of a mips64el
system with kgdb, everything was going fine (from gdb's perspective - the
system was in the process of eating all the RAM), then things went south.

The kernel reported, after a whole bunch of other screaming:
[59702.844702] Out of memory and no killable processes...
[59702.845130] Kernel panic - not syncing: System is deadlocked on memory

Meanwhile, when I tabbed back over, gdb said:
[New Thread 172398]
[New Thread 172401]
[New Thread 172402]
[New Thread 172403]
[New Thread 172404]
[New Thread 172405]
--Type <RET> for more, q to quit, c to continue without paging--

Thread 2 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 1]
/build/gdb-OSO7kB/gdb-10.1/gdb/thread.c:95: internal-error: thread_info*
inferior_thread(): Assertion `current_thread_ != nullptr' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.

/build/gdb-OSO7kB/gdb-10.1/gdb/thread.c:95: internal-error: thread_info*
inferior_thread(): Assertion `current_thread_ != nullptr' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted


And so I'm here.

(I won't be astonished if you just close this with "everything was on fire,
what are you expecting", but since gdb did request I open a bug, here I am.)

Since the core is 80M compressed and 236M uncompressed, you can find it:
https://www.dropbox.com/s/u7erpk1x6fj4ds6/qemu_gdb_20210625-192829_18450.core.zst?dl=0

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-06-27 12:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 23:43 [Bug threads/28014] New: gdb coredumps when remote+kgdbing a system that OOMs too hard rincebrain at gmail dot com
2021-06-26  1:20 ` [Bug threads/28014] " simark at simark dot ca
2021-06-26  2:15 ` rincebrain at gmail dot com
2021-06-26  2:29 ` simark at simark dot ca
2021-06-26  2:41 ` rincebrain at gmail dot com
2021-06-26  4:27 ` simark at simark dot ca
2021-06-26 10:55 ` rincebrain at gmail dot com
2021-06-26 13:04 ` simark at simark dot ca
2021-06-27  5:27 ` simark at simark dot ca
2021-06-27 12:24 ` rincebrain at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).