[Live-devel] Crash in TaskScheduler

Krishnaraj Bhat krishnaraj.bhat at manipal.net
Tue Aug 21 05:33:58 PDT 2018


Hi,

We are using Live555 RTSP code in our application. We have written a 
wrapper called RTSPInterface to setup streams and run RTSP server which 
runs in a separate thread. The reason we created separate thread 
because, other part of the application which does several tasks in 
addition to fetching frames to give it to RTSP server via triggerEvent() 
approach. We can successfully stream dual streams(HEVC and H.264) using 
Live555 RTSP streamer in TCP mode. The application runs continuously for 
about 5 and half hours and then crashes with below signature. Could 
anyone please suggest me what could be going wrong ? I ran several times 
and each time it crashes after about 5 and half hours.


Program terminated with signal 11, Segmentation fault.
#0  0x0088a5cc in UsageEnvironment::taskScheduler (this=0x0)
     at 
../../src/rtsp/live555/UsageEnvironment/include/UsageEnvironment.hh:59
59      TaskScheduler& taskScheduler() const {return fScheduler;}
(gdb) bt full
#0  0x0088a5cc in UsageEnvironment::taskScheduler (this=0x0)
     at 
../../src/rtsp/live555/UsageEnvironment/include/UsageEnvironment.hh:59
No locals.
#1  0x008df634 in 
RTSPServer::RTSPClientConnection::handleAlternativeRequestByte1 
(this=0x1c357b8, requestByte=254 '\376')
     at ../../src/rtsp/live555/liveMedia/RTSPServer.cpp:698
No locals.
#2  0x008df5c4 in 
RTSPServer::RTSPClientConnection::handleAlternativeRequestByte 
(instance=0x1c357b8, requestByte=254 '\376')
     at ../../src/rtsp/live555/liveMedia/RTSPServer.cpp:686
         connection = 0x1c357b8
#3  0x008cee9c in SocketDescriptor::~SocketDescriptor (this=0x1c2dae8,
     __in_chrg=<optimized out>)
     at ../../src/rtsp/live555/liveMedia/RTPInterface.cpp:520
         specialChar = 254 '\376'
#4  0x008ceedc in SocketDescriptor::~SocketDescriptor (this=0x1c2dae8,
     __in_chrg=<optimized out>)
     at ../../src/rtsp/live555/liveMedia/RTPInterface.cpp:522
No locals.
#5  0x008cf190 in SocketDescriptor::tcpReadHandler (
     socketDescriptor=0x1c2dae8, mask=2)
     at ../../src/rtsp/live555/liveMedia/RTPInterface.cpp:572
         count = 1978
#6  0x00881260 in BasicTaskScheduler::SingleStep (this=0x1c29170,
     maxDelayTime=0)
     at 
../../src/rtsp/live555/BasicUsageEnvironment/BasicTaskScheduler.cpp:153
         sock = 22
         resultConditionSet = 2
         timeToDelay = @0xa0d3ec: {<Timeval> = {fTv = {tv_sec = 0,
               tv_usec = 0}}, <No data fields>}
         tv_timeToDelay = {tv_sec = 0, tv_usec = 0}
         MAX_TV_SEC = 1000000
         iter = {
           _vptr.HandlerIterator = 0x940410 <vtable for HandlerIterator+8>,
           fOurSet = @0x1c29438, fNextPtr = 0x1c29a28}
         readSet = {fds_bits = {4194304, 0 <repeats 31 times>}}
         writeSet = {fds_bits = {0 <repeats 32 times>}}
         exceptionSet = {fds_bits = {0 <repeats 32 times>}}
         selectResult = 1
         handler = 0x1c34990
#7  0x00882274 in BasicTaskScheduler0::doEventLoop (this=0x1c29170,
     watchVariable=0x1c29150 "")
     at 
../../src/rtsp/live555/BasicUsageEnvironment/BasicTaskScheduler0.cpp:84
No locals.
#8  0x008f1f6c in RTSPServerIface::ThreadFunction (this=0x1c29130)
     at ../../src/rtsp/RTSPServerIface.cpp:109
No locals.
#9  0x008f1900 in RTSPServerIface::TheadFunction_wrapper (object=0x1c29130)
     at ../../src/rtsp/RTSPServerIface.h:42
No locals.


Regards,
Krishnaraj


More information about the live-devel mailing list