Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Feb 2004 22:49:52 -0700
From:      Robin Schoonover <end@endif.cjb.net>
To:        freebsd-current@freebsd.org
Subject:   extra truss evilness
Message-ID:  <20040301054953.3391A43D1F@mx1.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
It's possible to panic the system with truss (doesn't appear related to
race conditions with truss).

It appears that if truss is 'watching' a process, and the process forks,
than the system could possibly hang.  However this is rare and hard to
reproduce.

However, if a process truss is 'watching' forks, and then the parent
process is interupted (^C), than the system will panic multiple times. This
has a much higher likelyhood of occuring.

I've been able to reproduce this with the following C snippet:
int pid = fork(10);
sleep(10);

Run, wait a few seconds (so we KNOW we are after fork occurs), then hit ^C.
Panic.

-- 
Robin Schoonover (aka End)
#
# "Freedom of speech in Usenet means that when you shout 'Fire!' in a
# crowded theatre, half the crowd stands up and shouts, 'Wrong theatre!'"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040301054953.3391A43D1F>