Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Roland Schwingel <roland.schwingel@onevision.de>
Cc: gdb <gdb@sources.redhat.com>, Mark Kettenis <kettenis@gnu.org>
Subject: Re: gdb stack trace problems
Date: Mon, 18 Apr 2005 13:57:00 -0000	[thread overview]
Message-ID: <20050418135721.GA5332@nevyn.them.org> (raw)
In-Reply-To: <4263BA56.9080509@onevision.de>

On Mon, Apr 18, 2005 at 03:47:02PM +0200, Roland Schwingel wrote:
> Ok... Thought that would be already known in a broader space, as after 
> asking
> google for gdb stack trace problems there had been some hits but none with a
> good answer...

Saying "stack trace problems" for GDB is like saying "my code doesn't
compile" for GCC.  It doesn't tell us very much about what has gone
wrong; stack backtracing is a complex problem with lots of
dependencies.

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to thread 2316.0xf8c]
> 0x0040131d in crashIfZero (num=2) at gdbtest.c:17
> 17                      *data=911;
> (gdb) thr 1
> [Switching to thread 1 (thread 2316.0xf10)]#0  0x7c91eb94 in 
> ntdll!LdrAccessResource () from ntdll.dll
> (gdb) bt
> #0  0x7c91eb94 in ntdll!LdrAccessResource () from ntdll.dll
> #1  0x7c91d85c in ntdll!ZwDelayExecution () from ntdll.dll
> #2  0x7c8023ed in SleepEx () from /vol/c/WINDOWS/system32/kernel32.dll
> #3  0x00000000 in ?? () from

OK, here's a concrete problem.  GDB 6.x has a (usually) more reliable
prologue analyzer for x86, compared to GDB 5.3.  However, the old one
got lucky with SleepEx and the new one doesn't.  I'd ask you to post
disassembly of the function except I'm not sure how wise that is with a
Microsoft DLL...

Mark, you did the work on the i386 prologue analyzer.  Any chance you
could take a look at this?


-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-04-18 13:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-18 13:48 Roland Schwingel
2005-04-18 13:57 ` Daniel Jacobowitz [this message]
2005-04-18 17:11   ` Mark Kettenis
  -- strict thread matches above, loose matches on Subject: below --
2005-04-19  6:58 Roland Schwingel
2005-04-15 15:06 Roland Schwingel
2005-04-16 14:09 ` Daniel Jacobowitz

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=20050418135721.GA5332@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=kettenis@gnu.org \
    --cc=roland.schwingel@onevision.de \
    /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