From nobody@FreeBSD.org  Wed Feb 13 09:11:31 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C47A016A417
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Feb 2008 09:11:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B644F13C45D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Feb 2008 09:11:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1D99Eq6018630
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Feb 2008 09:09:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1D99EZp018629;
	Wed, 13 Feb 2008 09:09:14 GMT
	(envelope-from nobody)
Message-Id: <200802130909.m1D99EZp018629@www.freebsd.org>
Date: Wed, 13 Feb 2008 09:09:14 GMT
From: Simon Lundstrm <simon.lundstrom@it.su.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel panic when using lighttpd, dev claims not their fault
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120609
>Category:       i386
>Synopsis:       [panic]: Kernel panic when using lighttpd, dev claims not their fault
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 13 09:20:01 UTC 2008
>Closed-Date:    Tue Feb 19 20:59:30 UTC 2008
>Last-Modified:  Tue Feb 19 20:59:30 UTC 2008
>Originator:     Simon Lundstrm
>Release:        5.4-STABLE
>Organization:
Stockholm University
>Environment:
FreeBSD storm.it.su.se 5.4-STABLE FreeBSD 5.4-STABLE #11: Thu Nov 24 15:14:58 CET 2005     root@lab18.lab.it.su.se:/usr/obj/afs/su.se/system/i386_fbsd5x/build-tree/src/sys/SU-GENERIC  i386
>Description:
I know that devs hate tickets like this one (I sure do), but I'd like some information about what might have gone wrong. Also, Jan Kneschke the lead developer of lighttpd requested this ticket since he have not recieved any similar ticket and noted that lighttpd should not cause a kernel panic since it isn't in the kernel and doing dangerous stuff (except using standard functions for this).

We are using lighttpd on a machine to only do HTTP redirects based on what IP it comes from and the machine kernel paniced one day (not ever since) with this message:

Kernel trap 12 with interrupts disabled

Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 06
fault virtual address		= 0x24
fault code					= supervisor read, page not present
instruction pointer			= 0x8:0xc063a11b
stack pointer				= 0x10:0xe8be3b74
frame pointer				= 0x10:0xe8be3b88
code segment				= base 0x0, limit 0xfffff, type 0x1b
							= DPL 0, pres 1, def32 1, gran 1
processor eflags			= resume, IOPL = 0
current process				= 26536 (lighttpd)
trap number					= 12
panic: page fault
cpuid = 2
spin lock sched lock held by 0xc349e688 for > 5 seconds
spin lock sched lock held by 0xc349e688 for > 5 seconds

I'm sorry if some of the info is incorrect, I took a photo of the monitor with my mobilephonecamera and it was a bit blurry. I tried my best to interpret it.
>How-To-Repeat:
Has not occurred since the problem first appeared.
>Fix:
None.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Feb 13 10:43:41 UTC 2008 
Responsible-Changed-Why:  
Unclear what the problem is, but does not sound i386 specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120609 

From: "Remko Lodder" <remko@elvandar.org>
To: Simon =?iso-8859-1?Q?Lundstr=F6m?= <simon.lundstrom@it.su.se>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/120609: Kernel panic when using lighttpd,
      dev claims not their fault
Date: Wed, 13 Feb 2008 11:43:26 +0100 (CET)

 What does FreeBSD 6.3 do? what does 7.0-RC2 do? can you obtain a
 kernelcrash dump ? If so please check
 http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 
 Thanks,
 Remko
 
 -- 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
  X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
 
 

From: =?ISO-8859-1?Q?Simon_Lundstr=F6m?= <simon.lundstrom@it.su.se>
To: remko@elvandar.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/120609: Kernel panic when using lighttpd,      dev claims
 not their fault
Date: Wed, 13 Feb 2008 16:01:45 +0100

 Remko Lodder wrote:
 > What does FreeBSD 6.3 do? what does 7.0-RC2 do? can you obtain a
 > kernelcrash dump ? If so please check
 > http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 > 
 > Thanks,
 > Remko
 
 First of all, what a fast response! I didn't expect it so soon!
 
 We can't use >5.4 because there is no AFS client available and we depend 
 on AFS.
 
 dumpdev wasn't set to default in our rc.conf, I have done so now and 
 will reboot the machine tomorrow morning to be sure to get a dump next 
 time (if it happends). Because like I said, this has happend one time 
 during a whole month, so it's not like I can reproduce it. I don't think 
 the machine was under a lot of load at the moment either. And it's not a 
 slow computer, P4 3.2Ghz Dual Processor with HT and 2GB of RAM.
 
 -- 
 
 Regards,
 Simon Lundstrm
 System Technician
 IT Services, Stockholm University

From: "Remko Lodder" <remko@elvandar.org>
To: Simon =?iso-8859-1?Q?Lundstr=F6m?= <simon.lundstrom@it.su.se>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/120609: Kernel panic when using lighttpd,
      dev claims not their fault
Date: Wed, 13 Feb 2008 16:46:37 +0100 (CET)

 OK Lets see what comes out of that then :-), though if we cannot obtain a
 kernel crash dump I suspect it will be near impossible to resolve
 something like this, hopefully you can understand that...
 
 In addition; note that RELENG_5 will be supported till the end of May this
 year, after that the support stops, this might put you at risk at some
 point. Just to remind you :)
 
 Cheers,
 Remko
 
 -- 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
  X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
 
 
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Feb 19 20:59:28 UTC 2008 
State-Changed-Why:  
The submitter changed the dumpdev device so that panics will get trapped 
now. This occured only once so far and I want to close the ticket till 
we can get an update from the submitter with a backtrace et all. Without 
it we wont be able to resolve it (as far as I know), thanks for the 
submitter to reply very quickly and thanks for using FreeBSD :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120609 
>Unformatted:
