Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2003 09:37:27 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Eivind Olsen <eivind@aminor.no>
Cc:        current@freebsd.org
Subject:   Re: Yet another crash in FreeBSD 5.1
Message-ID:  <20030803000727.GG95375@wantadilla.lemis.com>
In-Reply-To: <1886375.1059842833@[192.168.0.2]>
References:  <1079.192.168.0.3.1059811884.squirrel@webmail.aminor.no> <3F2B803C.21D38E0B@mindspring.com> <1886375.1059842833@[192.168.0.2]>

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

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

On Saturday,  2 August 2003 at 16:47:13 +0200, Eivind Olsen wrote:
> --On 2. august 2003 02:11 -0700 Terry Lambert <tlambert2@mindspring.com>
> wrote:
>>> db> trace
>>> g_dev_strategy(c2156024,c2153800,0,cfb528d0,c2099eca) at
>>> g_dev_strategy+0x29 launch_requests(c299bf00,0,10000,ffffffff,47) at
>>> launch_requests+0x448 vinumstart(c5ada2d0,0,c22ab000,cfb5294c,c02e5bc6)
>>> at vinumstart+0x2b2
>> gdb -k kernel.debug
>> (gdb) list *(g_dev_strategy+29)
>> [ ... ]
>> (gdb) list *(launch_requests+448)
>> [ ... ]
>> (gdb) list *(vinumstart+2b2)
>> [ ... ]
>> Will give you the exact source lines involved, assuming you
>> built a debug kernel.
>
> I did. At least I've tried to. :)
> (I have a kernel.debug which was compiled at the same time as the real
> kernel I'm using, and it's approx. 30MB in size).
>
>> You don't actually need a crash dump to debug a stack traceback.
>
> This is what I found by using those commands you mentioned:
>
> eivind@vimes:~/tmp/debug > gdb -k kernel.debug
> 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
> conditions.
> 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"...
> (kgdb) list *(g_dev_strategy+29)

This is almost certainly the wrong function.  At the very list you
should look at the arguments passed to it.

> (kgdb) list *(launch_requests+448)
> No symbol "launch_requests" in current context.
> (kgdb) list *(vinumstart+2b2)
> No symbol "vinumstart" in current context.
> (kgdb)

Read the links I just sent you.  You haven't loaded the Vinum symbols.

> If anyone wants to take a look at this themselves I've put the compressed
> (gzip) debug-kernel available on
> http://eivind.aminor.no/debug/kernel.debug.gz
> NOTE! It's approx. 13MB compressed!

The kernel's not much use by itself. =20

Greg
--
See complete headers for address and phone numbers

--xjyYRNSh/RebjC6o
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE/LFI/IubykFB6QiMRAopKAKCf2G3x37Ydoc8imOpr+io7M9K1QwCeIimH
2dYcP+7C1iWau/SLgabPiR8=
=LFJw
-----END PGP SIGNATURE-----

--xjyYRNSh/RebjC6o--



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