strace causes panic: sleeping thread

Dag-Erling Smørgrav des at des.no
Tue May 1 10:35:58 UTC 2007


des at des.no (Dag-Erling Smørgrav) writes:
> procfs_ioctl() needs the process to be locked; pn_ioctl() verifies
> that this is the case before calling it.  The correct fix is not to
> unlock the process before calling procfs_ioctl(), but to remove the
> latter's redundant PROC_LOCK() / PROC_UNLOCK() calls.

See attached patch.

DES
-- 
Dag-Erling Smørgrav - des at des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: procfs.diff
Type: text/x-patch
Size: 711 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070501/32eb5bd6/procfs.bin


More information about the freebsd-current mailing list