]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r257670:
authormarkj <markj@FreeBSD.org>
Fri, 27 Dec 2013 22:30:36 +0000 (22:30 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 27 Dec 2013 22:30:36 +0000 (22:30 +0000)
commitc911703d6097a13f755df22aa6d83f1f3fe3b386
tree22cfb798dcf49df694bb62d4faa7cc07dd432e01
parentc8ab0690337ed12d53ad5b55b42590ba589c2291
MFC r257670:
Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.
lib/libproc/proc_bkpt.c