This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: gdb/2450: gdb core dump in user-defined stack print command
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 2 May 2008 16:48:01 -0000
- Subject: Re: gdb/2450: gdb core dump in user-defined stack print command
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR gdb/2450; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: skip@pobox.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/2450: gdb core dump in user-defined stack print command
Date: Fri, 2 May 2008 12:39:06 -0400
On Fri, May 02, 2008 at 01:17:16PM -0000, skip@pobox.com wrote:
> I can define the command, but if I try to execute it
> gdb gets an apparent assertion error and dumps core.
> Here's the gdb backtrace:
>
> #0 0xfede5f85 in _lwp_kill () from /lib/libc.so.1
> #1 0xfede2dfe in thr_kill () from /lib/libc.so.1
> #2 0xfed911cb in raise () from /lib/libc.so.1
> #3 0xfed715e9 in abort () from /lib/libc.so.1
> #4 0x0808d62b in internal_vproblem (problem=0x82f04e0,
> file=0x828b9cf "../../gdb/regcache.c", line=<value optimized out>,
> fmt=0x828b9b4 "%s: Assertion `%s' failed.",
> ap=0x8046a6c "G\036%\bX\237+\b2") at ../../gdb/utils.c:794
> #5 0x0808af93 in internal_verror (file=0x828b9cf "../../gdb/regcache.c",
> line=164, fmt=0x828b9b4 "%s: Assertion `%s' failed.",
> ap=0x8046a6c "G\036%\bX\237+\b2") at ../../gdb/utils.c:809
> #6 0x0808afc9 in internal_error (file=0x828b9cf "../../gdb/regcache.c",
> line=164, string=0x828b9b4 "%s: Assertion `%s' failed.")
> at ../../gdb/utils.c:818
> #7 0x080e2067 in register_type (gdbarch=0x833e370, regnum=50)
> at ../../gdb/regcache.c:164
> #8 0x080ecaaa in evaluate_subexp_standard (expect_type=0x0, exp=0x11461640,
> pos=0x80473c4, noside=EVAL_AVOID_SIDE_EFFECTS) at ../../gdb/eval.c:511
If this still happens in GDB 6.8, could you try "set debug expression
1" first?
--
Daniel Jacobowitz
CodeSourcery