[Bug gdb/22682] New: PIE incompatible with 'set detach-on-fork off'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/22682] New: PIE incompatible with 'set detach-on-fork off'

digitalfreak at lingonborough dot com
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.