Bug 32995

Summary: Kernel panic (fatal trap 12): page fault while in kernel mode
Product: Base System Reporter: Giovanni Picoli Tirloni <tirloni>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Giovanni Picoli Tirloni 2001-12-19 01:30:00 UTC
      After updating to 4.4-STABLE of day Dec 18 I recompiled world and kernel. All won't fine until the reboot. For some reason when any application tries to use some network related kernel function (I guess) the kernel panics. It happens just after I run ppp(8) because I've ntpdate in ppp.linkup or even if I'm not connected but I open Opera 5.05, which tries to open the home page, the kernel panics. In general, if I do anything related after tun0 is up. That doesn't happen with lo0 or any other device. I don't have ethernet support compiled, by the way. So I think it's something really related to a modification someone did in the networking stack or in ppp(8) itself. But crashing even when tun0 isn't up get me annoyed. I compiled the kernel many many times with and without optimizations (-O and -O3), removed some options like USER_LDT, LINUX, EXT2FS, PPP_DEFLATE, RANDOM_IP, etc with no luck. 

My kernel config follows:

machine    i386
cpu        I586_CPU
ident      MINK
maxusers   48

options    COMPAT_LINUX
options    INET
options    EXT2FS
options    FFS_ROOT
options    SOFTUPDATES
options    MSDOSFS
options    CD9660
options    PROCFS
options    COMPAT_43
options    UCONSOLE
options    SYSVSHM
options    SYSVMSG
options    SYSVSEM
options    P1003_1B
options    _KPOSIX_PRIORITY_SCHEDULING
options    KBD_INSTALL_CDEV
options    TCP_DROP_SYNFIN

device     isa
device     pci

device     fdc0 at isa? port IO_FD1 irq 6 drq 2
device     fd0 at fdc0 drive 0

device     ata0 at isa? port IO_WD1 irq 14
device     ata1 at isa? port IO_WD2 irq 15
device     ata
device     atadisk
device     atapicd
device     atapifd
options    ATA_STATIC_ID

device     atkbdc0 at isa? port IO_KBD
device     atkbd0 at atkbdc? irq 1 flags 0x1

device     vga0 at isa?
options    VESA
pseudo-device splash

device     sc0 at isa? flags 0x100

device npx0 at nexus? port IO_NPX irq 13

device    sio0 at isa? port IO_COM1 flags 0x10 irq 4
device    sio1 at isa? port IO_COM2 irq 3

pseudo-device  loop
pseudo-device  tun
pseudo-device  pty
pseudo-device  vn
pseudo-device  ether
pseudo-device  tap
pseudo-device  snp

pseudo-device  bpf

device         pcm0

options        IPFILTER
options        IPFILTER_LOG
options        IPFILTER_DEFAULT_BLOCK
options        PPP_DEFLATE
options        PPP_BSDCOMP
options        RANDOM_IP_ID
options        UFS_DIRHASH

My system is a Pentium 200Mhz MMX, 48M EDO RAM, 4G+2G+800M HDDs, Modem USR 56k v90/x2 ISA, No ethernet.

The same configurations stopped to work after the cvsup.

How-To-Repeat:       Use a kernel (and world) from Tue Dec 18 2001 or so, get your tun0 iface up with ppp(8) and try any app that use that iface. I was unable to try with other iface types though.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2001-12-30 13:57:42 UTC
State Changed
From-To: open->feedback

Please take a look at this FAQ entry and then submit your follow-up to 
<freebsd-gnats-submit@FreeBSD.org>, preserving the subject line 
of this message: 

http://www.freebsd.org/FAQ/advanced.html#KERNEL-PANIC-TROUBLESHOOTING
Comment 2 Tony Maher 2001-12-31 07:02:13 UTC
Do you have any old modules from ports - like net/trafcount?
If so remove and try rebooting wihtout it.  Then try reinstalling,
something changed between Dec 12 and Dec 29.
--
  Tony Maher
Comment 3 tirloni 2001-12-31 13:37:17 UTC
On Mon, 31 Dec 2001, Tony Maher wrote:

> Do you have any old modules from ports - like net/trafcount?
> If so remove and try rebooting wihtout it.  Then try reinstalling,
> something changed between Dec 12 and Dec 29.
> --
>   Tony Maher
>
>

 Yes, that was the problem. I was running trafcount. It works now that
 I've removed the module. Thanks very much.

 --
 Giovanni P. Tirloni                                  tirloni@bs2.com.br
 BS2 Sistemas para Internet Ltda.              +55 44  263 6300   (work)
 Network Administrator                         +55 44 9112 0693 (mobile)
Comment 4 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-11 15:39:28 UTC
State Changed
From-To: feedback->closed

Resolved - stale third-party kernel module.