public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug threads/28014] gdb coredumps when remote+kgdbing a system that OOMs too hard Date: Sat, 26 Jun 2021 01:20:30 +0000 [thread overview] Message-ID: <bug-28014-4717-JpGDMZd3HB@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-28014-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=28014 Simon Marchi <simark at simark dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simark at simark dot ca --- Comment #1 from Simon Marchi <simark at simark dot ca> --- Hi Rich, (In reply to Rich from comment #0) > 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. Unrelated to the reported problem, but do you run GDB as a mips64el program inside qemu-user only so that you can debug your remote mips64el program? It might be easier to run an x86-64 GDB (or whatever your host system is) to connect to your mips64el remote. That GDB just needs to be built to include mips support, using --target=<your-triplet>, or --enable-targets=<your-triplet>, or --enable-targets=all. > 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.) I presume that the remote connection (what kind of connection was that, tcp?) closed at an unexpected time. GDB is not very good at handling that gracefully. It might not be a bug somebody will immediately jump to fix, but every time you hit a GDB internal error, you can consider it a valid GDB bug. It should never be possible for a user to hit an internal error, whatever the bad input they provide (including a remote connection breaking at an unexpected moment). > 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 There's little we can do without the gdb executable that goes along with the core file. Can you provide that too? If we can get a good backtrace of GDB, at least we'll be able to rough idea. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-06-26 1:20 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-25 23:43 [Bug threads/28014] New: " rincebrain at gmail dot com 2021-06-26 1:20 ` simark at simark dot ca [this message] 2021-06-26 2:15 ` [Bug threads/28014] " 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28014-4717-JpGDMZd3HB@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).