Date: Thu, 9 May 2002 15:33:57 +0100 From: Josef Karthauser <joe@tao.org.uk> To: John Baldwin <jhb@FreeBSD.org> Cc: Josef Karthauser <joe@tao.org.uk>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/usb usb_port.h Message-ID: <20020509143357.GA428@genius.tao.org.uk> In-Reply-To: <XFMail.20020509094244.jhb@FreeBSD.org> References: <20020509132343.GA4338@genius.tao.org.uk> <XFMail.20020509094244.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, May 09, 2002 at 09:42:44AM -0400, John Baldwin wrote:
>=20
> On 09-May-2002 Josef Karthauser wrote:
> > On Thu, May 09, 2002 at 09:22:27AM -0400, John Baldwin wrote:
> >>=20
> >> > I tested this on a 2002.04.29.17.00.00 kernel. A kernel from today
> >> > crashes during device probes; I've no idea why.
> >>=20
> >> What is the crash?
> >>=20
> >=20
> > I can't get a core because it happens during the device probe. It
> > looks like a memory allocator problem; something to do with freeing
> > unallocated or unaligned memory.
>=20
> Hmm, if you could stick ddb in and get a backtrace and the actual error
> message that would be nice. Easiest to do if you can get a serial console
> setup on the box.
Two different ones for you:
dhcp59# tip com1
connected
Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 638kB/523200kB available memory
FreeBSD/i386 bootstrap loader, Revision 1.1
(joe@genius.tao.org.uk, Sat Mar 30 14:13:10 GMT 2002)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=3D0x22ceec data=3D0x43c14+0x6dcec syms=3D[0x4+=
0x39e50+0x4+0x4
60ab]
/boot/kernel/agp.ko text=3D0x8edc data=3D0x770+0x1c syms=3D[0x4+0x10f0+=
0x4+0x12bc]
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 8 seconds...
Type '?' for a list of commands, 'help' for more detailed help.
OK boot
/boot/kernel/acpi.ko text=3D0x574e4 data=3D0x2538+0x6cc syms=3D[0x4+0x6=
280+0x4+0x76b2]
Copyright (c) 1992-2002 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.0-CURRENT #72: Thu May 9 13:22:56 BST 2002
joe@genius.tao.org.uk:/usr/obj/usr/src/sys/GENIUS
Preloaded elf kernel "/boot/kernel/kernel" at 0xc04d7000.
Preloaded elf module "/boot/kernel/agp.ko" at 0xc04d70a8.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04d7150.
ACPI debug layer 0x0 debug level 0x0
Timecounter "i8254" frequency 1193182 Hz
Timecounter "TSC" frequency 696974302 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (696.97-MHz 686-class CPU)
Origin =3D "GenuineIntel" Id =3D 0x686 Stepping =3D 6
Features=3D0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,=
MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory =3D 536805376 (524224K bytes)
avail memory =3D 516780032 (504668K bytes)
Pentium Pro MTRR support enabled
VESA: v2.0, 16384k memory, flags:0x1, mode table:0xc03defa2 (1000022)
VESA: ATI MOBILE M3
Using $PIR table, 7 entries at 0xc00fdf50
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL I 5000 > on motherboard
Timecounter "ACPI-safe" frequency 3579545 Hz
free(9)'ing unaligned pointer 0xce4eb0d3
Debugger("Don't do that...")
Stopped at Debugger+0x41: xorl %eax,%eax
db> reset
Copyright (c) 1992-2002 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.0-CURRENT #70: Wed May 8 23:08:54 BST 2002
joe@genius.tao.org.uk:/usr/obj/usr/src/sys/GENIUS
Preloaded elf kernel "/boot/kernel.old/kernel" at 0xc04cc000.
Preloaded elf module "/boot/kernel.old/acpi.ko" at 0xc04cc0b8.
ACPI debug layer 0x0 debug level 0x0
Timecounter "i8254" frequency 1193182 Hz
Timecounter "TSC" frequency 696974365 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (696.97-MHz 686-class CPU)
Origin =3D "GenuineIntel" Id =3D 0x686 Stepping =3D 6
Features=3D0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,=
MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory =3D 536805376 (524224K bytes)
avail memory =3D 516861952 (504748K bytes)
Pentium Pro MTRR support enabled
VESA: v2.0, 16384k memory, flags:0x1, mode table:0xc03e0ae2 (1000022)
VESA: ATI MOBILE M3
Using $PIR table, 7 entries at 0xc00fdf50
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL I 5000 > on motherboard
Timecounter "ACPI-safe" frequency 3579545 Hz
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
Fatal trap 12: page fault while in kernel mode
fault virtual address =3D 0x99
fault code =3D supervisor read, page not present
instruction pointer =3D 0x8:0xc01e2b8f
stack pointer =3D 0x10:0xc04eeb48
frame pointer =3D 0x10:0xc04eeb50
code segment =3D base 0x0, limit 0xfffff, type 0x1b
=3D DPL 0, pres 1, def32 1, gran 1
processor eflags =3D interrupt enabled, resume, IOPL =3D 0
current process =3D 0 (swapper)
kernel: type 12 trap, code=3D0
Stopped at _mtx_lock_sleep+0x11b: movb 0x79(%edx),%al
db> trace
_mtx_lock_sleep(c082ace4,0,c031d431,65e) at _mtx_lock_sleep+0x11b
_mtx_lock_flags(c082ace4,0,c031d431,65e,ce4eef6c) at _mtx_lock_flags+0x=
39
uma_zfree_arg(c082ac00,ce4eef6c,ce4eef6c) at uma_zfree_arg+0x3e
free(ce4eef6c,c03534c0,c04eebe4,c0498342,ce4eef6c) at free+0xa7
freeenv(ce4eef6c,c04eec0c,d7c3e200,1,c04eec18) at freeenv+0x1a
acpi_avoid(d7c113a8,34d,c04eec0c,0,d7c113a8) at acpi_avoid+0x9e
acpi_probe_child(d7c113a8,1,d7c3e200,0,0) at acpi_probe_child+0x3c
AcpiNsWalkNamespace(0,d7c08128,64,1,c049719c) at AcpiNsWalkNamespace+0x=
c2
AcpiWalkNamespace(0,d7c08128,64,c049719c,d7c3e200) at AcpiWalkNamespace=
+0x89
acpi_probe_children(d7c3e200,d7bd7090,ce4f2880,d7c3e200,d7c3e300) at ac=
pi_probe_children+0x9f
acpi_attach(d7c3e200,d7c3e200,ce4f2880,ce4f2880,1) at acpi_attach+0x3c0
device_probe_and_attach(d7c3e200) at device_probe_and_attach+0x9a
bus_generic_attach(ce4f2880,d7ba4090,ce4f2b00,c04eed5c,c01f59d2) at bus=
_generic_attach+0x16
nexus_attach(ce4f2880,ce4f2880,ce4fb718,4f3000,1) at nexus_attach+0xe
device_probe_and_attach(ce4f2880) at device_probe_and_attach+0x9a
root_bus_configure(ce4f2b00,c031ffc0,0,4) at root_bus_configure+0x16
configure(0,4ebc00,4eb000,0,c0128d3c) at configure+0x22
mi_startup() at mi_startup+0x95
begin() at begin+0x43
db>
_mtx_lock_sleep(c082ace4,0,c031d431,65e) at _mtx_lock_sleep+0x11b
db>
_mtx_lock_sleep(c082ace4,0,c031d431,65e) at _mtx_lock_sleep+0x11b
db> reset
Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 638kB/523200kB available memory
and
Copyright (c) 1992-2002 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.0-CURRENT #73: Thu May 9 15:04:22 BST 2002
joe@genius.tao.org.uk:/usr/obj/usr/src/sys/GENIUS
Fatal trap 12: page fault while in kernel mode
fault virtual address =3D 0x0
fault code =3D supervisor read, page not present
instruction pointer =3D 0x8:0xc01ef5e3
stack pointer =3D 0x10:0xc04fbd54
frame pointer =3D 0x10:0xc04fbd5c
code segment =3D base 0x0, limit 0xfffff, type 0x1b
=3D DPL 0, pres 1, def32 1, gran 1
processor eflags =3D interrupt enabled, resume, IOPL =3D 0
current process =3D 0 ()
kernel: type 12 trap, code=3D0
Stopped at 0xc01ef5e3: movl 0(%eax),%ebx
db> trace
(null)(c02e50ce,0,c032aa3c,c032bb8c,c04fbd84) at 0xc01ef5e3
(null)(c0333380) at 0xc01ef62c
(null)(0,4f8c00,4f8000,0,c0128e7c) at 0xc01efb70
(null)() at 0xc01cf7c5
(null)() at 0xc0128e7c
db>
Joe
--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzaiNUACgkQXVIcjOaxUBYHEwCfa7DyBb2Uzpto9WoHqkl1k3Fq
jN4AoL5HTfEH9x4ir6sA/nQYtiAMdm37
=jrWE
-----END PGP SIGNATURE-----
--DocE+STaALJfprDB--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020509143357.GA428>
