From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25533 invoked by alias); 9 Dec 2008 21:49:04 -0000 Received: (qmail 25469 invoked by uid 22791); 9 Dec 2008 21:49:03 -0000 X-Spam-Check-By: sourceware.org Received: from yw-out-1718.google.com (HELO yw-out-1718.google.com) (74.125.46.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Dec 2008 21:48:20 +0000 Received: by yw-out-1718.google.com with SMTP id 9so110498ywk.48 for ; Tue, 09 Dec 2008 13:48:17 -0800 (PST) Received: by 10.100.109.13 with SMTP id h13mr564479anc.21.1228859297789; Tue, 09 Dec 2008 13:48:17 -0800 (PST) Received: by 10.100.126.3 with HTTP; Tue, 9 Dec 2008 13:48:17 -0800 (PST) Message-ID: <568e62a40812091348w720d2240j6ac4e46747c13e46@mail.gmail.com> Date: Tue, 09 Dec 2008 21:49:00 -0000 From: "ying lcs" To: gdb@sourceware.org Subject: Need help in understanding GDB stack trace MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00029.txt.bz2 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? Thank you.