strace causes panic: sleeping thread

Kostik Belousov kostikbel at
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 (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 :

More information about the freebsd-current mailing list