public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Ian Roxborough <irox@redhat.com>
To: Fernando Nasser <fnasser@redhat.com>
Cc: insight@sources.redhat.com
Subject: Re: Stack Window Problem [was: Re: DLLs and Insight...]
Date: Thu, 01 Nov 2001 12:44:00 -0000	[thread overview]
Message-ID: <3BE1B6FA.DC941BC0@redhat.com> (raw)
In-Reply-To: <3BE1A584.C00E8BB9@cygnus.com>

Hi,

It seems to just get stranger the more I look at it.

So, I'm trying to reproduce the problem but at a different
point in execution and it happens slightly differently:

All the entries in the start look correct (i.e., no "??" entries).
But on closer examination some of the stack entries are totally
wrong, for example Tcl_DStringSetLength is calling Tcl_Realloc,
but the stack shows it as calling Tk_FreePixmap.  However if I
click on the "Tk_FreePixmap" entry in the stack window to view
the source I am taken to the correct place (i.e. Tcl_Realloc source code).
A little bit farther down the stack "realloc" is called.  If I
click on the "realloc" stack entry to see the source code I am
taken to line 1810 of tkMenu.c in the function PostProcessEntry.

I get the same results using "gdb -nw".

Here is how I am reproducing this problem:

-> ./gdb ./gdb.exe
-> break Tcl_Realloc
-> run
-> bt
{Notice that everything should be normal}
-> s
{We change stack levels}
-> bt
{The stack frame called "Tcl_Realloc" is
 now called "Tk_FreePixmap"}

Does anybody else have a current up-to-date Windows build
they could try to reproduce this with?  With Windows it's
hard to tell if it's something specific to my machine
or the code.

Thanks,

 Ian.

Fernando Nasser wrote:
> 
> Ian Roxborough wrote:
> >
> > bt shows the same as the Insight stack window, i.e. stack
> > frames inside1 the Tk DLL are shown as "??".  Running gdb
> > using the "-nw" flags gives the same results.
> >
> 
> This ascertains that the GUI is innocent :)
> 
> That said, lets see how we can track this down.
> 
> > If it is stack corruption, would it be normal to vary between
> > similar versions of gdb?
> >
> 
> I've never seen the bt output.  Re-reading your message it seems
> that you got a sane stack trace -- just the symbolic information
> for the portions that are inside the Tk DLL are missing, right?
> 
> (Maybe you should post the bt output)
> 
> In the past, I had to manually load the DLL symbols in gdb.
> After making sure the DLL compiled with debugging symbols
> was the only one around and after stopping somewhere after
> it was loaded, I used the add-symbol command to load the
> DLL symbols in.  After that was done, the backtrace had
> all symbolic info on it.
> 
> You'll need the load address of the dll.  The syntax is:
> 
> add-symbol filename address
> 
> --
> Fernando Nasser
> Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario   M4P 2C9

  reply	other threads:[~2001-11-01 12:44 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-23 10:20 DLLs and Insight Ian Roxborough
2001-10-23 10:27 ` Keith Seitz
2001-10-23 14:30   ` FYI: DLL breakpoint bug [was: Re: DLLs and Insight...] Ian Roxborough
2001-10-23 14:36     ` Keith Seitz
2001-10-23 14:59       ` Ian Roxborough
2001-10-23 15:05         ` Keith Seitz
2001-10-23 15:14           ` Ian Roxborough
2001-10-23 15:21             ` Keith Seitz
2001-10-23 15:33               ` Ian Roxborough
2001-10-24 13:33             ` Keith Seitz
2001-10-23 10:52 ` DLLs and Insight Fernando Nasser
2001-10-23 11:06 ` Christopher Faylor
2001-10-31  9:24   ` Stack Window Problem [was: Re: DLLs and Insight...] Ian Roxborough
2001-10-31 10:48     ` Fernando Nasser
2001-10-31 11:33       ` Ian Roxborough
2001-10-31 11:53         ` Christopher Faylor
2001-11-01 11:42         ` Fernando Nasser
2001-11-01 12:44           ` Ian Roxborough [this message]
2001-11-01 12:48             ` Keith Seitz
2001-11-01 13:01               ` Christopher Faylor
2001-11-01 13:20                 ` Ian Roxborough
2001-11-01 14:05     ` Keith Seitz
2001-11-01 15:08       ` Christopher Faylor
2001-11-01 15:41         ` Keith Seitz

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=3BE1B6FA.DC941BC0@redhat.com \
    --to=irox@redhat.com \
    --cc=fnasser@redhat.com \
    --cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).