From owner-freebsd-hackers Mon Oct 11 11:46:44 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from colnta.acns.ab.ca (clgr000532.hs.telusplanet.net [161.184.82.24]) by hub.freebsd.org (Postfix) with ESMTP id 6AF2515585 for ; Mon, 11 Oct 1999 11:46:41 -0700 (PDT) (envelope-from davidc@colnta.acns.ab.ca) Received: from localhost (davidc@localhost) by colnta.acns.ab.ca (8.9.3/8.9.3) with ESMTP id MAA00383; Mon, 11 Oct 1999 12:46:29 -0600 (MDT) (envelope-from davidc@colnta.acns.ab.ca) Date: Mon, 11 Oct 1999 12:46:29 -0600 (MDT) From: Chad David To: Chris Costello Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: aio_read kills machine In-Reply-To: <19991010204252.D15135@holly.calldei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have submitted a PR. Upon closer inspection I found that it is not (directly) the call to aio_read() that kills the machine, but instead a call to sched_yield() after a call to pthread_cond_wait() with a NULL in the mutex field. Even a print statement before the call to sched_yield() prevents the kill. Some replys indicated that I should use -current for aio_*. Would this be true also for any serious threading? Is -current ready for a semi-production environment? The source for this code is available from http://www.guild.ab.ca/killer.tar.gz if anyone would like to take a look. The crash has been truncating main.c, so you may want to copy it before running the program. Thanks. Chad On Sun, 10 Oct 1999, Chris Costello wrote: > On Wed, Jan 01, 1997, Chad David wrote: > > I am certain that my program is not correct > > (besides the obvious consiquence of running > > it :) ), but I would also like to determine > > why it kills the machine. I was not root > > either time I ran the code. > > Then FreeBSD does have a problem. Please file a PR using the > ``send-pr'' command or http://www.freebsd.org/send-pr.html and > supply the source to your program and whatever other information > you think will help us in figuring out the problem. > > -- > |Chris Costello > |Field tested: Manufacturing doesn't have a test system. > `------------------------------------------------------- > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message