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

* [Bug gdb/30205] [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue?
  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 ` liam.naddell at mail dot utoronto.ca
  2023-03-07  3:22 ` liam.naddell at mail dot utoronto.ca
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: liam.naddell at mail dot utoronto.ca @ 2023-03-07  3:20 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Liam Naddell <liam.naddell at mail dot utoronto.ca> ---
Created attachment 14736
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14736&action=edit
gdb-macros file loaded via gdb -x

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

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

* [Bug gdb/30205] [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue?
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: liam.naddell at mail dot utoronto.ca @ 2023-03-07  3:22 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Liam Naddell <liam.naddell at mail dot utoronto.ca> ---
Created attachment 14737
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14737&action=edit
Output from gdb after the crash (sorry for the png)

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

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

* [Bug gdb/30205] [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue?
  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
  4 siblings, 0 replies; 6+ messages in thread
From: liam.naddell at mail dot utoronto.ca @ 2023-03-07  3:28 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Liam Naddell <liam.naddell at mail dot utoronto.ca> ---
forgot to mention in original report: I haven't been able to reproduce this
issue since coming across it

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

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

* [Bug gdb/30205] [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue?
  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
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-03-07 14:40 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Thank you for the bug report.

I'm not sure there is really enough information here to diagnose it.
Lack of reproducibility may also be an issue.
Anyway, my first suggestion would be to build a '-g -O0' gdb in
order to get a more reliable stack trace if it does happen again.

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

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

* [Bug gdb/30205] [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue?
  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
                   ` (3 preceding siblings ...)
  2023-03-07 14:40 ` tromey at sourceware dot org
@ 2023-03-08  0:43 ` liam.naddell at mail dot utoronto.ca
  4 siblings, 0 replies; 6+ messages in thread
From: liam.naddell at mail dot utoronto.ca @ 2023-03-08  0:43 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Liam Naddell <liam.naddell at mail dot utoronto.ca> ---
If I run into it again, I am now using a debug gdb, I'll add it to this ticket

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