[Bug breakpoints/19546] New: gdb crash calling exec in the inferior
palves at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Feb 1 11:22:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=19546
Bug ID: 19546
Summary: gdb crash calling exec in the inferior
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: palves at redhat dot com
Target Milestone: ---
Current GDB master crashes if you call "exec" in the inferior.
$ gdb ./testsuite/gdb.base/foll-exec
GNU gdb (GDB) 7.10.50.20160201-git
(gdb) start
Temporary breakpoint 1 at 0x4006b8: file
/home/pedro/gdb/mygit/src/gdb/testsuite/gdb.base/foll-exec.c, line 27.
Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/foll-exec
Temporary breakpoint 1, main () at
/home/pedro/gdb/mygit/src/gdb/testsuite/gdb.base/foll-exec.c:27
27 int local_j = global_i + 1;
(gdb) p execlp ("/bin/bash", "/bin/bash", (char *) 0)
Segmentation fault (core dumped)
7.10 works as expected.
Looks like a regression of the explicit locations work.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list