Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2003 14:46:02 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        alpha@FreeBSD.org, current@FreeBSD.org
Subject:   kgdb on alpha does not work properly
Message-ID:  <20030318224602.GA3777@rot13.obsecurity.org>

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

--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I've been having trouble getting gdb -k on alpha to give me sensible
backtraces.  For example, here is the backtrace of a softupdates panic
that I dumped by calling doadump in ddb:

(kgdb) bt
#0  0xfffffc0000421828 in doadump ()
    at /a/asami/portbuild/alpha/src-client/sys/kern/kern_shutdown.c:238
#1  0xfffffc0000355060 in db_fncall (dummy1=0, dummy2=0, dummy3=0, dummy4=0x0)
    at /a/asami/portbuild/alpha/src-client/sys/ddb/db_command.c:546
#2  0xfffffc0000354cb4 in db_command (last_cmdp=0xfffffc00006673b8, cmd_table=0x0,
    aux_cmd_tablep=0xfffffc0000616728, aux_cmd_tablep_end=0xfffffc0000616748)
    at /a/asami/portbuild/alpha/src-client/sys/ddb/db_command.c:346
#3  0xfffffc0000354e34 in db_command_loop ()
    at /a/asami/portbuild/alpha/src-client/sys/ddb/db_command.c:470
#4  0xfffffc0000359244 in db_trap (type=0, code=0)
    at /a/asami/portbuild/alpha/src-client/sys/ddb/db_trap.c:72
#5  0xfffffc000057ee70 in kdb_trap (a0=1, a1=0, a2=0, entry=3, regs=0xfffffe0006c59818)
    at /a/asami/portbuild/alpha/src-client/sys/alpha/alpha/db_interface.c:211
#6  0xfffffc000058fe48 in trap (a0=1, a1=1, a2=18446739675669307791, entry=3,
    framep=0xfffffe0006c59818) at /a/asami/portbuild/alpha/src-client/sys/alpha/alpha/trap.c:382
#7  0xfffffc0000580928 in XentIF () at machine/asm.h:62
#8  0xfffffc000057eff0 in Debugger (msg=---Can't read userspace from dump, or kernel process---

)
    at /a/asami/portbuild/alpha/src-client/sys/alpha/alpha/db_interface.c:278
warning: Hit beginning of text section without finding
warning: enclosing function for address 0x6
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable).  In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
(kgdb)

Can someone please look into this?

Kris
--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE+d6GqWry0BWjoQKURAk2RAKCidoWn3BH763m4LJK89oFdoNMeggCfWk3M
81ziDAm1PK6LYVyUgpbIxjg=
=Nbgi
-----END PGP SIGNATURE-----

--W/nzBZO5zC0uMSeA--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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