This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: c++/1400: Seg fault when dereferencing 'this' pointer
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 27 Sep 2003 21:08:01 -0000
- Subject: Re: c++/1400: Seg fault when dereferencing 'this' pointer
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR c++/1400; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: rsteinke@w-link.net
Cc: gdb-gnats@sources.redhat.com
Subject: Re: c++/1400: Seg fault when dereferencing 'this' pointer
Date: Sat, 27 Sep 2003 17:06:32 -0400
On Sat, Sep 27, 2003 at 06:31:59PM -0000, rsteinke@w-link.net wrote:
> >Environment:
> Debian 'testing', as of 9/27/03
> >Description:
> When trying to debug a seg fault in an application, gdb itself
> segfaults when I try to dereference the 'this' pointer to print the contents of an object. Since the application that is running under gdb has just seg faulted, the 'this' pointer may or may not point to valid memory.
>
> Unfortunately, the application that's triggering this is rather complex, and I have yet to come up with a simple test case. Here's a backtrace from when I run gdb under gdb, with the application backtrace at the top for context:
The version in testing is rather old. Could you build a snapshot, from
http://sources.redhat.com/gdb/, and let us know if the problem is still
there? Or try the version in unstable; but I've fixed a similar crash
since I last updated unstable.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer