This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22682] New: PIE incompatible with 'set detach-on-fork off'
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 08 Jan 2018 19:52:11 +0000
- Subject: [Bug gdb/22682] New: PIE incompatible with 'set detach-on-fork off'
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22682
Bug ID: 22682
Summary: PIE incompatible with 'set detach-on-fork off'
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target Milestone: ---
echo 'main(){fork();}'|gcc -x c - -fPIE -pie;gdb -q ./a.out -ex 'set
detach-on-fork off' -ex 'b main' -ex r -ex c
Actual:
[New process 29346]
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x63a
Expected:
[New process 29346]
Reading symbols from /usr/lib/debug/usr/lib64/libc-2.26.so.debug...done.
Reading symbols from /usr/lib/debug/usr/lib64/ld-2.26.so.debug...done.
[Inferior 1 (process 29340) exited normally]
--
You are receiving this mail because:
You are on the CC list for the bug.