From nobody@FreeBSD.org  Thu Jun 24 07:29:03 2010
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 C371F106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jun 2010 07:29:03 +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 98DE78FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jun 2010 07:29:03 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5O7T2Vm071018
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jun 2010 07:29:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5O7T2tT071017;
	Thu, 24 Jun 2010 07:29:02 GMT
	(envelope-from nobody)
Message-Id: <201006240729.o5O7T2tT071017@www.freebsd.org>
Date: Thu, 24 Jun 2010 07:29:02 GMT
From: Alexey Samoylov <sav@ecom24.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nginx udplog causes kernel panic on 8.0-RELEASE-p2 amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148106
>Category:       amd64
>Synopsis:       [panic] nginx udplog causes kernel panic on 8.0-RELEASE-p2 amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 24 07:30:06 UTC 2010
>Closed-Date:    Thu Sep 02 15:05:46 UTC 2010
>Last-Modified:  Thu Sep 02 15:05:46 UTC 2010
>Originator:     Alexey Samoylov
>Release:        8.0-RELEASE-p2
>Organization:
E-Commerce LLC
>Environment:
FreeBSD foo.bar 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Feb  9 08:30:33 CET 2010     root@neo.vx.sk:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Hello!

A few days ago I tried to use udplog module in nginx and was very upset of result:

Jun 14 08:11:15 srv2 kernel: pid 22283 (nginx), uid 1001: exited on
signal 11
Jun 14 08:11:15 srv2 kernel: pid 22284 (nginx), uid 1001: exited on
signal 11
Jun 14 08:11:15 srv2 kernel: pid 22281 (nginx), uid 1001: exited on
signal 11
Jun 14 08:11:15 srv2 kernel: pid 22288 (nginx), uid 1001: exited on
signal 11
Jun 14 08:11:15 srv2 kernel: pid 22275 (nginx), uid 1001: exited on
signal 11
Jun 14 08:11:15 srv2 kernel:
Jun 14 08:11:15 srv2 kernel:
Jun 14 08:11:15 srv2 kernel: Fatal trap 12: page fault while in kernel mode
Jun 14 08:11:15 srv2 kernel: cpuid = 5; apic id = 05
Jun 14 08:11:15 srv2 kernel: fault virtual address = 0x20
Jun 14 08:11:15 srv2 kernel: fault code = supervisor read data,
page not present
Jun 14 08:11:15 srv2 kernel: instruction pointer =
0x20:0xffffffff805ba22e
Jun 14 08:11:15 srv2 kernel: stack pointer =
0x28:0xffffff800012ba20
Jun 14 08:11:15 srv2 kernel: frame pointer =
0x28:0xffffff800012bb60
Jun 14 08:11:15 srv2 kernel: code segment = base 0x0,
limit 0xfffff, type 0x1b
Jun 14 08:11:15 srv2 kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Jun 14 08:11:15 srv2 kernel: processor eflags = interrupt enabled,
resume, IOPL = 0
Jun 14 08:11:15 srv2 kernel: current process = 0 (thread taskq)
Jun 14 08:11:15 srv2 kernel: trap number = 12
Jun 14 08:11:15 srv2 kernel: panic: page fault
Jun 14 08:11:15 srv2 kernel: cpuid = 5
Jun 14 08:11:15 srv2 kernel: Uptime: 30d3h6m15s
Jun 14 08:11:15 srv2 kernel: (ada0:ahcich0:0:0:0): Synchronize cache failed
Jun 14 08:11:15 srv2 kernel: (ada1:ahcich1:0:0:0): Synchronize cache failed
Jun 14 08:11:15 srv2 kernel: Cannot dump. Device not defined or unavailable.
Jun 14 08:11:15 srv2 kernel: Automatic reboot in 15 seconds - press a
key on the console to abort

nginx is compiled with udplog module.
Problem exists only if I use udplog directives in config file.

Software versions: 8.0-RELEASE-p2 amd64, nginx/0.8.35
>How-To-Repeat:
People in nginx mailing list say that this is a repeatable bug on 64bit FreeBSD.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Jun 24 20:29:33 UTC 2010 
State-Changed-Why:  
Can you show us a stack trace of the panic? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148106 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Thu Sep 2 15:05:41 UTC 2010 
State-Changed-Why:  
Feedback timeout. 

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