[Live-devel] Another segmentation fault in latest live555

Denis Charmet dcharmet at uniways.fr
Tue Jun 15 04:51:53 PDT 2010


Hi again,

I think the line 1079 in RTSPClient.cpp is also missing some parenthesis:

while (resultLen > 0 && resultValueString[resultLen-1] == '\r' || 
resultValueString[resultLen-1] == '\n' ) --resultLen;

to

while (resultLen > 0 && ( resultValueString[resultLen-1] == '\r' || 
resultValueString[resultLen-1] == '\n') ) --resultLen;

Here is the backtrace:

1079    RTSPClient.cpp: No such file or directory.
    in RTSPClient.cpp
Current language:  auto; currently c++
(gdb) bt
#0  0x00007f8faf9a117e in RTSPClient::handleGET_PARAMETERResponse 
(this=<value optimized out>,-
    parameterName=<value optimized out>, resultValueString=@0x4158acb8) 
at RTSPClient.cpp:1079
#1  0x00007f8faf9a4604 in RTSPClient::handleResponseBytes (this=0x1872740,-
    newBytesRead=<value optimized out>) at RTSPClient.cpp:1492
#2  0x00007f8faf9a491a in RTSPClient::incomingDataHandler1 
(this=0x1872740) at RTSPClient.cpp:1287
#3  0x00007f8faf9a4929 in RTSPClient::incomingDataHandler 
(instance=0x1872a2f) at RTSPClient.cpp:1280
#4  0x00007f8faf9bd807 in BasicTaskScheduler::SingleStep (this=0x186eef0,-
    maxDelayTime=<value optimized out>) at BasicTaskScheduler.cpp:141
#5  0x00007f8faf9beeb5 in BasicTaskScheduler0::doEventLoop (this=0x186eef0,-
    watchVariable=0x1872880 "") at BasicTaskScheduler0.cpp:76
#6  0x00007f8faf9a4b65 in RTSPClient::getMediaSessionParameter 
(this=0x1872740,-
    session=<value optimized out>, parameterName=<value optimized out>, 
parameterValue=@0x4158afa8)
    at RTSPClient.cpp:1831
#7  0x00007f8faf998406 in Demux (p_demux=0x186e4d8) at live555.cpp:1129
#8  0x00007f8fc3d5d785 in MainLoop (p_input=0x1869ce8, 
b_interactive=<value optimized out>)
    at input/demux.h:48
#9  0x00007f8fc3d602e5 in Run (p_this=<value optimized out>) at 
input/input.c:540
#10 0x00007f8fc3d97d26 in thread_entry (data=<value optimized out>) at 
misc/threads.c:58
#11 0x00007f8fc3af2fc7 in start_thread () from /lib/libpthread.so.0
#12 0x00007f8fc366459d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

(resultLen is null)

Regards,

-- 
Denis Charmet


More information about the live-devel mailing list