[Live-devel] sigsegv when closing RTSPServer whilst streaming

Piers Hawksley - Panogenics piers.hawksley at panogenics.com
Wed Jul 10 05:54:09 PDT 2013


Thanks Ross,

The stack trace is below.

This crash occurs when closing the application whilst it is streaming. 
It does not occur when closing the application if streaming is stopped 
first.

It only occurs when streaming RTP over TCP; it doesn't occur when 
streaming RTP over UDP.

Please let me know if you need further debug.

Best Regards,

Piers

Thread [2] (Suspended: Signal 'SIGSEGV' received. Description: 
Segmentation fault.)
     18 
RTSPServer::RTSPClientConnection::handleAlternativeRequestByte1() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:761 0x000ce974
     17 RTSPServer::RTSPClientConnection::handleAlternativeRequestByte() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:751 0x000cea48
     16 SocketDescriptor::~SocketDescriptor() 
/mnt/hgfs/workspaces/live555/liveMedia/RTPInterface.cpp:356 0x000c353c
     15 SocketDescriptor::deregisterRTPInterface() 
/mnt/hgfs/workspaces/live555/liveMedia/RTPInterface.cpp:416 0x000c1e1c
     14 deregisterSocket() 
/mnt/hgfs/workspaces/live555/liveMedia/RTPInterface.cpp:163 0x000c32ec
     13 RTPInterface::removeStreamSocket() 
/mnt/hgfs/workspaces/live555/liveMedia/RTPInterface.cpp:175 0x000c340c
     12 RTCPInstance::removeStreamSocket() 
/mnt/hgfs/workspaces/live555/liveMedia/include/RTCP.hh:90 0x000d9060
     11 StreamState::endPlaying() 
/mnt/hgfs/workspaces/live555/liveMedia/OnDemandServerMediaSubsession.cpp:502 
0x000d73fc
     10 OnDemandServerMediaSubsession::deleteStream() 
/mnt/hgfs/workspaces/live555/liveMedia/OnDemandServerMediaSubsession.cpp:304 
0x000d799c
     9 RTSPServer::RTSPClientSession::reclaimStreamStates() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:1294 0x000c91a8
     8 RTSPServer::RTSPClientSession::~RTSPClientSession() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:1279 0x000d18b8
     7 RTSPServer::~RTSPServer() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:328 0x000d1e10
     6 MediaLookupTable::remove() 
/mnt/hgfs/workspaces/live555/liveMedia/Media.cpp:151 0x000b0a50
     5 Medium::close() 
/mnt/hgfs/workspaces/live555/liveMedia/Media.cpp:53 0x000b0b14
     4 Medium::close() 
/mnt/hgfs/workspaces/live555/liveMedia/Media.cpp:59 0x000b0b5c
     3 event_thread() 
/mnt/hgfs/workspaces/PanoServer/Branches/JPEGoverRTSP/src/RTSPWrapper.cpp:868 
0x0007b268
     2 <symbol is not available> 0x40435890
     1 <symbol is not available> 0x40435890


Once we've seen the head of the stack trace as follows:
     19 RTSPServer::RTSPClientSession::handleCmd_PLAY() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:1749 0x000cfeec
     18 
RTSPServer::RTSPClientConnection::handleAlternativeRequestByte1() 
/mnt/hgfs/workspaces/live555/liveMedia/RTSPServer.cpp:761 0x000ce99c



More information about the live-devel mailing list