Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2008 09:18:51 -0700
From:      Simson Garfinkel <simsong@acm.org>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: usb/125450: Removing USB flash card while being accessed causes kernel panic
Message-ID:  <06B613DC-AC88-4DCC-B94D-A2D3BDA06F96@acm.org>
In-Reply-To: <200807102203.35245.hselasky@c2i.net>
References:  <200807101940.m6AJe9b0028179@freefall.freebsd.org> <200807102203.35245.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> options USB_DEBUG
>
> and
>
> sysctl hw.usb.umass.debug=-1
> sysctl hw.usb.debug=15

Strangely, it was considerably harder to make the machine panic once  
USB_DEBUG was enabled and the usb debug messages were printing to the  
kernel. It took me 6 tries of running the "dd" command on the raw USB  
device and pulling the device before the machine actually panicked.

The panic is happened after the "dd" command finishes printing it's  
statistics. but before the return to the command line.

page fault while in kernel mode.  Fault virtual addr = 0

Is that a dereference through a null pointer?

The IP is 0x20:0xc0460c3b

Is there an easy way to get a link map of the kernel?

Unfortunately, I can't get the stack trace because the system is not  
performing the crash dump. I've never done a FreeBSD crash dump. I  
tried following the directions, but no luck.

I have also tried configuring a dumpdev in the /etc/rc.conf file:

03:27 PM copy:/home/simsong# cat /etc/rc.conf
hostname="copy"
ifconfig_em0="DHCP"
keymap="us.pc-ctrl"
keyrate="fast"
linux_enable="YES"
moused_enable="YES"
sshd_enable="YES"
dumpdev=/dev/ad0s1a

03:28 PM copy:/home/simsong# cat /etc/fstab
# Device		Mountpoint	FStype	Options		Dump	Pass#
/dev/ad0s1b		none		swap	sw		0	0
/dev/ad0s1a		/		ufs	rw		1	1
/dev/ad0s1e		/tmp		ufs	rw		2	2
/dev/ad0s1f		/usr		ufs	rw		2	2
/dev/ad0s1d		/var		ufs	rw		2	2
/dev/acd0		/cdrom		cd9660	ro,noauto	0	0
/dev/acd1		/cdrom1		cd9660	ro,noauto	0	0
/dev/ad8s1d		/big		ufs	rw		3	3
03:29 PM copy:/home/simsong#


I can't figure out why it won't dump.



>
>
> --HPS
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06B613DC-AC88-4DCC-B94D-A2D3BDA06F96>