From owner-freebsd-current Sat Sep 29 20:27:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id 1E92D37B407 for ; Sat, 29 Sep 2001 20:25:09 -0700 (PDT) Received: (qmail 95240 invoked from network); 30 Sep 2001 03:25:04 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 Sep 2001 03:25:04 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010929173906.A1359@dhcp01.pn.xcllnt.net> Date: Sat, 29 Sep 2001 20:24:47 -0700 (PDT) From: John Baldwin To: Marcel Moolenaar Subject: Re: panic: blockable sleep lock (sx) ... Cc: current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 30-Sep-01 Marcel Moolenaar wrote: > On Sat, Sep 29, 2001 at 12:52:48PM -0700, John Baldwin wrote: >> >> could figure out the faulting address that it trapp'd one that would help. >> You >> could add KTR tracepoints or some such to store the log message to do that >> and >> then examin the KTR buffer to get the actual faulting address. > > Ok. In the remote debugger I got a lot more data. In fact, it > brought me to linux_alarm() in /sys/compat/linux_misc.c > > First some data about the trapping thread: > > td = curthread = 0xcbb89304 looks ok > kg = td->ksegrp = 0xcbb89230 looks ok > > td->td_proc->p_comm = "swi6: tty:sio clock" > > The LTP test that seems to be causing this is doing an alarm(). > > In linux_alarm() I see: > > : > s = splsoftclock(); > old_it = td->td_proc->p_realtimer; > : > td->td_proc->p_realtimer = it; > splx(s); > : > > Is the splsoftclock() acceptable locking to access td->td_proc? For now the code should be fine b/c it is under Giant. (The spl's don't dp anything anymore.) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message