kern/138476: [panic] [sshfs] [fuse] Almost regular panic during VFS operations; maybe related to sshfs

Stephane Rochoy stephane.rochoy at netasq.com
Wed Sep 2 10:10:05 UTC 2009


>Number:         138476
>Category:       kern
>Synopsis:       [panic] [sshfs] [fuse] Almost regular panic during VFS operations; maybe related to sshfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 02 10:10:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Stephane Rochoy
>Release:        7.2-RELEASE-p3
>Organization:
>Environment:
FreeBSD cthulhu.netasq.com 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Wed Sep  2 09:06:11 CEST 2009     root at cthulhu.tac.netasq.com:/usr/obj/usr/src/sys/DEBUG-GENERIC  i386
>Description:
The system panic almost every two days at 03:02am CEST. The panics started to occure when I started to keep permanent sshfs mounts.

Here is the backtrace:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc08617e6
stack pointer           = 0x28:0xe71d3808
frame pointer           = 0x28:0xe71d3844
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 13458 (find)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 23h58m34s
Physical memory: 1010 MB
Dumping 134 MB: 119 103 87 71 55 39 23 7

Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /usr/local/modules/fuse.ko...done.
Loaded symbols for /usr/local/modules/fuse.ko
Reading symbols from /boot/kernel/radeon.ko...Reading symbols from /boot/kernel/radeon.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/radeon.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/drm.ko
Reading symbols from /boot/kernel/smbfs.ko...Reading symbols from /boot/kernel/smbfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/smbfs.ko
Reading symbols from /boot/kernel/libiconv.ko...Reading symbols from /boot/kernel/libiconv.ko.symbols...d
done.
Loaded symbols for /boot/kernel/libiconv.ko
Reading symbols from /boot/kernel/libmchain.ko...Reading symbols from /boot/kernel/libmchain.ko.symbols..
done.
Loaded symbols for /boot/kernel/libmchain.ko
#0  doadump () at pcpu.h:196
196     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:196
#1  0xc07e25c7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc07e2899 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc0ae3efc in trap_fatal (frame=0xe71d37c8, eva=0) at /usr/src/sys/i386/i386/trap.c:939
#4  0xc0ae4180 in trap_pfault (frame=0xe71d37c8, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:852
#5  0xc0ae4b2c in trap (frame=0xe71d37c8) at /usr/src/sys/i386/i386/trap.c:530
#6  0xc0ac923b in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#7  0xc08617e6 in vgonel (vp=0xc52aabdc) at /usr/src/sys/kern/vfs_subr.c:979
#8  0xc086521d in vnlru_free (count=1) at /usr/src/sys/kern/vfs_subr.c:860
#9  0xc0865367 in getnewvnode (tag=0xc0b83ce1 "ufs", mp=0xc449a870, vops=0xc0c6c160, vpp=0xe71d3904) at /usr/src/sys/kern/vfs_subr.c:882
#10 0xc09f86a2 in ffs_vgetf (mp=0xc449a870, ino=641075, flags=2, vpp=0xe71d39b8, ffs_flags=0) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1436
#11 0xc09f8aee in ffs_vget (mp=0xc449a870, ino=641075, flags=2, vpp=0xe71d39b8) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1379
#12 0xc0a0503b in ufs_lookup (ap=0xe71d3a00) at /usr/src/sys/ufs/ufs/ufs_lookup.c:600
#13 0xc0af87f2 in VOP_CACHEDLOOKUP_APV (vop=0xc0c6c160, a=0xe71d3a00) at vnode_if.c:153
#14 0xc0851e4c in vfs_cache_lookup (ap=0xe71d3a84) at vnode_if.h:83
#15 0xc0afa4c6 in VOP_LOOKUP_APV (vop=0xc0c6c680, a=0xe71d3a84) at vnode_if.c:99
#16 0xc08587f1 in lookup (ndp=0xe71d3b48) at vnode_if.h:57
#17 0xc0859539 in namei (ndp=0xe71d3b48) at /usr/src/sys/kern/vfs_lookup.c:215
#18 0xc086702f in kern_lstat (td=0xc4f18460, path=0x282450f8 <Address 0x282450f8 out of bounds>, pathseg=UIO_USERSPACE, sbp=0xe71d3c18) at /usr/src/sys/kern/vfs_syscalls.c:2184
#19 0xc08671ef in lstat (td=0xc4f18460, uap=0xe71d3cfc) at /usr/src/sys/kern/vfs_syscalls.c:2167
#20 0xc0ae44d5 in syscall (frame=0xe71d3d38) at /usr/src/sys/i386/i386/trap.c:1090
#21 0xc0ac92a0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:255
#22 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)

Here is a dmesg (not the one before the crash):

Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.2-RELEASE-p3 #0: Wed Sep  2 09:06:11 CEST 2009
    root at cthulhu.tac.netasq.com:/usr/obj/usr/src/sys/DEBUG-GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3200+ (2000.09-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20ff2  Stepping = 2
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow!+,3DNow!>
  AMD Features2=0x1<LAHF>
real memory  = 1072562176 (1022 MB)
avail memory = 1035886592 (987 MB)
ACPI APIC Table: <K8T890 AWRDACPI>
ioapic0 <Version 0.3> irqs 0-23 on motherboard
ioapic1 <Version 0.3> irqs 24-47 on motherboard
kbd1 at kbdmux0
acpi0: <K8T890 AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3fde0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 3238 host to PCI bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 27 at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib2
vgapci0: <VGA-compatible display> port 0x9000-0x90ff mem 0xc8000000-0xcfffffff,0xd1000000-0xd100ffff irq 24 at device 0.0 on pci2
vgapci1: <VGA-compatible display> mem 0xd1010000-0xd101ffff at device 0.1 on pci2
pcib3: <ACPI PCI-PCI bridge> irq 31 at device 3.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 35 at device 3.1 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> irq 39 at device 3.2 on pci0
pci5: <ACPI PCI bus> on pcib5
mskc0: <Marvell Yukon 88E8053 Gigabit Ethernet> port 0xa000-0xa0ff mem 0xd3000000-0xd3003fff irq 36 at device 0.0 on pci5
msk0: <Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x02> on mskc0
msk0: Ethernet address: 00:15:f2:89:3a:5a
miibus0: <MII bus> on msk0
e1000phy0: <Marvell 88E1111 Gigabit PHY> PHY 0 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
mskc0: [FILTER]
pcib6: <ACPI PCI-PCI bridge> irq 43 at device 3.3 on pci0
pci6: <ACPI PCI bus> on pcib6
pcib7: <PCI-PCI bridge> at device 11.0 on pci0
pci7: <PCI bus> on pcib7
fxp0: <Intel 82558 Pro/100 Ethernet> port 0xb000-0xb01f mem 0xd4200000-0xd4200fff,0xd4000000-0xd40fffff irq 16 at device 4.0 on pci7
miibus1: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:03:47:08:6d:09
fxp0: [ITHREAD]
fxp1: <Intel 82558 Pro/100 Ethernet> port 0xb400-0xb41f mem 0xd4201000-0xd4201fff,0xd4100000-0xd41fffff irq 17 at device 5.0 on pci7
miibus2: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> PHY 1 on miibus2
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:03:47:08:6d:0a
fxp1: [ITHREAD]
atapci0: <VIA 6420 SATA150 controller> port 0xc000-0xc007,0xc400-0xc403,0xc800-0xc807,0xcc00-0xcc03,0xd000-0xd00f,0xd400-0xd4ff irq 20 at device 15.0 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci1
ata1: [ITHREAD]
uhci0: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 21 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 21 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xe800-0xe81f irq 21 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xd4300000-0xd43000ff irq 21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
uhub5: <vendor 0x0424 product 0x2504, class 9/0, rev 2.00/0.01, addr 2> on uhub4
uhub5: multiple transaction translators
uhub5: 4 ports with 4 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
cpu0: <ACPI CPU> on acpi0
powernow0: <Cool`n'Quiet K8> on cpu0
device_attach: powernow0 attach returned 6
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: <Microsoft Microsoft Wheel Mouse Optical\M-., class 0/0, rev 1.10/1.21, addr 2> on uhub0
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 2000092814 Hz quality 800
Timecounters tick every 1.000 msec
ad6: 78167MB <Maxtor 6V080E0 VA111630> at ata3-master SATA150
GEOM_LABEL: Label for provider ad6s1 is ntfs/SYSTEM.
GEOM_LABEL: Label for provider ad6s5 is ntfs/USERS.
GEOM_LABEL: Label for provider ad6s3a is ufsid/498b17d3d30402da.
GEOM_LABEL: Label for provider ad6s3d is ufsid/498b17d4aed77cce.
GEOM_LABEL: Label for provider ad6s3e is ufsid/498b17d337b74b9b.
GEOM_LABEL: Label for provider ad6s3f is ufsid/498b17d3e7acca4e.
GEOM_LABEL: Label for provider ad6s3g is ufsid/498b17d33dac1cba.
Trying to mount root from ufs:/dev/ad6s3a
GEOM_LABEL: Label ufsid/498b17d3d30402da removed.
GEOM_LABEL: Label for provider ad6s3a is ufsid/498b17d3d30402da.
GEOM_LABEL: Label ufsid/498b17d3e7acca4e removed.
GEOM_LABEL: Label for provider ad6s3f is ufsid/498b17d3e7acca4e.
GEOM_LABEL: Label ufsid/498b17d337b74b9b removed.
GEOM_LABEL: Label for provider ad6s3e is ufsid/498b17d337b74b9b.
GEOM_LABEL: Label ufsid/498b17d33dac1cba removed.
GEOM_LABEL: Label for provider ad6s3g is ufsid/498b17d33dac1cba.
GEOM_LABEL: Label ufsid/498b17d4aed77cce removed.
GEOM_LABEL: Label for provider ad6s3d is ufsid/498b17d4aed77cce.
GEOM_LABEL: Label ufsid/498b17d3d30402da removed.
GEOM_LABEL: Label ufsid/498b17d3e7acca4e removed.
GEOM_LABEL: Label ufsid/498b17d337b74b9b removed.
GEOM_LABEL: Label ufsid/498b17d33dac1cba removed.
GEOM_LABEL: Label ufsid/498b17d4aed77cce removed.
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
drm0: <ATI Radeon RV370 X550> on vgapci0
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] Initialized radeon 1.29.0 20080528
info: [drm] Setting GART location based on new memory map
info: [drm] Loading R300 Microcode
info: [drm] Num pipes: 1
info: [drm] writeback test succeeded in 1 usecs
drm0: [ITHREAD]
info: [drm] Num pipes: 1
info: [drm] Loading R300 Microcode
info: [drm] Num pipes: 1
info: [drm] Num pipes: 1
info: [drm] Loading R300 Microcode
info: [drm] Num pipes: 1
info: [drm] Num pipes: 1
info: [drm] Setting GART location based on new memory map
info: [drm] Loading R300 Microcode
info: [drm] Num pipes: 1
info: [drm] writeback test succeeded in 1 usecs
drm0: [ITHREAD]
info: [drm] Num pipes: 1
info: [drm] Loading R300 Microcode
info: [drm] Num pipes: 1
netsmb_dev: loaded

Here is my kernel config, which is just GENERIC with debug enabled:

include         GENERIC
ident           DEBUG-GENERIC

makeoptions DEBUG=-g


>How-To-Repeat:
Keep my station running and wait 2-3 days.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list