From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: msnyder@specifix.com
Cc: guillaume.menant@geensys.com, gdb@sourceware.org
Subject: Re: Previous frame identical to this frame (corrupt stack?)
Date: Thu, 06 Mar 2008 10:05:00 -0000 [thread overview]
Message-ID: <200803060924.m269OFDm022269@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <1204749725.19253.640.camel@localhost.localdomain> (msnyder@specifix.com)
> From: "Michael Snyder" <msnyder@specifix.com>
> Date: Wed, 05 Mar 2008 12:42:05 -0800
>
> On Wed, 2008-03-05 at 08:36 -0800, Guillaume MENANT wrote:
> > What does it means ? What have I to look at in order to check if I have an
> > mistake in my program ?
>
> In practice, the most frequent case where I have seen
> this message is when we really have reached the end
> of the stack. Usually the bottom frame is some sort
> of thread creation function, possibly in the kernel
> or in some thread library. In this context, what
> has usually happened is that the author of the thread
> creation function has not bothered to set up some
> sort of initial "zero" stack pointer so that the
> debugger can detect the end of the stack.
Or that the GDB target does not bother to check for that condition. Some
thread libraries actually do bother to set up the stack in a way that makes
it possible to detect the end of the stack, but GDB simply doesn't have the
code to detect this.
And on open source operating systems we could make sure that the
thread creation function has a unique name and check for that much like we
terminate the stack trace as we do for main().
But apparently people are not annoyed enough with seeing this message
to write the actual code ;).
Mark
prev parent reply other threads:[~2008-03-06 9:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 16:40 Guillaume MENANT
2008-03-05 17:26 ` Joel Brobecker
2008-03-05 18:08 ` Aleksandar Ristovski
2008-03-05 19:52 ` Andrew STUBBS
2008-03-06 2:05 ` Michael Snyder
2008-03-06 7:06 ` Guillaume MENANT
2008-03-06 10:05 ` Mark Kettenis [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=200803060924.m269OFDm022269@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb@sourceware.org \
--cc=guillaume.menant@geensys.com \
--cc=msnyder@specifix.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