From Jos.Backus@nl.origin-it.com Thu Jul 22 02:00:12 1999
Return-Path: <Jos.Backus@nl.origin-it.com>
Received: from gw-nl3.philips.com (gw-nl3.philips.com [192.68.44.35])
	by hub.freebsd.org (Postfix) with ESMTP id 8E61814CF1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Jul 1999 02:00:10 -0700 (PDT)
	(envelope-from Jos.Backus@nl.origin-it.com)
Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1])
          by gw-nl3.philips.com with ESMTP id KAA16566
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Jul 1999 10:59:01 +0200 (MEST)
          (envelope-from Jos.Backus@nl.origin-it.com)
Received: from smtprelay-eur1.philips.com(130.139.36.3) by gw-nl3.philips.com via mwrap (4.0a)
	id xma016564; Thu, 22 Jul 99 10:59:01 +0200
Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) 
	by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with SMTP id KAA00497
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Jul 1999 10:59:00 +0200 (MET DST)
Received: (qmail 751 invoked by uid 666); 22 Jul 1999 08:59:22 -0000
Message-Id: <19990722085922.750.qmail@hal.mpn.cp.philips.com>
Date: 22 Jul 1999 08:59:22 -0000
From: Jos Backus <Jos.Backus@nl.origin-it.com>
Reply-To: Jos Backus <Jos.Backus@nl.origin-it.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: idprio-related panic in -stable and -current
X-Send-Pr-Version: 3.2

>Number:         12758
>Category:       kern
>Synopsis:       Adjusting the idle priority of a process causes panic
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 22 02:10:01 PDT 1999
>Closed-Date:    Fri Jul 20 16:51:57 PDT 2001
>Last-Modified:  Fri Jul 20 16:52:51 PDT 2001
>Originator:     Jos Backus
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Origin B.V.
>Environment:

	-current as of today, -stable as of 19 July 1999

>Description:

	See below.

>How-To-Repeat:

	% primes 3 > /dev/null &
	[1] 306
	% primes 3 > /dev/null &
	[2] 307
	% su
	# idprio 31 -306
	# idprio -t -306
	# panic: remrq
	Debugger("panic") at ...
	db> trace
	Debugger(c01dba5b) at Debugger+0x38
	panic(c01c21fe,c012e00b2,c832a8c0,0,c012dfa4) at panic+0x74
	rem1(0,40000000,280ef774,bfbfd940,a) at rem1
	softclock(0,2f,2f,2f,a) at softclock+0xde
	doreti_swi() at doreti_swi+0xf

	Apparently this only happens when the CPU load is above normal, hence
	two instances of the primes program had to be started.

>Fix:
	
	No idea.


>Release-Note:
>Audit-Trail:

From: Andy Farkas <andyf@speednet.com.au>
To: Jos Backus <Jos.Backus@nl.origin-it.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/12758: idprio-related panic in -stable and -current
Date: Thu, 29 Jun 2000 01:52:47 +1000 (EST)

 This PR is comming up to its first year anniversary!
 
 I just tried it on a 4.0-STABLE built Jun 28 2000 and got a "kernel trap
 12 with interrupts disabled" followed by two(!) "Fatal trap 12: page fault
 while in kernel mode" dumps.  Reproducable.
 
 It triggers when you kill the idprio'd process, which is a bit different
 <from the original...
 
 Doubtfully hardware, but my system is a 90MHz P54C with 32MB RAM, 1 ide
 disk on MB controller, 1 8-bit 3c503.
 
 On 22 Jul 1999, Jos Backus wrote:
 
 > Date: 22 Jul 1999 08:59:22 -0000
 > From: Jos Backus <Jos.Backus@nl.origin-it.com>
 > To: FreeBSD-gnats-submit@FreeBSD.ORG
 > Subject: kern/12758: idprio-related panic in -stable and -current
 [snip] 
 > >How-To-Repeat:
 > 
 > 	% primes 3 > /dev/null &
 > 	[1] 306
 > 	% primes 3 > /dev/null &
 > 	[2] 307
 > 	% su
 > 	# idprio 31 -306
 > 	# idprio -t -306
 > 	# panic: remrq
 > 	Debugger("panic") at ...
 > 	db> trace
 > 	Debugger(c01dba5b) at Debugger+0x38
 > 	panic(c01c21fe,c012e00b2,c832a8c0,0,c012dfa4) at panic+0x74
 > 	rem1(0,40000000,280ef774,bfbfd940,a) at rem1
 > 	softclock(0,2f,2f,2f,a) at softclock+0xde
 > 	doreti_swi() at doreti_swi+0xf
 > 
 > 	Apparently this only happens when the CPU load is above normal, hence
 > 	two instances of the primes program had to be started.
 > 
 > >Fix:
 > 	
 > 	No idea.
 > 
 > 
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > 
 
 --
  
  :{ andyf@speednet.com.au
   
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
   
 
 
 

From: Andy Farkas <andyf@speednet.com.au>
To: "Richard Seaman, Jr." <dick@tar.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/12758: idprio-related panic in -stable and -current
Date: Thu, 29 Jun 2000 11:45:31 +1000 (EST)

 Richard Seaman, Jr. wrote:
 
 > I'm attaching some patches against 5.0-current, though I think they might
 > apply cleanly to a 4.0 system like yours (I don't have a 4.0 system, sorry).
 
 The patches applied cleanly except for conf/files (-stable has v1.340.2.8) 
 but the 1 line deletetion was easy to apply manually.
 
 The system no longer panics when doing the test.
 
 > -- 
 > Richard Seaman, Jr.        email:    dick@tar.com
 > 5182 N. Maple Lane         phone:    262-367-5450
 > Nashotah WI 53058            fax:    262-367-5852
 > 
 
 --
  
  :{ andyf@speednet.com.au
   
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
   
 
 
 

From: "Richard Seaman, Jr." <dick@tar.com>
To: Andy Farkas <andyf@speednet.com.au>
Cc: "Richard Seaman, Jr." <dick@tar.com>,
	freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/12758: idprio-related panic in -stable and -current
Date: Thu, 29 Jun 2000 06:32:24 -0500

 On Thu, Jun 29, 2000 at 11:45:31AM +1000, Andy Farkas wrote:
 
 > The patches applied cleanly except for conf/files (-stable has v1.340.2.8) 
 > but the 1 line deletetion was easy to apply manually.
 > 
 > The system no longer panics when doing the test.
 
 Thanks for confirming this.  The patches definately need more work.
 At a minimum there's a missing splhigh, and a PRISON_CHECK should
 probably be added to rtprio (or dortprio), though there may be other
 changes needed too.
 
 -- 
 Richard Seaman, Jr.        email:    dick@tar.com
 5182 N. Maple Lane         phone:    262-367-5450
 Nashotah WI 53058            fax:    262-367-5852
 
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Fri Jul 20 16:51:57 PDT 2001 
State-Changed-Why:  

Duplicate of PR: kern/5641 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12758 
>Unformatted:
