From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B69F3858C66; Tue, 7 Mar 2023 03:19:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B69F3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678159151; bh=x64GwEmk28Ii3fEOSFd2LevmxKaHpC668G3ilNaf5v0=; h=From:To:Subject:Date:From; b=T7KB5ZY+9LPoi3rZbLdvqBOURIbtagUxpk2jLE2u8SuXuEanrEdoI3GxgWubiJhBv Oho6LOpR9Z95kibvShOyBP7TVpDrFrWVM5t+8fQt18I0IYu99KnyBpuMMVSB4HpZRN FWA7CZjVtVXdJeHvxSF6/fvl5wxRPGGYbGP4Je48= From: "liam.naddell at mail dot utoronto.ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/30205] New: [qemu-gdbserver -- i386] Gdb crash while debugging the pintos kernel, some kind of readline issue? Date: Tue, 07 Mar 2023 03:19:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: liam.naddell at mail dot utoronto.ca X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30205 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=3D14735&action=3Ded= it 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 dynam= ic list implementation in kernel memory.=20 Actual result --------------- I got a coredump file back, and ran a backtrace + looked around the call st= ack. 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:=20 configure --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-auto-load-dir=3D$debugdir:$datadir/auto-load --with-auto-load-safe-path=3D$debugdir:$datadir/auto-load --with-expat --with-gdb-datadir=3D/usr/share/gdb (relocatable) --with-jit-reader-dir=3D/usr/lib/gdb (relocatable) --without-libunwind-ia64 --with-lzma --without-babeltrace --without-intel-pt --with-mpfr --without-xxhash --with-python=3D/usr (relocatable) --with-python-libdir=3D/usr/lib (relocatable) --with-debuginfod --with-guile --enable-source-highlight --with-separate-debug-dir=3D/usr/lib/debug (relocatable) --with-system-gdbinit=3D/etc/gdb/gdbinit gcc version: 12.1 --=20 You are receiving this mail because: You are on the CC list for the bug.=