kern/52490: ^T'ing a zombie causes 'calcru: negative time' messages

Bruce Evans bde at FreeBSD.org
Tue Jun 22 05:58:49 GMT 2004


Synopsis: ^T'ing a zombie causes 'calcru: negative time' messages

State-Changed-From-To: open->closed
State-Changed-By: bde
State-Changed-When: Tue Jun 22 05:56:54 GMT 2004
State-Changed-Why: 
Fixed in a different way in rev.1.237 of kern_exit.c in -current.  ^T on
zombies now gives correct results in -current.

Worked around in a different way in 1.55.2.7 of kern_resource.c in
RELENG_4.  ^T on zombies now gives slightly out of date results in RELENG_4.

The test program in the PR was very useful for investigating the bug.

ps and friends aren't affected by the main bug, but they display
completely wrong times for zombies (always 0).  Resource usage is the
main thing that is not discarded when a process exits, so it should
be visible for zombies too.


http://www.freebsd.org/cgi/query-pr.cgi?pr=52490


More information about the freebsd-bugs mailing list