This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using gdb to debug Segmentation fault on linux


"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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]