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]

Using gdb to debug Segmentation fault on linux


Hi,

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:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218548816 (LWP 25361)]
0x08067623 in RTPStream::SendRTCPSR (this=0x83a1520, inTime=@0x1b9a5b58,
    inAppendBye=0) at RTCPUtilitiesLib/RTCPSRPacket.h:123
123         ((UInt32*)&fSenderReportBuffer)[(fSenderReportWithServerInfoSize
>> 2) + 1] = htonl(inSSRC);
(gdb)
(gdb) bt
#0  0x08067623 in RTPStream::SendRTCPSR (this=0x83a1520, inTime=@0x1b9a5b58,
    inAppendBye=0) at RTCPUtilitiesLib/RTCPSRPacket.h:123
#1  0x08067d40 in RTPStream::Write (this=0x83a1520, inBuffer=0x839d688,
    inLen=45, outLenWritten=0x0, inFlags=Variable "inFlags" is not available.
) at Server.tproj/RTPStream.cpp:1093
#2  0x0804c47f in QTSSCallbacks::QTSS_Write (inStream=0x83a1520,
    inBuffer=0x839d688, inLen=45, outLenWritten=0x0, inFlags=5)
    at Server.tproj/QTSSCallbacks.cpp:343
#3  0x080a28b6 in QTSSFileModuleDispatch (inRole=1936027236,
    inParamBlock=0xb75e6360)
    at APIModules/QTSSFileModule/QTSSFileModule.cpp:1569
#4  0x080608ed in RTPSession::Run (this=0x83945b0)
    at Server.tproj/QTSSModule.h:92
#5  0x080eb1c3 in TaskThread::Entry (this=0x8361258) at Task.cpp:179
#6  0x080e82af in OSThread::_Entry (inThread=0x8361258) at OSThread.cpp:254
#7  0x00106341 in start_thread () from /lib/tls/libpthread.so.0
#8  0x00c966fe in clone () from /lib/tls/libc.so.6


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