[DragonFlyBSD - Bug #1587] (Feedback) can't gdb across fork
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Mon Feb 24 05:23:55 PST 2014
Issue #1587 has been updated by tuxillo.
Status changed from New to Feedback
Hi,
This is still the case, I could reproduce it with the suggested test.
Breakpoint 1, stalloc (nbytes=24) at memalloc.c:151
151 {
(gdb)
Continuing.
Trace/BPT trap (core dumped)
But I have some questions here:
a) if the child has the breakpoint set, why is it still breaking at stalloc() ? Because If I am running 'ls' for example that function does not exist.
b) Are we sure this is not a gdb "feature" ?
FWIW, this is also the case in FreeBSD 10.
Cheers,
Antonio Huete
----------------------------------------
Bug #1587: can't gdb across fork
http://bugs.dragonflybsd.org/issues/1587#change-11837
* Author: corecode
* Status: Feedback
* Priority: Normal
* Assignee: tuxillo
* Category: Userland
* Target version: 3.8.0
----------------------------------------
When the debugged process performs a fork(), gdb/ptrace won't notice and
will not be able to remove breakpoints in the new child. When the child
then hits a breakpoint, it will receive a SIGTRAP and dump core.
gdb needs to be aware of forks, so that it will be able to remove the
breakpoints in the child.
Test: gdb sh and break stalloc.
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list