Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2009 23:30:52 -0800
From:      "Guojun Jin" <gjin@ubicom.com>
To:        "Hans Petter Selasky" <hselasky@c2i.net>
Cc:        bugs@freebsd.org, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org
Subject:   RE: 8.0-RC USB/FS problem
Message-ID:  <CB2DD11991B27C4F99935E6229450D3203950A34@STORK.scenix.com>
References:  <CB2DD11991B27C4F99935E6229450D3203950A1C@STORK.scenix.com> <CB2DD11991B27C4F99935E6229450D3203950A29@STORK.scenix.com> <CB2DD11991B27C4F99935E6229450D3204E5C6A4@STORK.scenix.com> <200911250937.08267.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Most crash had the same back trace. This is also true when USB access hangs, then unplug the drive.

More interesting is the third AMD laptop (dual core) had similar problem, but it is less crashing but hanging.

The core information is available at the same place (bt file is also attached):

http://www.daemonfun.com/archives/public/USB

-rw-r--r--  1 jin         wheel      4668 Nov 25 23:17 bt
-rw-------  1 4294967294  wheel     80074 Nov 25 22:59 core.txt.0
-rw-r--r--  1 4294967294  wheel  72108588 Nov 25 23:09 coredump-0.tbz

core.txt.0 is from savecore, and bt is I did back trace so it has slightly more information than core.txt.
The tbz file contains the kernel.symbol and all files from savecore.

I will continute to dig this and I will set more coredump if new crash happens at different place.
Please let me know anything I can help debug futher before Dec 3rd. I will on travel for a while and I do
not want to hold release for another two weeks. So let's resolve the problem before I am on travel if possible.

-----Original Message-----
From: Hans Petter Selasky [mailto:hselasky@c2i.net]
Sent: Wed 11/25/2009 12:37 AM
To: Guojun Jin
Cc: freebsd-usb@freebsd.org; bugs@freebsd.org; freebsd-stable@freebsd.org
Subject: Re: 8.0-RC USB/FS problem
 
On Wednesday 25 November 2009 00:08:59 Guojun Jin wrote:
> What other debug shall we turn on to analyze this problem.

Are you able to extract the panic message? Try enabling dump on the swap 
partition.

--HPS



[-- Attachment #2 --]
  DUMP: 13.26% done, finished in 0:32 at Wed Nov 25 22:28:23 2009
  DUMP: short read error from /dev/da0s2d: [block 54599860]: count=1024, got=0
  DUMP: short read error from /dev/da0s2d: [block 78464704]: count=7168, got=0
  DUMP: 20.55% done, finished in 0:38 at Wed Nov 25 22:39:22 2009
  DUMP: 25.95% done, finished in 0:43 at Wed Nov 25 22:48:46 2009
  DUMP: 26.00% done, finished in 0:57 at Wed Nov 25 23:08:07 2009
  DUMP: short read error from /dev/da0s2d: [block 263077536]: count=3072, got=0
  DUMP: 26.03% done, finished in 1:11 at Wed Nov 25 23:27:19 2009
  DUMP: 26.06% done, finished in 1:25 at Wed Nov 25 23:46:34 2009
  DUMP: 26.10% done, finished in 1:39 at Thu Nov 26 00:05:46 2009

15 /var/crash: vi core.txt.0 
16 /var/crash: kgdb /boot/kernel/kernel.symbols vmcore.0 
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 "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:
ugen2.2: <DMI> at usbus2 (disconnected)
umass0: at uhub2, port 4, addr 2 (disconnected)
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): Invalidating pack
g_vfs_done():da0s3d[WRITE(offset=2322972672, length=131072)]error = 6
/mnt: got error 6 while accessing filesystem
panic: softdep_deallocate_dependencies: unrecovered I/O error
cpuid = 0
Uptime: 15m57s
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scsi status == 0x0
Physical memory: 370 MB
Dumping 133 MB: 118 102 86 70 54 38 22 6

Reading symbols from /boot/kernel/if_rl.ko...Reading symbols from /boot/kernel/if_rl.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_rl.ko
Reading symbols from /boot/kernel/snd_atiixp.ko...Reading symbols from /boot/kernel/snd_atiixp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_atiixp.ko
Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sound.ko
Reading symbols from /boot/kernel/radeon.ko...Reading symbols from /boot/kernel/radeon.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/radeon.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/drm.ko
#0  doadump () at pcpu.h:246
246     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) up
#1  0xc0768857 in boot (howto=260) at ../../../kern/kern_shutdown.c:416
416                     doadump();
(kgdb) up
#2  0xc0768b49 in panic (fmt=Variable "fmt" is not available.
) at ../../../kern/kern_shutdown.c:579
579             boot(bootopt);
(kgdb) up
#3  0xc099005d in softdep_deallocate_dependencies (bp=Variable "bp" is not available.
)
    at ../../../ufs/ffs/ffs_softdep.c:6367
6367            panic("softdep_deallocate_dependencies: unrecovered I/O error");
(kgdb) l
6362    {
6363
6364            if ((bp->b_ioflags & BIO_ERROR) == 0)
6365                    panic("softdep_deallocate_dependencies: dangling deps");
6366            softdep_error(bp->b_vp->v_mount->mnt_stat.f_mntonname, bp->b_error);
6367            panic("softdep_deallocate_dependencies: unrecovered I/O error");
6368    }
6369
6370    /*
6371     * Function to handle asynchronous write errors in the filesystem.
(kgdb) p/x bp->b_ioflags
Variable "bp" is not available.
(kgdb) l 6360
6355     * Called whenever a buffer that is being invalidated or reallocated
6356     * contains dependencies. This should only happen if an I/O error has
6357     * occurred. The routine is called with the buffer locked.
6358     */ 
6359    static void
6360    softdep_deallocate_dependencies(bp)
6361            struct buf *bp;
6362    {
6363
6364            if ((bp->b_ioflags & BIO_ERROR) == 0)
(kgdb) up
#4  0xc07d8d50 in brelse (bp=0xca1f96c0) at buf.h:418
418     buf.h: No such file or directory.
        in buf.h
(kgdb) up
#5  0xc07db6c6 in bufdone_finish (bp=0xca1f96c0)
    at ../../../kern/vfs_bio.c:3401
3401                            brelse(bp);
(kgdb) p bp
$1 = (struct buf *) 0xca1f96c0
(kgdb) p/x bp->b_ioflags
$2 = 0x1
(kgdb) up
#6  0xc07db73d in bufdone (bp=0xca1f96c0) at ../../../kern/vfs_bio.c:3261
3261            bufdone_finish(bp);
(kgdb)

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