hello guys,
don't know if this is a real bug, a misconfiguration of my /etc/fstab, or
already solved in -current.
when i have my /win (windows 7) ntfs mount and run daily(8), the kernel panics.
if i unmount /win, daily(8) exits normally.
i didn't set up my mail(1)/smtpd(8) properly, so sendbug(1) didn't work, yet.
but i
made a copy of it at the bottom of this mail.
it took me a while to figure out, why X just freezes every day at 0:30 am,
and my first try was to apply the bgpd patch. I even succeeded in recompiling
the kernel thanks to your great documentation and noticed afterwards, that
i didn't have to and bgpd has nothing to do with it :)
in the console i finally saw the panic and the ntfs line. so the problem was
obvious. but to get out of the debugger was again a little struggle to a
simple man like me. perhaps a line to the crash(8) manpage and the command
`boot dump` would be nice.
the problem is solved for me, but i want to let you know. hope you guys can
do something with the infos i provide.
thanks for your great work,
sebastian.
>Synopsis: i got a kernel panic each time i run /etc/daily and have my ntfs
>parition mounted.
>Category: kernel
>Environment:
System : OpenBSD 5.2
Details : OpenBSD 5.2 (GENERIC.MP) #0: Wed Dec 19 15:55:31 CET 2012
[email protected]_W_504V_Typ_A:/home/phancy/src/sys/arch/i386/compile/GENERIC.MP
Architecture: OpenBSD.i386
Machine : i386
>Description:
kernel panics when i run the /etc/daily script and my windows partition is
mounted.
i have following /etc/fstab line:
3d7d414f73ffa075.j /win ntfs ro,nodev,nosuid 0 0
when i unmount /win and run then the daily script it exits normal.
i rebuilt the kernel with the bgpd patch to narrow down the problem why my
X just freezed everyday at 0:30 am.
so don't be confused with the built time, i didn't change any kernel
parameters but followed -stable as described
in the faqs. the problem was before and after the new kernel.
>How-To-Repeat:
mount_ntfs /dev/sd0j /win
ksh /etc/daily
>Fix:
umount /win
ksh /etc/daily
and don't have /win mount at 0:30 am.
ometric Coprocessor" rev 1.01/0.02 addr 2
ugen1 at uhub3 port 2 "Lenovo Computer Corp ThinkPad Bluetooth with Enhanced
Data Rate II" rev 2.00/3.99 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (3d7d414f73ffa075.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
panic: malloc: out of space in kmem_map
Stopped at Debugger+0x4: popl %ebp
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' ON OTHER PROCESSORS, TOO.
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb{0}> Debugger(d08e8d26,f5e3bbb8,d08c4bf0,f5e3bbb8,d73aac80) at Debugger+0x4
panic(d08c4bf0,0,1000,0,0) at panic+0x5d
malloc(1000,7f,1,d08cb172,0) at malloc+0x5d7
ntfs_ntlookupfile(d46a3000,f6399400,f5e3bed0,f5e3bebc,d9cc6e8c) at
ntfs_ntlookupfile+0x100
ntfs_vgetex(f5e3bd40,d9cc6e8c,d9cc6e8c,f6399400,f5e3bebc) at ntfs_vgetex+0x10a5
VOP_LOOKUP(f6399400,f5e3bebc,f5e3bed0,f5e3bebc,20) at VOP_LOOKUP+0x2f
vfs_lookup(f5e3bea8,d9f14c00,400,f5e3bec4,f62a2708) at vfs_lookup+0x27b
namei(f5e3bea8,1,d9f77a50,d9cc6e8c,318) at namei+0x221
dofstatat(d9cc6e8c,ffffff9c,7fc78e00,25a3b920,2) at dofstatat+0x5d
sys_lstat(d9cc6e8c,f5e3bf64,f5e3bf84,d03eb0d3,d09cfcfc) at sys_lstat+0x38
syscall() at syscall+0x12c
--- syscall (number 0) ---
0x2:
ddb{0}> PID PPID PGRP UID S FLAGS WAIT COMMAND
* 6983 15569 15569 0 7 0 perl
15569 19636 15569 0 3 0x88 pause ksh
19636 29665 19636 0 3 0x88 pause ksh
15932 1 15932 1000 3 0x80 select ssh-agent
18095 9297 9297 67 3 0x80 netcon httpd
17839 9297 9297 67 3 0x80 netcon httpd
20327 9297 9297 67 3 0x80 netcon httpd
31794 9297 9297 67 3 0x80 netcon httpd
26614 9297 9297 67 3 0x80 netcon httpd
15673 1 15673 0 3 0x80 ttyin getty
13886 1 13886 0 3 0x80 ttyin getty
18645 1 18645 0 3 0x80 ttyin getty
28430 1 28430 0 3 0x80 ttyin getty
29665 1 29665 1000 3 0x88 pause ksh
24255 1 24255 0 3 0x80 select cron
23303 1 23303 0 3 0x80 kqread apmd
13012 1 13012 99 3 0x80 poll sndiod
15767 1 15767 0 3 0x80 select inetd
9297 1 9297 67 3 0x80 select httpd
21522 18185 18185 95 3 0x80 kqread smtpd
11203 18185 18185 95 3 0x80 kqread smtpd
25186 18185 18185 95 3 0x80 kqread smtpd
9255 18185 18185 95 3 0x80 kqread smtpd
14901 18185 18185 95 3 0x80 kqread smtpd
29123 18185 18185 95 3 0x80 kqread smtpd
13320 18185 18185 95 3 0x80 kqread smtpd
21473 18185 18185 95 3 0x80 kqread smtpd
18185 1 18185 0 3 0x80 kqread smtpd
31968 1 31968 0 3 0x80 select sshd
25053 0 0 0 3 0x100280 nfsidl nfsio
14857 0 0 0 3 0x100280 nfsidl nfsio
21034 0 0 0 3 0x100280 nfsidl nfsio
16505 0 0 0 3 0x100280 nfsidl nfsio
1676 19737 19737 0 3 0x80 nfsd nfsd
22090 19737 19737 0 3 0x80 nfsd nfsd
30397 19737 19737 0 3 0x80 nfsd nfsd
28819 19737 19737 0 3 0x80 nfsd nfsd
19737 1 19737 0 3 0x80 netcon nfsd
15746 1 15746 0 3 0x80 select mountd
25432 1 25432 28 3 0x80 poll portmap
6455 29650 29650 74 3 0x80 bpf pflogd
29650 1 29650 0 3 0x80 netio pflogd
28850 3039 3039 73 3 0x80 poll syslogd
3039 1 3039 0 3 0x80 netio syslogd
24033 1 24033 77 3 0x80 poll dhclient
15309 1 18785 0 3 0x80 poll dhclient
11526 1 11526 77 3 0x80 poll dhclient
15473 1 18785 0 3 0x80 poll dhclient
16 0 0 0 3 0x100200 aiodoned aiodoned
15 0 0 0 3 0x100200 syncer update
14 0 0 0 3 0x100200 cleaner cleaner
13 0 0 0 3 0x100200 reaper reaper
12 0 0 0 3 0x100200 pgdaemon pagedaemon
11 0 0 0 3 0x100200 bored crypto
10 0 0 0 3 0x100200 pftm pfpurge
9 0 0 0 3 0x100200 usbtsk usbtask
8 0 0 0 3 0x100200 usbatsk usbatsk
7 0 0 0 3 0x100200 bored intelrel
6 0 0 0 3 0x100200 acpi0 acpi0
5 0 0 0 7 0x40100200 idle1
4 0 0 0 3 0x100200 bored syswq
3 0 0 0 3 0x40100200 idle0
2 0 0 0 3 0x100200 kmalloc kmthread
1 0 1 0 3 0x80 wait init
0 -1 0 0 3 0x200 scheduler swapper
ddb{0}> iwn0: fatal firmware error
firmware error log:
error type = "NMI_INTERRUPT_WDG" (0x00000004)
program counter = 0x000006E4
source line = 0x0000884A
error data = 0x0000000203630000
branch link = 0x000005AA000006E8
interrupt link = 0x000008B2000054DC
time = 3375441592
driver status:
tx ring 0: qid=0 cur=17 queued=0
tx ring 1: qid=1 cur=0 queued=0
tx ring 2: qid=2 cur=0 queued=0
tx ring 3: qid=3 cur=0 queued=0
tx ring 4: qid=4 cur=204 queued=0
tx ring 5: qid=5 cur=0 queued=0
tx ring 6: qid=6 cur=0 queued=0
tx ring 7: qid=7 cur=0 queued=0
tx ring 8: qid=8 cur=0 queued=0
tx ring 9: qid=9 cur=0 queued=0
tx ring 10: qid=10 cur=0 queued=0
tx ring 11: qid=11 cur=0 queued=0
tx ring 12: qid=12 cur=0 queued=0
tx ring 13: qid=13 cur=0 queued=0
tx ring 14: qid=14 cur=0 queued=0
tx ring 15: qid=15 cur=0 queued=0
tx ring 16: qid=16 cur=0 queued=0
tx ring 17: qid=17 cur=0 queued=0
tx ring 18: qid=18 cur=0 queued=0
tx ring 19: qid=19 cur=0 queued=0
rx ring: cur=23
802.11 state 4
syncing disks... 4 done
WARNING: not updating battery clock
OpenBSD 5.2 (GENERIC.MP) #0: Wed Dec 19 15:55:31 CET 2012
[email protected]_W_504V_Typ_A:/home/phancy/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU P9600 @ 2.53GHz ("GenuineIntel" 686-class)
2.53 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,NXE,LONG,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,LAHF
real mem = 3178491904 (3031MB)
avail mem = 3115696128 (2971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/19/11, BIOS32 rev. 0 @ 0xfdca0, SMBIOS
rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version "6HET36WW (1.21 )" date 12/19/2011
bios0: LENOVO 281524U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4)
EXP3(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P9600 @ 2.53GHz ("GenuineIntel" 686-class)
2.53 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,NXE,LONG,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,LAHF
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 14 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4690" serial 8274 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
bios0: ROM list: 0xc0000/0x10000! 0xd0000/0x1000 0xd1000/0x1000 0xd2000/0x1000
0xde000/0x1800! 0xe0000/0x10000
cpu0: Enhanced SpeedStep 2528 MHz: speeds: 2534, 2533, 1600, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
puc0 at pci0 dev 3 function 3 "Intel GM45 KT" rev 0x07: ports: 1 com
com3 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com3: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: msi, address
00:22:68:10:7b:52
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: msi
azalia0: codecs: Conexant/0x5069
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 int 20
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 int 21
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: msi, MIMO 3T3R,
MoW, address 00:21:6a:54:be:6c
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 int 23
pci3 at ppb2 bus 5
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 16
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 17
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93
pci4 at ppb3 bus 14
pcib0 at pci0 dev 31 function 0 "Intel 82801IEM LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: msi, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, SAMSUNG MMCRE28G, VBM1> SCSI3 0/direct
fixed t10.ATA_SAMSUNG_MMCRE28G8MXP-0VBL1_YC4140S926SY926A9188
sd0: 122104MB, 512 bytes/sector, 250069680 sectors
cd0 at scsibus0 targ 1 lun 0: <MATSHITA, DVD-RAM UJ862AC, SB01> ATAPI 5/cdrom
removable
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic 1 int 23
iic0 at ichiic0
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
acpithinkpad0: unknown event 0x6000
umass0 at uhub0 port 2 configuration 1 interface 0 "Generic USB Storage" rev
2.00/98.33 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <Generic, STORAGE DEVICE, 9833> SCSI0 0/direct
removable serial.05e30722000000009833
uvideo0 at uhub0 port 6 configuration 1 interface 0 "Chicony Electronics Co.,
Ltd. Integrated Camera" rev 2.00/23.38 addr 3
video0 at uvideo0
ugen0 at uhub3 port 1 "UPEK Biometric Coprocessor" rev 1.01/0.02 addr 2
ugen1 at uhub3 port 2 "Lenovo Computer Corp ThinkPad Bluetooth with Enhanced
Data Rate II" rev 2.00/3.99 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (3d7d414f73ffa075.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
--
Sebastian Neuper <[email protected]>