From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A0673858D37; Wed, 28 Sep 2022 20:36:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A0673858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664397370; bh=5dxnCqh6TjQ923fv9cRbTjBoG9ybBGMOWy5RsHlG2kQ=; h=From:To:Subject:Date:From; b=jEC3onoTL2lAzqKxR3OHEL2FJ6OEPWn/h2Gw0gyJY15QTrS7GDavLaY1GmmjV0RMr KmOjMWfThay7YVc0HUWt/OvM/0mv/7hAmyVOojYs4j9drJyOLXg/A2VldZTKjQy3B6 1VrEvFwZpKz2yBI8eoaMxalsZDJ01M89n5J9G47c= From: "danglin at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug libc/29635] New: Debian libc6: 2.35-1 breaks gdb on hppa Date: Wed, 28 Sep 2022 20:36:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: NEW 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 cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild 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=3D29635 Bug ID: 29635 Summary: Debian libc6: 2.35-1 breaks gdb on hppa Product: glibc Version: 2.35 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: danglin at gcc dot gnu.org CC: drepper.fsp at gmail dot com Target Milestone: --- Host: hppa*-*-linux* Target: hppa*-*-linux* Build: hppa*-*-linux* dave@atlas:~$ gdb Segmentation fault (core dumped) Sep 26 22:04:36 mx3210 kernel: do_page_fault() command=3D'gdb' type=3D6 address=3D0x4bc63f0b in libresolv.so.2[ea7f2000+e000] Sep 26 22:04:36 mx3210 kernel: trap #6: Instruction TLB miss fault, vm_star= t =3D 0x0098b000, vm_end =3D 0x009c4000 Sep 26 22:04:36 mx3210 kernel: command line: gdb Sep 26 22:04:36 mx3210 kernel: CPU: 0 PID: 7976 Comm: gdb Not tainted 5.19.= 11+ #1 Sep 26 22:04:36 mx3210 kernel: Hardware name: 9000/800/rp3440 Sep 26 22:04:36 mx3210 kernel: Sep 26 22:04:36 mx3210 kernel: YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI Sep 26 22:04:36 mx3210 kernel: PSW: 00000000000001101111111100001111 Not tainted Sep 26 22:04:36 mx3210 kernel: r00-03 000000ff0006ff0f 000000000014a908 00000000006b5537 0000000000000154 Sep 26 22:04:36 mx3210 kernel: r04-07 00000000f2e59fd4 00000000f4e396c8 00000000009562d0 00000000f4e1176c Sep 26 22:04:36 mx3210 kernel: r08-11 00000000f4e117dc 0000000000000000 0000000000000000 00000000ffffffff Sep 26 22:04:36 mx3210 kernel: r12-15 0000000000000000 0000000000177730 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: r16-19 0000000000000001 000000000013c41c 000000000016e870 000000004bc53f11 Sep 26 22:04:36 mx3210 kernel: r20-23 00000000009562d0 000000004bc63f09 000000000014add8 0000000000000000 Sep 26 22:04:36 mx3210 kernel: r24-27 00000000f4e117dc 00000000f4e1176c 0000000000000154 0000000000135108 Sep 26 22:04:36 mx3210 kernel: r28-31 0000000000000000 0000000000000001 00000000f98e24c0 0000000000011234 Sep 26 22:04:36 mx3210 kernel: sr00-03 0000000000957400 0000000000000000 0000000000000000 0000000000957400 Sep 26 22:04:36 mx3210 kernel: sr04-07 0000000000957400 0000000000957400 0000000000957400 0000000000957400 Sep 26 22:04:36 mx3210 kernel: Sep 26 22:04:36 mx3210 kernel: VZOUICununcqcqcqcqcqcrmunTDVZOUI Sep 26 22:04:36 mx3210 kernel: FPSR: 00000000000000000000000000000000 Sep 26 22:04:36 mx3210 kernel: FPER1: 00000000 Sep 26 22:04:36 mx3210 kernel: fr00-03 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr04-07 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr08-11 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr12-15 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr16-19 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr20-23 0000000000000000 0000000000000000 006b5500009562d0 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr24-27 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: fr28-31 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Sep 26 22:04:36 mx3210 kernel: Sep 26 22:04:36 mx3210 kernel: IASQ: 0000000000957400 0000000000957400 IAOQ: 000000004bc63f0b 000000004bc63f0f Sep 26 22:04:36 mx3210 kernel: IIR: 43ffff80 ISR: 0000000000957400 IOR: 000000000014add8 Sep 26 22:04:36 mx3210 kernel: CPU: 0 CR30: 00000040d6db4570 CR31: ffffffffffffefff Sep 26 22:04:36 mx3210 kernel: ORIG_R28: 0000000000000000 Sep 26 22:04:36 mx3210 kernel: IAOQ[0]: 000000004bc63f0b Sep 26 22:04:36 mx3210 kernel: IAOQ[1]: 000000004bc63f0f Sep 26 22:04:36 mx3210 kernel: RP(r2): 00000000006b5537 104c4: 43 ff ff 80 ldb 1fc0(sr3,r31),r31 I found that I can run it using /lib/ld.so.1: dave@atlas:~/gnu/gdb/objdir$ /lib/ld.so.1 /usr/bin/gdb -c core /usr/bin/gdb GNU gdb (Debian 12.1-3) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "hppa-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/gdb... Reading symbols from /usr/lib/debug/.build-id/26/0797847dd13b287f99df369368a8a943c3d2f3.debug... [New LWP 3873] [Thread debugging using libthread_db enabled] Using host libthread_db library "/home/dave/gnu/glibc/objdir/nptl_db/libthread_db.so.1". Core was generated by `gdb'. --Type for more, q to quit, c to continue without paging-- Program terminated with signal SIGSEGV, Segmentation fault. #0 0x4bc63f08 in ?? () (gdb) directory /home/dave/debian/glibc/glibc-2.35/elf Source directories searched: /home/dave/debian/glibc/glibc-2.35/elf:$cdir:$= cwd (gdb) bt #0 0x4bc63f08 in ?? () #1 0x006b5534 in operator new (sz=3D340) at /build/gdb-2W62n4/gdb-12.1/gdbsupport/new-op.cc:59 #2 0xf2ae4c00 in boost::basic_regex > >::do_assign(char const*, char const*, unsi= gned int) () from /lib/hppa-linux-gnu/libboost_regex.so.1.74.0 #3 0xf4a98434 in ?? () from /lib/hppa-linux-gnu/libsource-highlight.so.4 #4 0xf773ae50 in call_init (env=3D0xf4b2f7dc, argv=3D0xf4b2f76c, argc=3D97= 90160, l=3D) at dl-init.c:70 #5 call_init (l=3D, argc=3D9790160, argv=3D0xf4b2f76c, env=3D0xf4b2f7dc) at dl-init.c:26 #6 0xf773af88 in _dl_init (main_map=3D0xf4b574c8, argc=3D-189597732, argv= =3D0x0, env=3D0x9562d0) at dl-init.c:117 #7 0xf7750f9c in _dl_start_user () from /lib/ld.so.1 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) frame 4 #4 0xf773ae50 in call_init (env=3D0xf4b2f7dc, argv=3D0xf4b2f76c, argc=3D97= 90160, l=3D) at dl-init.c:70 70 ((dl_init_t) addrs[j]) (argc, argv, env); (gdb) p j $1 =3D (gdb) list 65 66 jm =3D l->l_info[DT_INIT_ARRAYSZ]->d_un.d_val / sizeof (ElfW(Addr)); 67 68 addrs =3D (ElfW(Addr) *) (init_array->d_un.d_ptr + l->l_addr); 69 for (j =3D 0; j < jm; ++j) 70 ((dl_init_t) addrs[j]) (argc, argv, env); 71 } 72 } 73 74 (gdb) disass $pc-32,$pc+16 Dump of assembler code from 0xf773ae30 to 0xf773ae60: 0xf773ae30 : shladd,l r5,2,r3,r5 0xf773ae34 : ldw 0(r3),r22 0xf773ae38 : copy r19,r4 0xf773ae3c : copy r8,r24 0xf773ae40 : copy r7,r25 0xf773ae44 : copy r6,r26 0xf773ae48 : b,l 0xf775a9c4 <$$dyncall>,r31 0xf773ae4c : copy r31,rp =3D> 0xf773ae50 : ldo 4(r3),r3 0xf773ae54 : cmpb,<> r3,r5,0xf773ae34 0xf773ae58 : copy r4,r19 0xf773ae5c : ldw -94(sp),rp End of assembler dump. (gdb) frame 4 #4 0xf773ae50 in call_init (env=3D0xf4b2f7dc, argv=3D0xf4b2f76c, argc=3D97= 90160, l=3D) at dl-init.c:70 70 ((dl_init_t) addrs[j]) (argc, argv, env); (gdb) p/x $r22 $3 =3D 0x14add8 (gdb) x/2x 0x14add8 0x14add8 : 0x4bc63f09= =20=20=20=20 0x4bc53f11 (gdb) disass $pc-32,$pc+16 Dump of assembler code from 0xf773ae30 to 0xf773ae60: 0xf773ae30 : shladd,l r5,2,r3,r5 0xf773ae34 : ldw 0(r3),r22 0xf773ae38 : copy r19,r4 0xf773ae3c : copy r8,r24 0xf773ae40 : copy r7,r25 0xf773ae44 : copy r6,r26 0xf773ae48 : b,l 0xf775a9c4 <$$dyncall>,r31 0xf773ae4c : copy r31,rp =3D> 0xf773ae50 : ldo 4(r3),r3 0xf773ae54 : cmpb,<> r3,r5,0xf773ae34 0xf773ae58 : copy r4,r19 0xf773ae5c : ldw -94(sp),rp End of assembler dump. (gdb) x/x $r3 0x154: Cannot access memory at address 0x154 There is a problem running array initializers that wasn't present in 2.34. Gdb runs okay if I revert to 2.34-8. Not sure what changes when I run the interpreter first. --=20 You are receiving this mail because: You are on the CC list for the bug.=