This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/23206] static-pie + dlopen breaks debugger interaction
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 29 May 2018 02:07:20 +0000
- Subject: [Bug dynamic-link/23206] static-pie + dlopen breaks debugger interaction
- Auto-submitted: auto-generated
- References: <bug-23206-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23206
--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
The d82c7e2f4180e2d56ca66e3620dc344b0d72ca94 patch appears to fix everything:
Reading symbols from ./a.out...done.
(gdb) set stop-on-solib-events 1
(gdb) run
Starting program: /tmp/bz23206/a.out
Stopped due to shared library event (no libraries added or removed)
(gdb) c
Continuing.
Stopped due to shared library event:
Inferior loaded ./libfoo.so
/lib64/libc.so.6
/lib64/ld-linux-x86-64.so.2
(gdb) info shared
>From To Syms Read Shared Object Library
0x00007ffff7b4e550 0x00007ffff7b4e622 Yes ./libfoo.so
0x00007ffff77b0340 0x00007ffff78f725f Yes /lib64/libc.so.6
0x00007ffff7567f60 0x00007ffff7584910 Yes /lib64/ld-linux-x86-64.so.2
(gdb) c
Continuing.
DT_DEBUG: 0x7ffff7ffe8c0
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 return ret;
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff77b0561 in __GI_abort () at abort.c:79
#2 0x00007ffff7b4e612 in bar () at foo.c:5
#3 0x00007ffff7b4e61b in foo () at foo.c:11
#4 0x00007ffff7d58e7c in main () at t.c:20
--
You are receiving this mail because:
You are on the CC list for the bug.