From owner-freebsd-current@FreeBSD.ORG Sun Nov 9 09:05:27 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9971616A4CE for ; Sun, 9 Nov 2003 09:05:27 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5043B43FBF for ; Sun, 9 Nov 2003 09:05:26 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.10/8.12.10) with ESMTP id hA9H5FqT118454 for ; Sun, 9 Nov 2003 18:05:17 +0100 Date: Sun, 9 Nov 2003 18:05:06 +0100 (CET) From: Lukas Ertl To: current@freebsd.org Message-ID: <20031109175416.Y58774@korben.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4246; Body=0 Fuz1=0 Fuz2=0 Subject: panic: Most recently used by mount X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 17:05:27 -0000 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 to continue, or q 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 AMD Features=0xc0440000 real memory = 268369920 (255 MB) avail memory = 251052032 (239 MB) Pentium Pro MTRR support enabled acpi0: 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: on acpi0 acpi_button0: on acpi0 pcib0: port 0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0 pci0: 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: mem 0xd0000000-0xd3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib0: slot 1 INTA is routed to irq 11 pcib1: slot 0 INTA is routed to irq 11 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: 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: port 0xd400-0xd41f irq 10 at device 7.2 on pci0 usb0: 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: port 0xd800-0xd81f irq 10 at device 7.3 on pci0 usb1: 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: port 0xdc00-0xdcff mem 0xdb000000-0xdb0000ff irq 10 at device 8.0 on pci0 rl0: Ethernet address: 00:30:4f:14:d1:cd miibus0: on rl0 rlphy0: 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: port 0xe400-0xe43f irq 11 at device 13.0 on pci0 ahc0: 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: 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: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 npx0: [FAST] npx0: on motherboard npx0: INT 16 interface orm0: