FreeBSD 7.0 BETA 2 crashes when starts up with USB disk plugged in

Chris Chou m2chrischou at
Sun Nov 11 07:54:19 PST 2007

Dear all,

I encountered another crash when using FreeBSD 7.0 BETA 2.

The following is the kgdb output:

kgdb: kvm_nlist(_stopped_cpus):
kgdb: kvm_nlist(_stoppcbs):
[GDB will not be able to debug user-mode threads: /usr/lib/
Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
Copyright (c) 1992-2007 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.0-BETA2 #6: Mon Nov  5 23:28:18 CST 2007
    chris at mercury:/usr/obj/usr/src/sys/MERCURY
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Hammer Family processor - Model Unknown (1750.01-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20fc2  Stepping = 2

  AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow!+,3DNow!>
  AMD Features2=0x1<LAHF>
real memory  = 1073676288 (1023 MB)
avail memory = 1037295616 (989 MB)
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <Nvidia AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3fef0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0xcf0-0xcf3 on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xe5001000-0xe5001fff irq 21 at
device 2.0 on pci0
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 4 ports with 4 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xe5002000-0xe5002fff irq 22 at
device 2.1 on pci0
ohci1: [ITHREAD]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 4 ports with 4 removable, self powered
ehci0: <NVIDIA nForce3 250 USB 2.0 controller> mem 0xe5003000-0xe50030ff irq
23 at device 2.2 on pci0
ehci0: [ITHREAD]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2: <NVIDIA nForce3 250 USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2
uhub2: 8 ports with 8 removable, self powered
uhub2: port 5 reset failed
atapci0: <nVidia nForce3 Pro UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 8.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <nVidia nForce3 Pro SATA150 controller> port
irq 21 at device 10.0 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci1: <ACPI PCI bus> on pcib1
nvidia0: <GeForce4 MX 4000> mem 0xe0000000-0xe0ffffff,0xd8000000-0xdfffffff
irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
nvidia0: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci2: <ACPI PCI bus> on pcib2
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x9000-0x901f mem
0xe4000000-0xe4000fff,0xe3000000-0xe30fffff irq 17 at device 7.0 on pci2
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:00:4c:93:56:88
fxp0: [ITHREAD]
pcm0: <CMedia CMI8738> port 0x9400-0x94ff irq 19 at device 9.0 on pci2
pcm0: [ITHREAD]
rl0: <RealTek 8139 10/100BaseTX> port 0x9800-0x98ff mem
0xe3100000-0xe31000ff irq 16 at device 13.0 on pci2
miibus1: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:13:d3:3b:f1:02
rl0: [ITHREAD]
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
sio0: type 16550A
sio0: [FILTER]
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77b irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [ITHREAD]
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]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xcf7ff,0xd0000-0xd3fff,0xd4000-0xd4fff pnpid ORM0000 on isa0
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
Timecounter "TSC" frequency 1750010255 Hz quality 800
Timecounters tick every 1.000 msec
IP Filter: v4.1.28 initialized.  Default = block all, Logging = enabled
acd0: DVDR <PIONEER DVD-RW DVR-109/1.50> at ata1-master UDMA66
acd1: DMA limited to UDMA33, device found non-ATA66 cable
acd1: DVDROM <PIONEER DVD-ROM DVD-123P/1.03> at ata1-slave UDMA33
ad4: 156334MB <Maxtor 6B160M0 BANC1G10> at ata2-master SATA150
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x48 0x00
acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x48 0x00
acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
cd0 at ata1 bus 0 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-109 1.50> Removable CD-ROM SCSI-0 device
cd0: 66.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd1 at ata1 bus 0 target 1 lun 0
cd1: <PIONEER DVD-ROM DVD-123P 1.03> Removable CD-ROM SCSI-0 device
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad4s1a
<118>Loading configuration files.
<118>kernel dumps on /dev/ad4s1b
<118>Entropy harvesting:
<118> interrupts
<118> ethernet
<118> point_to_point
<118> kickstart
<118>swapon: adding /dev/ad4s1b as swap device
<118>Starting file system checks:
<118>/dev/ad4s1a: clean, 134060 free (1308 frags, 16594 blocks,
<118>/dev/ad4s2d: clean, 30942034 free (76122 frags, 3858239 blocks,
<118>/dev/ad4s1e: clean, 161455 free (1535 frags, 19990 blocks,
<118>/dev/ad4s1f: clean, 2488118 free (216614 frags, 283938 blocks,
<118>/dev/ad4s1d: clean, 116918 free (30526 frags, 10799 blocks,
<118>Setting hostuuid: d51b734d-7b82-11dc-8224-00004c935688.
<118>Setting hostid: 0xdb2f6497.
<118>Mounting local file systems:
<118>/storage/soft: No such file or directory
<118>Setting hostname: mercury.
<118>Enabling ipfilter.
<118>Installing NAT rules.
<118>0 entries flushed from NAT table
<118>0 entries flushed from NAT list
umass0: <Kingston DataTraveler 2.0, class 0/0, rev 2.00/1.10, addr 2> on
<118> ->
<118> ->
<118> ->
<118> ->
<118> ->
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Kingston DataTraveler 2.0 PMAP> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1968MB (4030464 512 byte sectors: 255H 63S/T 250C)
umass0: at uhub2 port 5 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device

Fatal trap 12: page fault while in kernel mode
fault virtual address    = 0x0
fault code        = supervisor write, page not present
instruction pointer    = 0x20:0xc045915b
stack pointer            = 0x28:0xe2974adc
frame pointer            = 0x28:0xe2974af8
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        = 2 (g_event)
trap number        = 12
panic: page fault
Uptime: 6s
Physical memory: 1011 MB
Dumping 49 MB: 34 18 2

#0  doadump () at pcpu.h:195
195        __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc0611ce4 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0611ee4 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc087307c in trap_fatal (frame=0xe2974a9c, eva=0)
    at /usr/src/sys/i386/i386/trap.c:872
#4  0xc08732e0 in trap_pfault (frame=0xe2974a9c, usermode=0, eva=0)
    at /usr/src/sys/i386/i386/trap.c:785
#5  0xc0873c42 in trap (frame=0xe2974a9c) at
#6  0xc085d84b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc045915b in xpt_done (done_ccb=0xc40d9800)
    at /usr/src/sys/cam/cam_xpt.c:4856
#8  0xc0459278 in dead_sim_action (sim=0xc08e7500, ccb=0xc40d9800)
    at /usr/src/sys/cam/cam_xpt.c:7264
#9  0xc045a47e in xpt_action (start_ccb=0xc40d9800)
    at /usr/src/sys/cam/cam_xpt.c:3057
#10 0xc0455c08 in cam_periph_runccb (ccb=0xc40d9800, error_routine=0,
    camflags=CAM_RETRY_SELTO, sense_flags=1, ds=0xc4272000)
    at /usr/src/sys/cam/cam_periph.c:878
#11 0xc046b48b in daprevent (periph=Variable "periph" is not available.
) at /usr/src/sys/cam/scsi/scsi_da.c:1822
#12 0xc046c348 in daclose (dp=0xc436f200)
    at /usr/src/sys/cam/scsi/scsi_da.c:751
#13 0xc05c25ef in g_disk_access (pp=0xc4366a80, r=0, w=0, e=Variable "e" is
not available.
    at /usr/src/sys/geom/geom_disk.c:152
---Type <return> to continue, or q <return> to quit---
#14 0xc05c730c in g_access (cp=0xc4268b80, dcr=-1, dcw=0, dce=0)
    at /usr/src/sys/geom/geom_subr.c:748
#15 0xc05cbd10 in g_part_taste (mp=0xc0908520, pp=0xc4366a80, flags=0)
    at /usr/src/sys/geom/part/g_part.c:1355
#16 0xc05c6f31 in g_new_provider_event (arg=0xc4366a80, flag=0)
    at /usr/src/sys/geom/geom_subr.c:477
#17 0xc05c3973 in g_run_events () at /usr/src/sys/geom/geom_event.c:211
#18 0xc05c4d56 in g_event_procbody () at /usr/src/sys/geom/geom_kern.c:141
#19 0xc05f3334 in fork_exit (callout=0xc05c4cf0 <g_event_procbody>, arg=0x0,

    frame=0xe2974d38) at /usr/src/sys/kern/kern_fork.c:796
#20 0xc085d8c0 in fork_trampoline () at

The crash happens when I reboot the system with a USB disk plugged in, my
USB disk is KINGSTON DataTraverler 2GB.

Any one could help with this?

Best regards,


More information about the freebsd-current mailing list