Re: 5.2-RC mount /cdrom lock-ups

From: Jesse Guardiani <jesse_at_wingnet.net>
Date: Fri, 12 Dec 2003 12:24:24 -0500
Jesse Guardiani wrote:

> Howdy list,
> 
> I'm getting system lockups in 5.2-RC if I
> mount my cdrom a few times. System hangs with
> the hard disk light on. Can try to initiate
> a serial console/watchdog assisted panic if
> anyone wants to see a backtrace.

OK. I had a chance to test this out today under
5.2-RC1 with a debug kernel. I was immediately
dropped to the debugger after executing `mount /cdrom`.

Here is my boot -v dmesg.boot:

    http://www.wingnet.net/~jesse/freebsd-5.2-rc1.dmesg.boot

And Here's the core dump backtrace:

[12:13]jesse_at_trevarthan:[~]# gdb -k /boot/kernel/kernel.debug /var/crash/vmcore.mount_slash_cdrom_panic.20031212
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-unknown-freebsd"...
panic: Most recently used by ACD driver

panic messages:
---
panic: Most recently used by ACD driver

panic: from debugger
Uptime: 3m39s
Dumping 383 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368
---
Reading symbols from /boot/kernel/snd_ich.ko...done.
Loaded symbols for /boot/kernel/snd_ich.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/apm/apm.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/apm/apm.ko.debug
Reading symbols from /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/acpi/acpi.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/acpi/acpi.ko.debug
Reading symbols from /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/ntfs/ntfs.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/ntfs/ntfs.ko.debug
Reading symbols from /boot/kernel/daemon_saver.ko...done.
Loaded symbols for /boot/kernel/daemon_saver.ko
Reading symbols from /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/TREVARTHAN-DEBUG/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at ../../../kern/kern_shutdown.c:240
240             dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:240
#1  0xc051ff4c in boot (howto=260) at ../../../kern/kern_shutdown.c:372
#2  0xc05202d7 in panic () at ../../../kern/kern_shutdown.c:550
#3  0xc044d712 in db_panic () at ../../../ddb/db_command.c:450
#4  0xc044d672 in db_command (last_cmdp=0xc0730fc0, cmd_table=0x0, aux_cmd_tablep=0xc06fa9d0, aux_cmd_tablep_end=0xc06fa9d4)
    at ../../../ddb/db_command.c:346
#5  0xc044d7b5 in db_command_loop () at ../../../ddb/db_command.c:472
#6  0xc04507b5 in db_trap (type=3, code=0) at ../../../ddb/db_trap.c:73
#7  0xc068ab1c in kdb_trap (type=3, code=0, regs=0xd384a7b8) at ../../../i386/i386/db_interface.c:171
#8  0xc069adb8 in trap (frame=
      {tf_fs = -1066205160, tf_es = -1066205168, tf_ds = 16, tf_edi = 1, tf_esi = -1066459540, tf_ebp = -746280956, tf_isp = -746280988, tf_ebx = 0, tf_edx = 0, tf_ecx = 32, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066881580, tf_cs = 8, tf_eflags = 642, tf_esp = -1066451229, tf_ss = -1066546986})
    at ../../../i386/i386/trap.c:580
#9  0xc068c518 in calltrap () at {standard input}:94
#10 0xc0520265 in panic (fmt=0xc06f1e6c "Most recently used by %s\n") at ../../../kern/kern_shutdown.c:534
#11 0xc0668487 in mtrash_ctor (mem=0xc3cde800, size=0, arg=0x0) at ../../../vm/uma_dbg.c:137
#12 0xc0666beb in uma_zalloc_arg (zone=0xc103be40, udata=0x0, flags=2) at ../../../vm/uma_core.c:1403
#13 0xc0514bc3 in malloc (size=3238248000, type=0xc0718600, flags=2) at ../../../vm/uma.h:234
#14 0xc056c4e2 in allocbuf (bp=0xcb4b9270, size=2048) at ../../../kern/vfs_bio.c:2753
#15 0xc056c1df in getblk (vp=0xc42b2820, blkno=76, size=2048, slpflag=0, slptimeo=0, flags=0) at ../../../kern/vfs_bio.c:2635
#16 0xc0568482 in breadn (vp=0xc42b2820, blkno=0, size=0, rablkno=0x0, rabsize=0x0, cnt=0, cred=0x0, bpp=0x0) at ../../../kern/vfs_bio.c:700
#17 0xc056842c in bread (vp=0x0, blkno=0, size=0, cred=0x0, bpp=0x0) at ../../../kern/vfs_bio.c:682
#18 0xc04f4bda in iso_mountfs (devvp=0xc42b2820, mp=0xc3a5e400, td=0xc39ed8c0, argp=0xd384aae8) at ../../../isofs/cd9660/cd9660_vfsops.c:331
#19 0xc04f48cd in cd9660_mount (mp=0xc3a5e400, path=0xc3d35080 "/cdrom", data=0x0, ndp=0xc42b2820, td=0xc39ed8c0)
    at ../../../isofs/cd9660/cd9660_vfsops.c:247
#20 0xc0576648 in vfs_domount (td=0xc39ed8c0, fstype=0xc39ed8c0 "\210\023ธร", fspath=0xc3d35080 "/cdrom", fsflags=-1012538368, fsdata=0xbfbfebc4, compat=1)
    at ../../../kern/vfs_mount.c:872
#21 0xc0575e20 in mount (td=0x0, uap=0xd384ad14) at ../../../kern/vfs_mount.c:625
#22 0xc069b710 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077941180, tf_esi = -1077941096, tf_ebp = -1077941156, tf_isp = -746279564, tf_ebx = -1077940849, tf_edx = -1077943200, tf_ecx = -1077940840, tf_eax = 21, tf_trapno = 12, tf_err = 2, tf_eip = 671883055, tf_cs = 31, tf_eflags = 582, tf_esp = -1077942372, tf_ss = 47}) at ../../../i386/i386/trap.c:1010
#23 0xc068c56d in Xint0x80_syscall () at {standard input}:136
---Can't read userspace from dump, or kernel process---

(kgdb)

Any ideas?

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net
Received on Fri Dec 12 2003 - 08:24:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:33 UTC