This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]