Re: Kernel panics, one starting with r248508

From: Joshua Isom <jrisom_at_gmail.com>
Date: Thu, 21 Mar 2013 17:59:31 -0500
On 3/21/2013 5:38 PM, Konstantin Belousov wrote:
> On Thu, Mar 21, 2013 at 03:58:55PM -0500, Joshua Isom wrote:
>> I've been helping Adrian test the new ath improvements that support the
>> chipset I have.  The first kernel panic is on my system if I have the cd
>> driver loaded into the kernel, I would get a panic on boot.  While
>> "Mounting local file systems:" it would panic with "Memory modified
>> after free."  Removing the driver solved it.  I'd rather have wireless
>> than cd for right now anyway.  But a couple days ago a new build would
>> always panic, a couple seconds after getty is spawned.  All I get is
>> "panic: Bio too short 0xfffffe000b1395d0."  Before that, the builds
>> worked other than occasional issues due to cleaning.  The only place
>> that panic can be generated is geom_io.c so I'm guessing I can't just
>> remove the driver.  What needs done so I can get a working kernel again?
>
> Try r248596. If it does not help, get a core dump, load it into kgdb
> and do "p *(struct bio *)addr", where addr is reported in the panic message.
>

> [jri:/var/crash] root# kgdb /boot/kernel/kernel vmcore.10
> 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 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 "amd64-marcel-freebsd"...
>
> Unread portion of the kernel message buffer:
> panic: Bio too short 0xfffffe000a224c98
> cpuid = 1
> KDB: enter: panic
>
> Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /boot/kernel/zfs.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/zfs.ko
> Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /boot/kernel/opensolaris.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/opensolaris.ko
> Reading symbols from /boot/kernel/geom_mirror.ko...Reading symbols from /boot/kernel/geom_mirror.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/geom_mirror.ko
> Reading symbols from /boot/kernel/if_ath.ko...Reading symbols from /boot/kernel/if_ath.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/if_ath.ko
> Reading symbols from /boot/kernel/amdtemp.ko...Reading symbols from /boot/kernel/amdtemp.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/amdtemp.ko
> Reading symbols from /boot/kernel/if_ath_pci.ko...Reading symbols from /boot/kernel/if_ath_pci.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/if_ath_pci.ko
> Reading symbols from /boot/kernel/ums.ko...Reading symbols from /boot/kernel/ums.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/ums.ko
> Reading symbols from /boot/kernel/ulpt.ko...Reading symbols from /boot/kernel/ulpt.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/ulpt.ko
> Reading symbols from /boot/kernel/uhid.ko...Reading symbols from /boot/kernel/uhid.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/uhid.ko
> Reading symbols from /boot/kernel/ipfw.ko...Reading symbols from /boot/kernel/ipfw.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/ipfw.ko
> kgdb: kvm_read: invalid address (0x354541500000000)
> #0  0x0000000000000000 in ?? ()
> (kgdb) p *(struct bio *)0xfffffe000a224c98
> $1 = {bio_cmd = 1 '\001', bio_flags = 16 '\020', bio_cflags = 0 '\0', bio_pflags = 0 '\0',
>   bio_dev = 0x0, bio_disk = 0x0, bio_offset = 0, bio_bcount = 0,
>   bio_data = 0xffffff8000206000 <Address 0xffffff8000206000 out of bounds>,
>   bio_ma = 0xffffff80204266d0, bio_ma_offset = 0, bio_ma_n = 17, bio_error = 0, bio_resid = 0,
>   bio_done = 0xffffffff8078e9b0 <g_dev_done>, bio_driver1 = 0x0, bio_driver2 = 0x0,
>   bio_caller1 = 0x0, bio_caller2 = 0x0, bio_queue = {tqe_next = 0x0,
>     tqe_prev = 0xffffffff8122f418}, bio_attribute = 0x0, bio_from = 0xfffffe000a29f700,
>   bio_to = 0xfffffe0007486800, bio_length = 65536, bio_completed = 0, bio_children = 0,
>   bio_inbed = 0, bio_parent = 0xfffffe000a2c7d90, bio_t0 = {sec = 83,
>     frac = 2480829560582148726}, bio_task = 0, bio_task_arg = 0x0, bio_classifier1 = 0x0,
>   bio_classifier2 = 0x0, bio_pblkno = 0}
> (kgdb)
Received on Thu Mar 21 2013 - 21:59:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC