Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 14:39:46 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Nate Lawson <nate@root.org>
Cc:        current@freebsd.org
Subject:   Re: New ACPI diffs ready for testing
Message-ID:  <20030429113946.GA13243@sunbay.com>
In-Reply-To: <Pine.BSF.4.21.0304281030350.73450-100000@root.org>
References:  <20030425195734.GA28920@sunbay.com> <Pine.BSF.4.21.0304281030350.73450-100000@root.org>

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

--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 28, 2003 at 10:32:44AM -0700, Nate Lawson wrote:
> On Fri, 25 Apr 2003, Ruslan Ermilov wrote:
> > On Fri, Apr 25, 2003 at 01:35:24AM -0700, Nate Lawson wrote:
> > >     http://www.root.org/~nate/freebsd/acpi-0228.diff.gz
> >
> > I still have the same panic in acpi_thermal.  What should I
> > do to help debug / fix this problem?
> >=20
> > Fatal trap 12: page fault while in kernel mode
> > fault virtual address	=3D 0x3a0
> > fault code		=3D supervisor read, page not present
> > instruction pointer	=3D 0x8:0xc0466910
> > stack pointer	        =3D 0x10:0xc875dbe0
> > frame pointer	        =3D 0x10:0xc875dbe0
> > 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 21 (acpi_thermal)
> > panic: from debugger
>=20
> Send me a stacktrace for starters (tr) and a link to your aml online
> (acpidump -o box.dsdt > box.aml).  Also, for informational purposes, send
> the output of pciconf -l.
>=20
I don't know how much a stacktrace can be useful here; some of the
stack frames seem to be damaged.  The below was produces with the
latest 0228 ACPI diff in-tree, and acpi device compiled directly
into a kernel.  Loading it as a module gave me some lines offset
in the source file, and the faulting address was 0xdeadc0de.

The box.* files and "pciconf -l" output are available at:

	http://people.freebsd.org/~ru/acpi_thermal.panic.bz2

I will keep this debug kernel and vmcore for some time, in case
someone needs it.

: Script started on Tue Apr 29 14:27:39 2003
: 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 conditi=
ons.
: Type "show copying" to see the conditions.
: There is absolutely no warranty for GDB.  Type "show warranty" for detail=
s.
: This GDB was configured as "i386-undermydesk-freebsd"...
: panic: from debugger
: panic messages:
: ---
: Fatal trap 12: page fault while in kernel mode
: fault virtual address	=3D 0xbffff
: fault code		=3D supervisor read, page not present
: instruction pointer	=3D 0x8:0xc013b5f0
: stack pointer	        =3D 0x10:0xc8761be0
: frame pointer	        =3D 0x10:0xc8761be0
: 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 20 (acpi_thermal)
: panic: from debugger
:=20
:=20
: Fatal trap 3: breakpoint instruction fault while in kernel mode
: instruction pointer	=3D 0x8:0xc02d42b4
: stack pointer	        =3D 0x10:0xc876195c
: frame pointer	        =3D 0x10:0xc8761968
: code segment		=3D base 0x0, limit 0xfffff, type 0x1b
: 			=3D DPL 0, pres 1, def32 1, gran 1
: processor eflags	=3D IOPL =3D 0
: current process		=3D 20 (acpi_thermal)
: panic: from debugger
: Uptime: 31s
: Dumping 127 MB
: ata0: resetting devices ..
: done
:  16 32 48 64 80 96 112
: ---
: Reading symbols from /boot/kernel/if_dc.ko...done.
: Loaded symbols for /boot/kernel/if_dc.ko
: Reading symbols from /boot/kernel/if_wi.ko...done.
: Loaded symbols for /boot/kernel/if_wi.ko
: Reading symbols from /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/modu=
les/wlan/wlan.ko.debug...done.
: Loaded symbols for /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/module=
s/wlan/wlan.ko.debug
: Reading symbols from /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/modu=
les/rc4/rc4.ko.debug...done.
: Loaded symbols for /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/module=
s/rc4/rc4.ko.debug
: Reading symbols from /boot/kernel/snd_csa.ko...done.
: Loaded symbols for /boot/kernel/snd_csa.ko
: Reading symbols from /boot/kernel/snd_pcm.ko...done.
: Loaded symbols for /boot/kernel/snd_pcm.ko
: #0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
: 238		dumping++;
: (kgdb) bt
: #0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
: #1  0xc01e41f3 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c=
:370
: #2  0xc01e453b in panic () at /usr/src/sys/kern/kern_shutdown.c:543
: #3  0xc0146a92 in db_panic () at /usr/src/sys/ddb/db_command.c:448
: #4  0xc0146a12 in db_command (last_cmdp=3D0xc0334400, cmd_table=3D0x0,=20
:     aux_cmd_tablep=3D0xc032f4dc, aux_cmd_tablep_end=3D0xc032f4e0)
:     at /usr/src/sys/ddb/db_command.c:346
: #5  0xc0146b26 in db_command_loop () at /usr/src/sys/ddb/db_command.c:470
: #6  0xc01498ba in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_tr=
ap.c:72
: #7  0xc02d4015 in kdb_trap (type=3D12, code=3D0, regs=3D0xc8761ba0)
:     at /usr/src/sys/i386/i386/db_interface.c:170
: #8  0xc02e5742 in trap_fatal (frame=3D0xc8761ba0, eva=3D0)
:     at /usr/src/sys/i386/i386/trap.c:829
: #9  0xc02e5452 in trap_pfault (frame=3D0xc8761ba0, usermode=3D0, eva=3D78=
6431)
:     at /usr/src/sys/i386/i386/trap.c:748
: #10 0xc02e501d in trap (frame=3D
:       {tf_fs =3D -1071841256, tf_es =3D -1070399472, tf_ds =3D 1051590672=
, tf_edi =3D 0, tf_esi =3D -1070542514, tf_ebp =3D -931783712, tf_isp =3D -=
931783732, tf_ebx =3D -1070542509, tf_edx =3D 786431, tf_ecx =3D 1, tf_eax =
=3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1072450064, tf_cs =3D 8,=
 tf_eflags =3D 66055, tf_esp =3D -931783672, tf_ss =3D -1072447235}) at /us=
r/src/sys/i386/i386/trap.c:433
: #11 0xc02d5968 in calltrap () at {standard input}:96
: #12 0xc013c0fd in AcpiGetHandle (Parent=3D0xbffff, Pathname=3D0xc030d14e =
"_PS0",=20
:     RetHandle=3D0xc8761c2c) at /usr/src/sys/contrib/dev/acpica/nsxfname.c=
:177
: #13 0xc0153f83 in acpi_pwr_switch_consumer (consumer=3D0x0, state=3D0)
:     at /usr/src/sys/dev/acpica/acpi_powerres.c:359
: #14 0xc0155818 in acpi_tz_switch_cooler_on (obj=3D0xc189c9d0, arg=3D0xc18=
78300)
:     at /usr/src/sys/dev/acpica/acpi_thermal.c:588
: #15 0xc014ba8d in acpi_ForeachPackageObject (pkg=3D0xc1878300,=20
:     func=3D0xc01557e0 <acpi_tz_switch_cooler_on>, arg=3D0xc1878300)
:     at /usr/src/sys/dev/acpica/acpi.c:1186
: #16 0xc01555fb in acpi_tz_monitor (sc=3D0xc189c9d0)
:     at /usr/src/sys/dev/acpica/acpi_thermal.c:462
: #17 0xc0155b66 in acpi_tz_timeout (sc=3D0xc1878300)
:     at /usr/src/sys/dev/acpica/acpi_thermal.c:741
: #18 0xc0155d46 in acpi_tz_thread (arg=3D0x0)
:     at /usr/src/sys/dev/acpica/acpi_thermal.c:821
: #19 0xc01cfb90 in fork_exit (callout=3D0xc0155c80 <acpi_tz_thread>, arg=
=3D0x0,=20
:     frame=3D0x0) at /usr/src/sys/kern/kern_fork.c:795
: (kgdb) up 12
: #12 0xc013c0fd in AcpiGetHandle (Parent=3D0xbffff, Pathname=3D0xc030d14e =
"_PS0",=20
:     RetHandle=3D0xc8761c2c) at /usr/src/sys/contrib/dev/acpica/nsxfname.c=
:177
: 177	        PrefixNode =3D AcpiNsMapHandleToNode (Parent);
: (kgdb) l
: 172	        if (ACPI_FAILURE (Status))
: 173	        {
: 174	            return (Status);
: 175	        }
: 176=09
: 177	        PrefixNode =3D AcpiNsMapHandleToNode (Parent);
: 178	        if (!PrefixNode)
: 179	        {
: 180	            (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
: 181	            return (AE_BAD_PARAMETER);
: (kgdb) up
: #13 0xc0153f83 in acpi_pwr_switch_consumer (consumer=3D0x0, state=3D0)
:     at /usr/src/sys/dev/acpica/acpi_powerres.c:359
: 359	    if (ACPI_FAILURE(AcpiGetHandle(consumer, method_name, &method_han=
dle)))
: (kgdb) p consumer
: $1 =3D (void *) 0x0
: (kgdb) p method_name
: $2 =3D 0x0
: (kgdb)=20
: Script done on Tue Apr 29 14:28:46 2003


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+rmSCUkv4P6juNwoRAtS/AJ9qMF2X4iDKDurCCRWgkw2pO26MfwCfR+Ay
s65XXqvSwPHzo6/7awMKIbY=
=HFaj
-----END PGP SIGNATURE-----

--FL5UXtIhxfXey3p5--



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