[Live-devel] New version of the "LIVE555 Streaming Media" code - restructures the "RTPServer" class

BENNE Christophe christophe.benne at thalesgroup.com
Wed Jun 24 02:38:27 PDT 2015


Hi Ross,

I would like to report a problem since I upgraded to live 2015.06.11 and higher. I experienced crashes when releasing a RTSPServer which has client connections. It happens in the GenericMediaServer destructor, connections destructor invokes RTSPServer code but this part of the object is already destroyed, see stack below.

I was able to reproduce the problem with a slightly modified live555MediaServer (live555MediaServer.cpp patch attached) : code added to stop main loop when SIGINT is received and release RTSPServer using Media::close method. If Ctrl-C is hit while live555MediaServer is streaming a file, the crash occurs.

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/xophe/dev/picata/live-testcase/live/mediaServer/live555MediaServer...done.

warning: core file may not match specified executable file.
[New LWP 4699]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `./live555MediaServer'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
(gdb) thread apply all where

Thread 1 (LWP 4699):
#0  0x0000000000000000 in ?? ()
#1  0x00007f56460a1a1d in RTSPServer::stopTCPStreamingOnSocket (this=0x24c28e0, socketNum=6) at RTSPServer.cpp:345
#2  0x00007f56460a1aa6 in RTSPServer::RTSPClientConnection::closeSocketsRTSP (this=0x24c2cb0) at RTSPServer.cpp:706
#3  0x00007f56460a1b3d in RTSPServer::RTSPClientConnection::~RTSPClientConnection (this=0x24c2cb0, __in_chrg=<optimized out>) at RTSPServer.cpp:383
#4  0x00007f56460a9ce9 in RTSPServerSupportingHTTPStreaming::RTSPClientConnectionSupportingHTTPStreaming::~RTSPClientConnectionSupportingHTTPStreaming (this=0x24c2cb0, __in_chrg=<optimized out>)
    at RTSPServerSupportingHTTPStreaming.cpp:61
#5  0x00007f564609d369 in GenericMediaServer::~GenericMediaServer (this=0x24c28e0, __in_chrg=<optimized out>) at GenericMediaServer.cpp:115
#6  0x0000000000402b49 in DynamicRTSPServer::~DynamicRTSPServer (this=0x24c28e0, __in_chrg=<optimized out>) at DynamicRTSPServer.cpp:42
#7  0x0000000000402886 in main (argc=<optimized out>, argv=<optimized out>) at live555MediaServer.cpp:113
(gdb)


Best regards.

Christophe BENNE


// --

Christophe BENNE

Thales Communication & Security
20-22 rue Grange Dame Rose
CS 90519
78141 VELIZY Cedex
FRANCE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150624/f75267a5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: live555MediaServer.cpp.patch
Type: application/octet-stream
Size: 1454 bytes
Desc: live555MediaServer.cpp.patch
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150624/f75267a5/attachment.obj>


More information about the live-devel mailing list