public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30205] New: [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue?
@ 2023-03-07  3:19 liam.naddell at mail dot utoronto.ca
  2023-03-07  3:20 ` [Bug gdb/30205] " liam.naddell at mail dot utoronto.ca
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: liam.naddell at mail dot utoronto.ca @ 2023-03-07  3:19 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30205
           Summary: [qemu-gdbserver -- i386] Gdb crash while debugging the
                    pintos kernel, some kind of readline issue?
           Product: gdb
           Version: 12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: liam.naddell at mail dot utoronto.ca
  Target Milestone: ---

Created attachment 14735
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14735&action=edit
analysis of the coredump

While I was debugging the pintos kernel for a school assignment, I ran into a
GDB crash. Specifically, I ran a macro called dumplist (macro file attached,
loaded via gdb -x). This macro prints out all the contents of a janky dynamic
list implementation in kernel memory. 


Actual result
---------------

I got a coredump file back, and ran a backtrace + looked around the call stack.
It looks like the error has something to do with readline. My log of going
through the gdb coredump is attached.


Expected result
---------------

N/A gdb shouldn't crash ever even with stupid macros or stupid data


Environment details
-------------------

OS: archlinux
project code: https://github.com/liamnaddell/CSCC69-Pintos
libc version: core/glibc 2.37-2 [installed]
qemu version: extra/qemu-system-x86 7.2.0-3 [installed]
gdb version: GNU gdb (GDB) 12.1
gdb configuration: 
   configure --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/usr/share/gdb (relocatable)
             --with-jit-reader-dir=/usr/lib/gdb (relocatable)
             --without-libunwind-ia64
             --with-lzma
             --without-babeltrace
             --without-intel-pt
             --with-mpfr
             --without-xxhash
             --with-python=/usr (relocatable)
             --with-python-libdir=/usr/lib (relocatable)
             --with-debuginfod
             --with-guile
             --enable-source-highlight
             --with-separate-debug-dir=/usr/lib/debug (relocatable)
             --with-system-gdbinit=/etc/gdb/gdbinit

gcc version: 12.1

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

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

end of thread, other threads:[~2023-03-08  0:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07  3:19 [Bug gdb/30205] New: [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue? liam.naddell at mail dot utoronto.ca
2023-03-07  3:20 ` [Bug gdb/30205] " liam.naddell at mail dot utoronto.ca
2023-03-07  3:22 ` liam.naddell at mail dot utoronto.ca
2023-03-07  3:28 ` liam.naddell at mail dot utoronto.ca
2023-03-07 14:40 ` tromey at sourceware dot org
2023-03-08  0:43 ` liam.naddell at mail dot utoronto.ca

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).