Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2003 18:05:06 +0100 (CET)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        current@freebsd.org
Subject:   panic: Most recently used by mount
Message-ID:  <20031109175416.Y58774@korben.in.tern>

next in thread | raw e-mail | index | archive | help
Hi,

I get the following repeatable panic by just doing:

# mount /cdrom

when there's no disk in the drive.  The panic doesn't happen immediately,
the mount call returns and gives the error 'device not configured' (as it
should), but if I wait some time, it panics.

The system is:
FreeBSD 5.1-CURRENT #4: Sat Nov  8 01:15:35 CET 2003

I somehow suspect the GEOMified SCSI CD driver, since I can do the same on
my laptop (which has an IDE DVD-ROM) just fine.

Attached is the backtrace and the dmesg.

---8<---
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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 conditions.
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-undermydesk-freebsd"...
panic: Most recently used by mount

panic messages:
---
panic: Most recently used by mount

Dumping 255 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from /usr/obj/usr/src/sys/LEELOU/modules/usr/src/sys/modules/ipfw/ipfw.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/LEELOU/modules/usr/src/sys/modules/ipfw/ipfw.ko.debug
Reading symbols from /boot/kernel/daemon_saver.ko...done.
Loaded symbols for /boot/kernel/daemon_saver.ko
Reading symbols from /usr/obj/usr/src/sys/LEELOU/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/LEELOU/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240		dumping++;
(kgdb) where
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc04731cd in db_fncall (dummy1=0, dummy2=0, dummy3=0,
    dummy4=0xd3085778 "") at /usr/src/sys/ddb/db_command.c:548
#2  0xc0472f6a in db_command (last_cmdp=0xc07891a0, cmd_table=0x0,
    aux_cmd_tablep=0xc0739b18, aux_cmd_tablep_end=0xc0739b1c)
    at /usr/src/sys/ddb/db_command.c:346
#3  0xc0473078 in db_command_loop () at /usr/src/sys/ddb/db_command.c:472
#4  0xc0475db9 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:73
#5  0xc06be632 in kdb_trap (type=3, code=0, regs=0xd30858b8)
    at /usr/src/sys/i386/i386/db_interface.c:171
#6  0xc06d0f2b in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 1, tf_esi = -1066205972, tf_ebp = -754427644, tf_isp = -754427676, tf_ebx = 0, tf_edx = 0, tf_ecx = 0, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066669875, tf_cs = 8, tf_eflags = 642, tf_esp = -1066196186, tf_ss = -1066285008})
    at /usr/src/sys/i386/i386/trap.c:580
#7  0xc06bff08 in calltrap () at {standard input}:94
#8  0xc057a37c in panic (fmt=0xc072fcec "Most recently used by %s\n")
    at /usr/src/sys/kern/kern_shutdown.c:534
#9  0xc069b377 in mtrash_ctor (mem=0xc2fe1800, size=0, arg=0x0)
    at /usr/src/sys/vm/uma_dbg.c:137
#10 0xc0699ca4 in uma_zalloc_arg (zone=0xc103acc0, udata=0x0, flags=2)
    at /usr/src/sys/vm/uma_core.c:1413
#11 0xc056ef16 in malloc (size=3238243520, type=0xc0769c20, flags=2)
    at /usr/src/sys/vm/uma.h:234
#12 0xc0552881 in elf32_load_file (p=0xc2e9b3c8, file=0x0, addr=0xd3085a9c,
    entry=0x0, pagesize=4096) at /usr/src/sys/kern/imgact_elf.c:519
#13 0xc0553066 in exec_elf32_imgact (imgp=0xd3085b8c)
    at /usr/src/sys/kern/imgact_elf.c:825
#14 0xc05613cc in kern_execve (td=0xc2e9d140, fname=---Can't read userspace from dump, or kernel process---)
    at /usr/src/sys/kern/kern_exec.c:311
#15 0xc0561de0 in execve (td=0x0, uap=0x0) at /usr/src/sys/kern/kern_exec.c:695
#16 0xc06d17f2 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 135278700, tf_esi = 135278752, tf_ebp = -1077941128, tf_isp = -754426508, tf_ebx = 0, tf_edx = -1077940370, tf_ecx = 135278639, tf_eax = 59, tf_trapno = 12, tf_err = 2, tf_eip = 134716943,---Type <return> to continue, or q <return> to quit---
 tf_cs = 31, tf_eflags = 646, tf_esp = -1077941156, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1010
#17 0xc06bff5d in Xint0x80_syscall () at {standard input}:136
---Can't read userspace from dump, or kernel process---
---8<---


---8<---
Copyright (c) 1992-2003 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 5.1-CURRENT #4: Sat Nov  8 01:15:35 CET 2003
    le@leelou:/usr/obj/usr/src/sys/LEELOU
Preloaded elf kernel "/boot/kernel/kernel" at 0xc089f000.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Duron(tm) Processor (700.03-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x631  Stepping = 1
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!>
real memory  = 268369920 (255 MB)
avail memory = 251052032 (239 MB)
Pentium Pro MTRR support enabled
acpi0: <VT8371 AWRDACPI> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00fddd0
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 7 INTD is routed to irq 10
pcib0: slot 7 INTD is routed to irq 10
pcib0: slot 8 INTA is routed to irq 10
pcib0: slot 9 INTA is routed to irq 9
pcib0: slot 13 INTA is routed to irq 11
pcib0: slot 15 INTA is routed to irq 11
agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xd0000000-0xd3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686A UDMA66 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 10 at device 7.2 on pci0
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
uhub0: 2 ports with 2 removable, self powered
uhub0: port error, restarting port 1
uhub0: port error, giving up port 1
uhub0: port error, restarting port 2
uhub0: port error, giving up port 2
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 10 at device 7.3 on pci0
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
uhub1: 2 ports with 2 removable, self powered
uhub1: port error, restarting port 1
uhub1: port error, giving up port 1
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
rl0: <RealTek 8139 10/100BaseTX> port 0xdc00-0xdcff mem 0xdb000000-0xdb0000ff irq 10 at device 8.0 on pci0
rl0: Ethernet address: 00:30:4f:14:d1:cd
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vx0: <3COM 3C595 Etherlink III PCI> port 0xe000-0xe01f irq 9 at device 9.0 on pci0
utp/tx[*utp*] address 00:a0:24:9d:20:b7
pcm0: <AudioPCI ES1370> port 0xe400-0xe43f irq 11 at device 13.0 on pci0
ahc0: <Adaptec 2940A Ultra SCSI adapter> port 0xe800-0xe8ff mem 0xdb001000-0xdb001fff irq 11 at device 15.0 on pci0
aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) 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
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
orm0: <Option ROMs> at iomem 0xc8000-0xc87ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 700030773 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
GEOM: create disk ad0 dp=0xc2d95a70
ad0: 76319MB <ST380021A> [155061/16/63] at ata0-master UDMA66
GEOM: create disk ad2 dp=0xc2d95870
ad2: 76319MB <ST380021A> [155061/16/63] at ata1-master UDMA66
Waiting 15 seconds for SCSI devices to settle
GEOM: create disk cd0 dp=0xc2d48600
GEOM: create disk cd1 dp=0xc2d06e00
cd0 at ahc0 bus 0 target 4 lun 0
cd0: <PLEXTOR CD-R   PX-R412C 1.07> Removable CD-ROM SCSI-2 device
cd0: 10.000MB/s transfers (10.000MHz, offset 8)
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd1 at ahc0 bus 0 target 5 lun 0
cd1: <PLEXTOR CD-ROM PX-40TS 1.04> Removable CD-ROM SCSI-2 device
cd1: 20.000MB/s transfers (20.000MHz, offset 15)
cd1: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Mounting root from ufs:/dev/ad2s1a
WARNING: / was not properly dismounted
WARNING: /home was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
WARNING: /hugo was not properly dismounted
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to deny, logging disabled
Accounting enabled
lock order reversal
 1st 0xc312665c vm object (vm object) @ /usr/src/sys/vm/swap_pager.c:1323
 2nd 0xc07d2ec0 swap_pager swhash (swap_pager swhash) @ /usr/src/sys/vm/swap_pager.c:1838
 3rd 0xc103340c vm object (vm object) @ /usr/src/sys/vm/uma_core.c:876
Stack backtrace:
---8<---

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX Systemadministrator               Tel.:  (+43 1) 4277-14073
Vienna University Computer Center      Fax.:  (+43 1) 4277-9140
University of Vienna                   http://mailbox.univie.ac.at/~le/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031109175416.Y58774>