From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B88E93858431; Wed, 16 Feb 2022 22:02:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B88E93858431 From: "development at efficientek dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/28900] New: GDB crash on loading symbols form openbios binary Date: Wed, 16 Feb 2022 22:02:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: 11.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: development at efficientek dot com 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2022 22:02:51 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28900 Bug ID: 28900 Summary: GDB crash on loading symbols form openbios binary Product: gdb Version: 11.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: development at efficientek dot com Target Milestone: --- Created attachment 13985 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13985&action=3Ded= it OpenBIOS qemu-ppc build with symbols GDB crashes when loading the symbols from the attached binary, which is the qemu-ppc build of openbios. I'm using this toolchain from builtroot: https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc 64le-power8/tarballs/powerpc64le-power8--glibc--bleeding-edge-2021.11-2.tar= .bz2 To reproduce the issue, run the following command: ./powerpc64le-power8--glibc--bleeding-edge-2021.11-2/bin/powerpc64le-buildr= oot-linux-gnu-gdb -ex 'set verbose on' -ex 'set debug symfile on' -ex 'set debug symtab-create 99' -ex "symbol-file $PWD/openbios-qemu.elf.nostrip" The last few lines of output, which give a clue to the issue are: Recording minsym: mst_text 0xfff33824 1 escc_in= it Recording minsym: mst_text 0xfff2b950 1 adb_cmd Recording minsym: mst_text 0xfff0938c 1 free Recording minsym: mst_bss 0xfffdd150 6 FSYS_BUF Installing 2364 minimal symbols of objfile /home/user/openbios-qemu.elf.nostrip. Done reading minimal symbols. sf->sym_relocate (openbios-qemu.elf.nostrip, 0x22607a8, 0x0) =3D 0x0 Aborted --=20 You are receiving this mail because: You are on the CC list for the bug.=