From owner-freebsd-current Wed Jun 10 11:01:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA00756 for freebsd-current-outgoing; Wed, 10 Jun 1998 11:01:35 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (daemon@smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA00648; Wed, 10 Jun 1998 11:01:12 -0700 (PDT) (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id LAA03425; Wed, 10 Jun 1998 11:00:55 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp02.primenet.com, id smtpd003338; Wed Jun 10 11:00:46 1998 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id LAA00515; Wed, 10 Jun 1998 11:00:35 -0700 (MST) From: Terry Lambert Message-Id: <199806101800.LAA00515@usr01.primenet.com> Subject: Re: Spurious SIGXCPU To: bde@zeta.org.au (Bruce Evans) Date: Wed, 10 Jun 1998 18:00:35 +0000 (GMT) Cc: jdp@polstra.com, rb@gid.co.uk, current@FreeBSD.ORG, phk@FreeBSD.ORG In-Reply-To: <199806100912.TAA05983@godzilla.zeta.org.au> from "Bruce Evans" at Jun 10, 98 07:12:33 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >>Signal 24 is SIGXCPU (exceeded CPU time limit). Check your ulimit > >>settings ("limit" if you use csh) and your login.conf setup. > > > ># limit > >cputime unlimited > >[etc] > > > >Checked that before showing my head above the parapet; and I did say > >"Doesn't seem to be repeatable" :-) > > Apparently your process appeared to run for a negative amount of time. > p_runtime is unsigned (64 bits), so negative runtimes are interpreted > as huge runtimes, even huger than RLIMIT_INFINITY. This bug used to > be avoided by using signed variables even to hold values that should > be non-negative. Shouldn't accounting be done using monotime? Ie: shouldn't accounting only be subject to positive drift? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message