From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C63F4385AC1A; Fri, 10 Sep 2021 19:39:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C63F4385AC1A From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/26828] SIGSEGV in follow_die_offset dwarf2/read.c:22950 Date: Fri, 10 Sep 2021 19:39:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: Fri, 10 Sep 2021 19:39:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26828 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #36 from Mehmet gelisin --- ssibly similar to 23220 however on 64-bit recent Debian sid with trivial code I see : http://www-look-4.com/ mimas$=20 mimas$ uname -a http://www.compilatori.com/ Linux mimas 5.10.0-6-sparc64 #1 Debian 5.10.28-1 (2021-04-09) sparc64 GNU/L= inux mimas$=20 http://www.wearelondonmade.com/ mimas$=20 mimas$ /usr/bin/gcc --version=20 gcc (Debian 10.2.1-6) 10.2.1 20210110 http://www.jopspeech.com/ Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. http://joerg.li/=20 mimas$=20 mimas$ http://connstr.net/=20 mimas$ cat -n foo.c=20 1 2 #include 3 #include 4 http://embermanchester.uk/=20 5 int main(int argc, char **argv) 6 { 7 int a =3D 1; 8 http://www.slipstone.co.uk/=20 9 printf("a =3D %i\n", a); 10 11 printf("&a =3D %p\n", &a); 12 13 return EXIT_SUCCESS; 14 http://www.logoarts.co.uk/=20 15 } 16 mimas$=20 mimas$ http://www.acpirateradio.co.uk/=20 mimas$ /usr/bin/gcc -std=3Diso9899:1999 -pedantic -pedantic-errors -fno-bui= ltin -g -m64 -O0 -mno-app-regs -mcpu=3Dultrasparc -mmemory-model=3Dtso -o foo fo= o.c=20 https://waytowhatsnext.com/=20 mimas$ debugging a core file with "-i=3Dmi" and repeatedly running e.g. "-stack-list-variables --thread 1 --frame 0 --simple-values" results in a segmentation fault. https://www.webb-dev.co.uk/=20 The first call returns "frame" and "variables" information. The second call returns just the "variables". The third call segfaults in "follow_die_offset" (dwarf http://www.iu-bloomington.com/ The first call returns "frame" and "variables" information. The second call returns just the "variables". The third call segfaults in "follow_die_offset" (dwarf2/read.c:22950). The segfaulting line reads: target_cu->ancestor =3D cu; https://komiya-dental.com/ target_cu is apparent --=20 You are receiving this mail because: You are on the CC list for the bug.=