Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jason Molenda <jmolenda@apple.com>
To: gdb@sources.redhat.com
Subject: Re: stack corruption?
Date: Tue, 14 Jun 2005 21:26:00 -0000	[thread overview]
Message-ID: <763A9227-0BD8-45EE-A30E-0992464739AD@apple.com> (raw)
In-Reply-To: <20050614205212.GK62467@keyslapper.net>


On Jun 14, 2005, at 1:52 PM, Louis LeBlanc wrote:

> Basically, I'm not entirely sure.  The codebase in question has never
> had this problem in the past, but now (with a newer version of gdb,
> and after much work on my code) I always get the corrupt stack notice
> when I open the process in gdb.

You mean you're doing a backtrace and mid-way through you get an  
error message like

Previous frame identical to this frame (corrupt stack?)

and the backtrace stops at that point?  These days, the majority of  
the time, this is gdb getting confused.  Your program don't  
necessarily have a corrupt stack.

> The gdb version I am using is:
> $ gdb -v
> GNU gdb 6.3.0.20050516-cvs
>
> I have been planning to get a later snapshot, but haven't gotten
> around to it yet.

In addition, I'd recommend grabbing an older gdb and give that a try,  
like 6.0.  There was some work done in the frame handling code that  
changed the way stack backtraces are done, and it gives up too  
easily.  I don't remember when the new frame code went in, but  
gdb-6.0 is probably early enough.  Downloading & building gdb doesn't  
take much time; it's worth doing this as a sanity check.

Jason


      parent reply	other threads:[~2005-06-14 21:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14  1:45 Louis LeBlanc
2005-06-14  2:01 ` Daniel Jacobowitz
2005-06-14  3:33   ` Louis LeBlanc
2005-06-14 20:36     ` Jason Molenda
2005-06-14 20:52       ` Louis LeBlanc
2005-06-14 21:24         ` Mark Kettenis
2005-06-14 21:31           ` Louis LeBlanc
2005-06-14 21:36             ` Jason Molenda
2005-06-14 21:44             ` Mark Kettenis
2005-06-14 22:09               ` Louis LeBlanc
2005-06-14 22:35                 ` Daniel Jacobowitz
2005-06-14 21:26         ` Jason Molenda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=763A9227-0BD8-45EE-A30E-0992464739AD@apple.com \
    --to=jmolenda@apple.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox