Kernel panic on current during pkg_add -vi gnome and cvs up (related to softdep)

2012-10-23 Thread Tomas Bodzar
Hi all,

amd64 current installed today on Dell Optiplex 760 desktop with latest
BIOS. Nothing installed, just plain full install with one user, ssh
and ntpd enabled, softdep enabled on all partitions. Was working
connected via SSH to machine, tmux started with three consoles, one
doing 'sudo pkg_add -vi gnome', second one 'cvs -d $CVSROOT up -Pd
ports src xenocara' as regular user in wsrc group, third one just ksh.
Machine panic and here is manual rewrite from monitor:

login: panic: softdep_deallocate_dependencies: dangling deps
Stopped at Debugger+0x5: leave
ddb{0}

Can't provide more, because keyboard went down as well and re-plug
doesn't help (no serial console here) fsck was not able to repair
filesystems after restart (failed on /usr/local which is on
/dev/rsd0h, manual repair and remount was possible). Have some issues
now with packages, trying to repair them/db with pkg_check, pkg_add

OpenBSD 5.2-current (GENERIC.MP) #80: Mon Oct 22 17:55:50 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 11memory_size
real mem = 4121948160 (3930MB)
avail mem = 3989741568 (3804MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
bios0: vendor Dell Inc. version A13 date 08/04/2011
bios0: Dell Inc. OptiPlex 760
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET SLIC SSDT SSDT SSDT
acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI3(S5) PCI1(S5)
PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
USB4(S3) USB5(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 2926.43 MHz
cpu0: 
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 2926.00 MHz
cpu1: 
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 4 (PCI4)
acpiprt1 at acpi0: bus 2 (PCI2)
acpiprt2 at acpi0: bus 3 (PCI3)
acpiprt3 at acpi0: bus 1 (PCI1)
acpiprt4 at acpi0: bus -1 (PCI5)
acpiprt5 at acpi0: bus -1 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: VBTN
cpu0: Enhanced SpeedStep 2926 MHz: speeds: 2933, 2667, 2400, 2133,
1867, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Q45 Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel Q45 PCIE rev 0x03: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 Intel Q45 Video rev 0x03
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 0xe000, size 0x1000
inteldrm0 at vga1: apic 8 int 16
drm0 at inteldrm0
Intel Q45 Video rev 0x03 at pci0 dev 2 function 1 not configured
Intel Q45 HECI rev 0x03 at pci0 dev 3 function 0 not configured
pciide0 at pci0 dev 3 function 2 Intel Q45 PT IDER rev 0x03: DMA
(unsupported), channel 0 wired to native-PCI, channel 1 wired to
native-PCI
pciide0: using apic 8 int 18 for native-PCI interrupt
pciide0: channel 0 ignored (not responding; disabled or no drives?)
pciide0: channel 1 ignored (not responding; disabled or no drives?)
Intel Q45 KT rev 0x03 at pci0 dev 3 function 3 not configured
em0 at pci0 dev 25 function 0 Intel ICH10 D BM LM rev 0x02: msi, address MAC
uhci0 at pci0 dev 26 function 0 Intel 82801JD USB rev 0x02: apic 8 int 16
uhci1 at pci0 dev 26 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
uhci2 at pci0 dev 26 function 2 Intel 82801JD USB rev 0x02: apic 8 int 22
ehci0 at pci0 dev 26 function 7 Intel 82801JD USB rev 0x02: apic 8 int 22
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 82801JD HD Audio rev 0x02: msi
azalia0: codecs: Analog Devices AD1984A
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801JD PCIE rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801JD PCIE rev 0x02: msi
pci3 at ppb2 bus 3
uhci3 at pci0 dev 29 function 0 Intel 82801JD USB rev 0x02: apic 8 int 23
uhci4 at pci0 dev 29 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
uhci5 at pci0 dev 29 function 2 Intel 82801JD USB rev 0x02: apic 8 int 18
ehci1 at pci0 dev 29 function 7 Intel 

Re: Kernel panic on current during pkg_add -vi gnome and cvs up (related to softdep)

2012-10-23 Thread Otto Moerbeek
There's some buffer cache stuff in snaps. This particular bug was
already seen and fixed. Try a newer snap, should be better

-Otto

On Tue, Oct 23, 2012 at 12:28:48PM +0200, Tomas Bodzar wrote:

 Hi all,
 
 amd64 current installed today on Dell Optiplex 760 desktop with latest
 BIOS. Nothing installed, just plain full install with one user, ssh
 and ntpd enabled, softdep enabled on all partitions. Was working
 connected via SSH to machine, tmux started with three consoles, one
 doing 'sudo pkg_add -vi gnome', second one 'cvs -d $CVSROOT up -Pd
 ports src xenocara' as regular user in wsrc group, third one just ksh.
 Machine panic and here is manual rewrite from monitor:
 
 login: panic: softdep_deallocate_dependencies: dangling deps
 Stopped at Debugger+0x5: leave
 ddb{0}
 
 Can't provide more, because keyboard went down as well and re-plug
 doesn't help (no serial console here) fsck was not able to repair
 filesystems after restart (failed on /usr/local which is on
 /dev/rsd0h, manual repair and remount was possible). Have some issues
 now with packages, trying to repair them/db with pkg_check, pkg_add
 
 OpenBSD 5.2-current (GENERIC.MP) #80: Mon Oct 22 17:55:50 MDT 2012
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 RTC BIOS diagnostic error 11memory_size
 real mem = 4121948160 (3930MB)
 avail mem = 3989741568 (3804MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
 bios0: vendor Dell Inc. version A13 date 08/04/2011
 bios0: Dell Inc. OptiPlex 760
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S1 S3 S4 S5
 acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET SLIC SSDT SSDT SSDT
 acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI3(S5) PCI1(S5)
 PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
 USB4(S3) USB5(S3)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 2926.43 MHz
 cpu0: 
 FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF
 cpu0: 3MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 265MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 2926.00 MHz
 cpu1: 
 FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF
 cpu1: 3MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 8
 acpimcfg0 at acpi0 addr 0xf800, bus 0-63
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 4 (PCI4)
 acpiprt1 at acpi0: bus 2 (PCI2)
 acpiprt2 at acpi0: bus 3 (PCI3)
 acpiprt3 at acpi0: bus 1 (PCI1)
 acpiprt4 at acpi0: bus -1 (PCI5)
 acpiprt5 at acpi0: bus -1 (PCI6)
 acpiprt6 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpibtn0 at acpi0: VBTN
 cpu0: Enhanced SpeedStep 2926 MHz: speeds: 2933, 2667, 2400, 2133,
 1867, 1600 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel Q45 Host rev 0x03
 ppb0 at pci0 dev 1 function 0 Intel Q45 PCIE rev 0x03: msi
 pci1 at ppb0 bus 1
 vga1 at pci0 dev 2 function 0 Intel Q45 Video rev 0x03
 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 0xe000, size 0x1000
 inteldrm0 at vga1: apic 8 int 16
 drm0 at inteldrm0
 Intel Q45 Video rev 0x03 at pci0 dev 2 function 1 not configured
 Intel Q45 HECI rev 0x03 at pci0 dev 3 function 0 not configured
 pciide0 at pci0 dev 3 function 2 Intel Q45 PT IDER rev 0x03: DMA
 (unsupported), channel 0 wired to native-PCI, channel 1 wired to
 native-PCI
 pciide0: using apic 8 int 18 for native-PCI interrupt
 pciide0: channel 0 ignored (not responding; disabled or no drives?)
 pciide0: channel 1 ignored (not responding; disabled or no drives?)
 Intel Q45 KT rev 0x03 at pci0 dev 3 function 3 not configured
 em0 at pci0 dev 25 function 0 Intel ICH10 D BM LM rev 0x02: msi, address MAC
 uhci0 at pci0 dev 26 function 0 Intel 82801JD USB rev 0x02: apic 8 int 16
 uhci1 at pci0 dev 26 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
 uhci2 at pci0 dev 26 function 2 Intel 82801JD USB rev 0x02: apic 8 int 22
 ehci0 at pci0 dev 26 function 7 Intel 82801JD USB rev 0x02: apic 8 int 22
 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 82801JD HD Audio rev 0x02: msi
 azalia0: codecs: Analog Devices AD1984A
 audio0 at azalia0
 ppb1 at pci0 dev 28 function 0 Intel 82801JD PCIE rev 0x02: msi
 pci2 at ppb1 bus 2
 ppb2 at pci0 dev 28 function 1 Intel 

Kernel panic on -current

2012-07-07 Thread Hugo Osvaldo Barrera
Hi,

I appolagize for the not-so-descriptive subject, I've really no idea
that the exact issue was.

I upgraded to -current this afternoon, and a while ago my server stopped
responding remotely.  I had a look at it, and I the kernel has printed
the following:

First bad
/: bad dir ino 11 at offset 0: mangled entry
panic: bad dir
Stopped at  Debugger+0x5:   leave   
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!

Here goes my dmesg, which I noticed had logged the output of trace and
ps as well.
As I said, I've no idea what caused this crash, so I hope that this
information helps in some way.  Otherwise, what else should I attach
next time?

Oh, I should mention that I disable mpbios, since it seems to have
issues on this particular server.


OpenBSD 5.2-beta (GENERIC) #281: Sun Jul  1 23:12:44 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 535756800 (510MB)
avail mem = 499220480 (476MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfbd3f (10 entries)
bios0: vendor QEMU version QEMU date 01/01/2007
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
mpbios at bios0 not configured
vmt0 at mainbus0
vmware: open failed, eax=564d5868, ecx=001e, edx=5658
vmt0: failed to open backdoor RPC channel (TCLO protocol)
cpu0 at mainbus0: (uniprocessor)
cpu0: QEMU Virtual CPU version 0.9.1, 2602.32 MHz
cpu0: 
FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,LONG
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 82441FX rev 0x02
pcib0 at pci0 dev 1 function 0 Intel 82371SB ISA rev 0x00
pciide0 at pci0 dev 1 function 1 Intel 82371SB IDE rev 0x00: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: QEMU HARDDISK
wd0: 16-sector PIO, LBA48, 10240MB, 20971520 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: QEMU, QEMU DVD-ROM, 0.9. ATAPI 5/cdrom removable
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
cd0(pciide0:0:1): using PIO mode 0
atapiscsi1 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: QEMU, QEMU DVD-ROM, 0.9. ATAPI 5/cdrom removable
cd1(pciide0:1:0): using PIO mode 0
uhci0 at pci0 dev 1 function 2 Intel 82371SB USB rev 0x01: irq 11
piixpm0 at pci0 dev 1 function 3 Intel 82371AB Power rev 0x03: irq 10
iic0 at piixpm0
iic0: addr 0x4c 48=00 words 00= 01= 02= 03= 04= 05= 
06= 07=
iic0: addr 0x4e 48=00 words 00= 01= 02= 03= 04= 05= 
06= 07=
vga1 at pci0 dev 2 function 0 Cirrus Logic CL-GD5446 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 Intel PRO/1000MT (82540EM) rev 0x03: irq 11, 
address 52:54:00:27:24:25
Qumranet Virtio Memory rev 0x00 at pci0 dev 4 function 0 not configured
Qumranet Virtio Console rev 0x00 at pci0 dev 5 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 0 bytes
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
nvram: invalid checksum
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout
First bad
/: bad dir ino 11 at offset 0: mangled entry
panic: bad dir
Stopped at  Debugger+0x5:   leave   
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb Debugger() at Debugger+0x5
panic() at panic+0xe4
ufs_makedirentry() at ufs_makedirentry
ufs_lookup() at ufs_lookup+0x6cd
VOP_LOOKUP() at VOP_LOOKUP+0x2c
vfs_lookup() at vfs_lookup+0x271
namei() at namei+0x21c
dofstatat() at dofstatat+0x73
syscall() at syscall+0x165
--- syscall (number 293) ---
end of kernel
end trace frame: 0x20c5e8e78, count: -9