On May 24, 2010, at 8:57 AM, Nikolay Denev wrote:
> Hi,
>
> Recently I started to experience a if_sge(4) related panic.
> It happens almost every time I try to download a torrent file for example.
> Copying of large files over NFS seem not to trigger it, but I haven't
tested extensively.
>
> Here is the panic message :
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address = 0x8
> fault code = supervisor write data, page not present
> instruction pointer = 0x20:0xffffffff80230413
> stack pointer = 0x28:0xffffff80001e9280
> frame pointer = 0x28:0xffffff80001e9510
> code segment = base 0x0, limit 0xfffff, type 0x1b
> = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags = interrupt enabled, resume, IOPL = 0
> current process = 12 (irq19: sge0)
> trap number = 12
> panic: page fault
> cpuid = 0
> Uptime: 1d20h56m20s
> Cannot dump. Device not defined or unavailable
> Automatic reboot in 15 seconds - press a key on the console to abort
> Sleeping thread (tid 100039, pid 12) owns a non-sleepable lock
>
> My swap is on a zvol, so I don't have dump. I'll try to attach a
disk on the eSATA port and dump there if needed.
Here is some info from the crashdump :
(kgdb) #0 doadump () at pcpu.h:223
#1 0xffffffff802fb149 in boot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:416
#2 0xffffffff802fb57c in panic (fmt=0xffffffff8055d564 "%s")
at /usr/src/sys/kern/kern_shutdown.c:590
#3 0xffffffff805055b8 in trap_fatal (frame=0xffffff000288a3e0, eva=Variable
"eva" is not available.
)
at /usr/src/sys/amd64/amd64/trap.c:777
#4 0xffffffff805059dc in trap_pfault (frame=0xffffff80001e91d0, usermode=0)
at /usr/src/sys/amd64/amd64/trap.c:693
#5 0xffffffff805061c5 in trap (frame=0xffffff80001e91d0)
at /usr/src/sys/amd64/amd64/trap.c:451
#6 0xffffffff804eb977 in calltrap ()
at /usr/src/sys/amd64/amd64/exception.S:223
#7 0xffffffff80230413 in sge_start_locked (ifp=0xffffff000270d800)
at /usr/src/sys/dev/sge/if_sge.c:1591
#8 0xffffffff80231044 in sge_start (ifp=0xffffff000270d800)
at /usr/src/sys/dev/sge/if_sge.c:1562
#9 0xffffffff803a8b1a in if_transmit (ifp=0xffffff000270d800, m=Variable
"m" is not available.
)
at /usr/src/sys/net/if.c:3355
#10 0xffffffff803adbbb in ether_output_frame (ifp=0xffffff000270d800,
m=0xffffff0007fdd600) at /usr/src/sys/net/if_ethersubr.c:452
#11 0xffffffff803ae206 in ether_output (ifp=0xffffff000270d800,
m=0xffffff0007fdd600, dst=Variable "dst" is not available.
) at /usr/src/sys/net/if_ethersubr.c:423
#12 0xffffffff803e1798 in ip_output (m=0xffffff0007fdd600, opt=Variable
"opt" is not available.
)
at /usr/src/sys/netinet/ip_output.c:634
#13 0xffffffff803ec6d0 in tcp_output (tp=0xffffff0007ea56e0)
at /usr/src/sys/netinet/tcp_output.c:1190
#14 0xffffffff803e7243 in tcp_do_segment (m=0xffffff00cd095900,
th=0xffffff0007743834, so=0xffffff0007e9e550, tp=0xffffff0007ea56e0,
drop_hdrlen=52, tlen=0, iptos=0 '\0', ti_locked=2)
at /usr/src/sys/netinet/tcp_input.c:1484
#15 0xffffffff803ea565 in tcp_input (m=0xffffff00cd095900, off0=Variable
"off0" is not available.
)
at /usr/src/sys/netinet/tcp_input.c:1029
#16 0xffffffff803de6c1 in ip_input (m=0xffffff00cd095900)
at /usr/src/sys/netinet/ip_input.c:793
#17 0xffffffff803b637e in netisr_dispatch_src (proto=1, source=Variable
"source" is not available.
)
at /usr/src/sys/net/netisr.c:917
#18 0xffffffff803ada6d in ether_demux (ifp=0xffffff000270d800,
m=0xffffff00cd095900) at /usr/src/sys/net/if_ethersubr.c:901
#19 0xffffffff803ae3f0 in ether_input (ifp=0xffffff000270d800,
m=0xffffff00cd095900) at /usr/src/sys/net/if_ethersubr.c:760
#20 0xffffffff802317db in sge_intr (arg=Variable "arg" is not
available.
) at /usr/src/sys/dev/sge/if_sge.c:1220
#21 0xffffffff802d202d in intr_event_execute_handlers (p=Variable "p"
is not available.
)
at /usr/src/sys/kern/kern_intr.c:1220
#22 0xffffffff802d36de in ithread_loop (arg=0xffffff000286f4c0)
at /usr/src/sys/kern/kern_intr.c:1233
#23 0xffffffff802cf978 in fork_exit (
callout=0xffffffff802d3650 <ithread_loop>, arg=0xffffff000286f4c0,
frame=0xffffff80001e9c80) at /usr/src/sys/kern/kern_fork.c:844
#24 0xffffffff804ebe4e in fork_trampoline ()
at /usr/src/sys/amd64/amd64/exception.S:562
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000001 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0x0000000000000000 in ?? ()
#44 0x0000000000000000 in ?? ()
#45 0x0000000000000000 in ?? ()
#46 0x0000000000000000 in ?? ()
#47 0x0000000000000000 in ?? ()
#48 0x0000000000000000 in ?? ()
#49 0x000000000126d000 in ?? ()
#50 0x0000000000000000 in ?? ()
#51 0x0000000000000000 in ?? ()
#52 0xffffffff80787c40 in affinity ()
#53 0xffffff000288a3e0 in ?? ()
#54 0xffffff80001e9b80 in ?? ()
#55 0xffffff80001e9b38 in ?? ()
#56 0xffffff00027253e0 in ?? ()
#57 0xffffffff80320cf7 in sched_switch (td=0xffffffff802d3650,
newtd=0xffffff000286f4c0, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/sched_ule.c:1844
Previous frame inner to this frame (corrupt stack?)