NetBSD Problem Report #7853

Received: (qmail 16462 invoked from network); 25 Jun 1999 15:49:43 -0000
Message-Id: <199906251549.KAA00377@caligula.cs.umn.edu>
Date: Fri, 25 Jun 1999 10:49:42 -0500 (CDT)
From: dokas@cs.umn.edu
Reply-To: dokas@cs.umn.edu
To: gnats-bugs@gnats.netbsd.org
Subject: SCSIPI panic
X-Send-Pr-Version: 3.95

>Number:         7853
>Category:       kern
>Synopsis:       SCSIPI panic under heavy disk I/O
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 25 08:50:01 +0000 1999
>Closed-Date:    Fri Jun 25 19:01:14 +0000 1999
>Last-Modified:  Fri Jun 25 19:01:34 +0000 1999
>Originator:     Paul Dokas
>Release:        NetBSD-current as of Jun 25
>Organization:
	University of Minnesota, Dept of Computer Science
>Environment:

System: NetBSD caligula 1.4D NetBSD 1.4D (CTHULHU) #6: Fri Jun 25 09:09:59 CDT 1999 root@caligula:/big/src/sys/arch/i386/compile/CTHULHU i386


>Description:

    While doing a 'make build', I decided to listen to a CD with the ATAPI CDROM
    using xmcd.  After about 10 minutes, the machine locked up, but the audio
    kept playing.

    I killed off xdm so that it would drop into ddb, and got this when I attempted
    to reboot:

    panic:  pr_enter
    Stopped in xmcd at      _Debugger+0x4:  leave
    db> reboot
    pool scxspl: reentrancy at file ../../../../dev/scsipi/scsipi_base.c line 112
             previous entry at file ../../../../dev/scsipi/scsipi_base.c line 156
    panic:  pr_enter
    Stopped in xmcd at      _Debugger+0x4:  leave


    To make matters even more complex, I've got /usr/src on a 2 9.0 GB SCSI disks
    configured as a RAID 0 hanging off of an ahc0 controller.  There was *lots* of
    disk activity when the panic occurred.

    I have no problems listening to music with xmcd when the system is otherwise
    quiet.

>How-To-Repeat:

    Play an audio CD while doing a 'make build' in /usr/src.

>Fix:

    Unknown.
>Release-Note:
>Audit-Trail:

From: Jason Thorpe <thorpej@nas.nasa.gov>
To: dokas@cs.umn.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/7853: SCSIPI panic 
Date: Fri, 25 Jun 1999 08:55:24 -0700

 On Fri, 25 Jun 1999 10:49:42 -0500 (CDT) 
  dokas@cs.umn.edu wrote:

  > >Description:
  > 
  >     While doing a 'make build', I decided to listen to a CD with the ATAPI CDROM
  >     using xmcd.  After about 10 minutes, the machine locked up, but the audio
  >     kept playing.
  > 
  >     I killed off xdm so that it would drop into ddb, and got this when I attempted
  >     to reboot:
  > 
  >     panic:  pr_enter

 What were the messages *before* the "panic: pr_enter" message?  Those are
 important, as they will tell you why pr_enter panic'd.

 The latter messages are a result of where the system crashed.

         -- Jason R. Thorpe <thorpej@nas.nasa.gov>


From: Paul B Dokas <dokas@cs.umn.edu>
To: Jason Thorpe <thorpej@nas.nasa.gov>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/7853: SCSIPI panic 
Date: Fri, 25 Jun 1999 12:20:55 -0500 (CDT)

 On Fri, 25 Jun 1999, Jason Thorpe wrote:
 > On Fri, 25 Jun 1999 10:49:42 -0500 (CDT) 
 >  dokas@cs.umn.edu wrote:
 > 
 >  > >Description:
 >  > 
 >  >     While doing a 'make build', I decided to listen to a CD with the ATAPI CDROM
 >  >     using xmcd.  After about 10 minutes, the machine locked up, but the audio
 >  >     kept playing.
 >  > 
 >  >     I killed off xdm so that it would drop into ddb, and got this when I attempted
 >  >     to reboot:
 >  > 
 >  >     panic:  pr_enter
 > 
 > What were the messages *before* the "panic: pr_enter" message?  Those are
 > important, as they will tell you why pr_enter panic'd.
 > 
 > The latter messages are a result of where the system crashed.
 > 
 >         -- Jason R. Thorpe <thorpej@nas.nasa.gov>

 And of course, I can't make it happen again... grrrr.  This has happened
 almost every time I've attempted to play music while running 'make build'
 over the past few weeks.  It's only now that I've bothered to attempt to
 get some useful debugging information.

 As for messages, I'm pretty sure that there were none other than what I sent:

   panic:  pr_enter
   .
   .
   .

 If I get more useful information, I'll sent it.

 Paul
 --
 Paul Dokas                                            dokas@cs.umn.edu
 ======================================================================
 Don Juan Matus:  "an enigma wrapped in mystery wrapped in a tortilla."


From: Jason Thorpe <thorpej@nas.nasa.gov>
To: Paul B Dokas <dokas@cs.umn.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/7853: SCSIPI panic 
Date: Fri, 25 Jun 1999 11:14:46 -0700

 On Fri, 25 Jun 1999 12:20:55 -0500 (CDT) 
  Paul B Dokas <dokas@cs.umn.edu> wrote:

  > And of course, I can't make it happen again... grrrr.  This has happened
  > almost every time I've attempted to play music while running 'make build'
  > over the past few weeks.  It's only now that I've bothered to attempt to
  > get some useful debugging information.
  > 
  > As for messages, I'm pretty sure that there were none other than what I sent:
  > 
  >   panic:  pr_enter
  >   .
  >   .
  >   .

 That's impossible (I ought to know; I wrote that code :-)  Here is the
 snippet of code that actually does the panic:

 	if (pp->pr_entered_file != NULL) {
 		printf("pool %s: reentrancy at file %s line %ld\n",
 		    pp->pr_wchan, file, line);
 		printf("         previous entry at file %s line %ld\n",
 		    pp->pr_entered_file, pp->pr_entered_line);
 		panic("pr_enter");
 	}

 ...so, in order for the panic() call to be executed, the printfs must
 be executed first :-)

 Those two printfs _before_ the panic actually contain the information
 about the bug you tripped.

  > If I get more useful information, I'll sent it.

 Great :-)

         -- Jason R. Thorpe <thorpej@nas.nasa.gov>


From: Paul B Dokas <dokas@cs.umn.edu>
To: Jason Thorpe <thorpej@nas.nasa.gov>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/7853: SCSIPI panic 
Date: Fri, 25 Jun 1999 13:23:24 -0500 (CDT)

 On Fri, 25 Jun 1999, Jason Thorpe wrote:
 > 
 > That's impossible (I ought to know; I wrote that code :-)  Here is the
 > snippet of code that actually does the panic:
 > 
 > 	if (pp->pr_entered_file != NULL) {
 > 		printf("pool %s: reentrancy at file %s line %ld\n",
 > 		    pp->pr_wchan, file, line);
 > 		printf("         previous entry at file %s line %ld\n",
 > 		    pp->pr_entered_file, pp->pr_entered_line);
 > 		panic("pr_enter");
 > 	}
 > 
 > ...so, in order for the panic() call to be executed, the printfs must
 > be executed first :-)
 > 
 > Those two printfs _before_ the panic actually contain the information
 > about the bug you tripped.
 > 
 >  > If I get more useful information, I'll sent it.
 > 
 > Great :-)
 > 
 >         -- Jason R. Thorpe <thorpej@nas.nasa.gov>

 Ok, it just panic'd again.  Here's what's on the screen (typed by hand):

 .
 .
 .
 Fri Jun 25 13:04:57 CDT 1999

 NetBSD/i386 (caligula) (ttyE0)

 login: panic: pr_enter
 Stopped in xmcd at	_Debugger+0x4:  leave
 db>



 Those two lines are definitely not there.  And, BTW, the Rob Zombie disk
 is still playing 8-)

 Also, to get this panic, I had to cause a lot of activity on the RAID 0
 with this:

   cd /big
   find . -type f -print | xargs ls -la



 Also, I'm not going to reboot the machine.  Just tell me what to type
 at the db> prompt and I'll send you the output.  You can also phone me
 if that's easier.  Just tell me that that's what you want to do and I'll
 send my phone #

 Paul
 --
 Paul Dokas                                            dokas@cs.umn.edu
 ======================================================================
 Don Juan Matus:  "an enigma wrapped in mystery wrapped in a tortilla."

State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Fri Jun 25 12:01:14 PDT 1999 
State-Changed-Why:  
Fix committed in rev 1.12.  Pullup request for 1.4.1 sent. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.