Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: ying lcs <yinglcs@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Need help in understanding GDB stack trace
Date: Wed, 10 Dec 2008 23:28:00 -0000	[thread overview]
Message-ID: <49404F86.1000800@vmware.com> (raw)
In-Reply-To: <568e62a40812091348w720d2240j6ac4e46747c13e46@mail.gmail.com>

ying lcs wrote:
> All,
> 
> I need help in understadning Gdb stack trace:
> 
> [Switching to Thread 0xb73b4700 (LWP 28041)]
> 0x00000000 in ?? ()
> (gdb) bt
> #0  0x00000000 in ?? ()
> #1  0xb5bfc9a6 in DefaultSerializeElementRule::serializeStart (this=0xa450e40,
>     domElement=0xa03e104, fd=0xa450ab0)
>     at /media/storage/working/content/serializer/src/DefaultSerializeElementRule.cpp:55
> 
> And here is my method:
> 
> void DefaultSerializeElementRule::serializeStart(nsIDOMElement*
> domElement, FILE* fd) {
> 
>   nsAutoString tagName;
> 
>   domElement->GetTagName(tagName);
> 
>   fprintf(fd, "<%s", NS_ConvertUTF16toUTF8(tagName).get());
>   // this is line 55:
>   serializeAttribute(domElement, fd);
> 
> }
> 
> 
> I don't understand what is the meaning of :
> 0x00000000 in ?? ()
> 
> from the stack trace, both my domElement, fd are not null. So why my
> program crashes?

Try this:

(gdb) frame 1
(gdb) print domElement->GetTagName

See whether the function pointer is actually valid.
Hopefully it should point to a function...


      reply	other threads:[~2008-12-10 23:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09 21:49 ying lcs
2008-12-10 23:28 ` Michael Snyder [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=49404F86.1000800@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb@sourceware.org \
    --cc=yinglcs@gmail.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