strace causes panic: sleeping thread

Kostik Belousov kostikbel at gmail.com
Tue May 1 11:19:11 UTC 2007


On Tue, May 01, 2007 at 12:35:49PM +0200, Dag-Erling Sm?rgrav wrote:
> 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.

The procfs PIOCWAIT/PIOCWAIT32 ioctls drop the p_mtx for sleep. Could it be
that p being freed/reused meantime ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070501/1928bb22/attachment.pgp


More information about the freebsd-current mailing list