Bug 148106

Summary: [panic] nginx udplog causes kernel panic on 8.0-RELEASE-p2 amd64
Product: Base System Reporter: Alexey Samoylov <sav>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 8.0-RELEASE   
Hardware: Any   
OS: Any   

Description Alexey Samoylov 2010-06-24 08:30:06 UTC
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 rx0,
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-06-24 21:29:33 UTC
State Changed
From-To: open->feedback

Can you show us a stack trace of the panic?
Comment 2 Jaakko Heinonen freebsd_committer freebsd_triage 2010-09-02 16:05:41 UTC
State Changed
From-To: feedback->closed

Feedback timeout.