Bug 106186

Summary: [panic] panic in swap_pager_swap_init (amd64/smp/6.2-pre) [regression]
Product: Base System Reporter: Alex Vasylenko <lxv>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.2-PRERELEASE   
Hardware: Any   
OS: Any   

Description Alex Vasylenko 2006-12-02 02:50:06 UTC
I tried to upgrade an amd64x2 box from "FreeBSD 6.1-STABLE #36: Mon Sep
4 11:22:15 EDT 2006" to "FreeBSD 6.2-PRERELEASE #1: Mon Nov 13 10:01:57
EST 2006" and found that a newly built kernel panics on boot as follows:

SMP: AP CPU #1 Launched!
panic: failed to create swap_zone.
cpuid = Trying to mou0
KDB: enter: nt root from ufpanic
[thread pid 40 tid 100040 ]
Stopped at      kdb_enter+0x2f
db> where
Tracing pid 40 tid 100040 td 0xffffff003b9e24c0
kdb_enter() at kdb_enter+0x2f
panic() at panic+0x291
swap_pager_swap_init() at swap_pager_swap_init+0x20c
vm_pageout() at vm_pageout+0x17c
fork_exit() at fork_exit+0x86
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffffffa753bd00, rbp = 0 ---

old dmesg:      http://www.omut.org/~lxv/bbox-dmesg-20060824
new dmesg (-v): http://www.omut.org/~lxv/bbox-dmesg-20061113-v
kernel config:  http://www.omut.org/~lxv/bbox-GENERIC-BBOX

Fix: 

There are several known workarounds:
- GENERIC (UP) kernel works fine;
- my kernel (a stripped down SMP) with "options SMP" removed works;
- my kernel with SMP enabled and either -v or -d (followed by cont)
  works.

... and the best one discovered by another person who also experiences
this issue:
- have FireWire-related drivers removed from kernel configuration file
  (firewire/sbp/fwe)
Comment 1 Alex Vasylenko 2006-12-07 16:10:49 UTC
I was able to narrow the problem down to several commits to RELENG_6.
System built from cvsup "tag=RELENG_6 date=2006.09.26.22.00.00" boots 
fine, "tag=RELENG_6 date=2006.09.27.01.00.00" locks up.

All builds use this kernel configuration: 
http://www.omut.org/~lxv/bbox-GENERIC-BBOX
Comment 2 Jaakko Heinonen freebsd_committer freebsd_triage 2010-11-28 09:46:46 UTC
State Changed
From-To: open->feedback

Can you still reproduce this on 8.x?
Comment 3 Jaakko Heinonen freebsd_committer freebsd_triage 2010-12-13 19:14:31 UTC
State Changed
From-To: feedback->closed

Submitter can't reproduce anymore.