From: Jim Blandy <jimb@codesourcery.com>
To: "ying lcs" <yinglcs@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Using gdb to debug Segmentation fault on linux
Date: Wed, 03 Oct 2007 06:17:00 -0000 [thread overview]
Message-ID: <m3k5q4k9hh.fsf@codesourcery.com> (raw)
In-Reply-To: <568e62a40710021646t2feea2f5re5a7c71d77bee72d@mail.gmail.com> (ying lcs's message of "Tue, 2 Oct 2007 18:46:22 -0500")
"ying lcs" <yinglcs at gmail.com> writes:
> I am trying to use gdb to debug a segmentation fault on linux:
> I get this backtrace dump, but I don't see what's wrong and why i get
> a segmentation fault.
>
> The address of 'this' looks correct. So I would need some help in how
> to proceed in troubleshooting this problem:
Knowing nothing about your code, I couldn't really suggest an
approach. I don't even know whether fSenderReportBuffer is a field of
this, or a global variable, or what. Could one of those identifiers
possibly be a reference created by dereferencing a bad pointer? If
you disassemble the machine code at that line, does that help?
But please don't answer those questions. :) Your post was closer to
being a request for help debugging your program than it was a question
about GDB per se, so it's a bit off-topic. But if you have a question
specifically about GDB, please feel free to ask.
next prev parent reply other threads:[~2007-10-03 6:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 23:46 ying lcs
2007-10-03 6:17 ` Jim Blandy [this message]
2007-10-03 9:41 ` Baurzhan Ismagulov
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=m3k5q4k9hh.fsf@codesourcery.com \
--to=jimb@codesourcery.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