[Live-devel] RTSP Server crash on TEARDOWN

David J Myers david.myers at panogenics.com
Fri Jun 24 02:27:14 PDT 2011


Hi,

I've been trying to get my RTSP server working, getting desperate now. It's
a unicast live server for embedding in my IP camera. It's based on
sub-classing the FramedSource class and it uses a Linux pipe to get the
frames into the streams from the application thread. The camera is pretty
ambitious in that it can generate up to 14 different simultaneous video
streams, so I have this many streams and substreams added but not always
active or being viewed.

 

The server is basically working and I can connect via a client such as VLC.
However, when I click on Stop in the client, which sends a TEARDOWN command,
my server crashed with a SIGPIPE error. I've built my app with a debug
version of Live555 and managed to get the following debug trace. However on
SIGPIPE, Eclipse (my IDE) can't give me a stack trace. It looks like the
crash is somewhere in RTPInterface.cpp, sendRTPOverTCP. Maybe the socket has
been closed under my feet.

 

Anyway, here's the debug trace, thanks in advance for any advice.

 

DavidJ

 

sendRTPOverTCP: 1448 bytes over channel 0 (socket 35)

sendRTPOverTCP: completed

sendRTPOverTCP: 1096 bytes over channel 0 (socket 35)

sendRTPOverTCP: completed

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:T

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:E

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:A

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:R

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:D

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:O

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:W

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:N

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:r

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:t

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:s

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:p

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes::

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:/

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:/

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:0

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:2

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:6

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:7

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:2

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes::

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:8

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:4

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:/

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:s

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:t

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:r

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:a

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:m

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:/

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:R

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:T

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:S

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:P

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:/

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:0

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:

 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:C

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:S

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:q

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes::

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:6

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:

 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:U

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:s

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:r

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:-

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:A

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:g

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:n

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:t

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes::

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:L

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:i

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:b

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:V

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:L

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:C

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:/

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:0

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:(

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:L

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:I

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:V

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:E

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:S

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:t

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:r

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:a

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:m

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:i

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:n

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:g

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:M

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:d

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:i

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:a

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:v

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:2

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:0

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:1

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:0

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:.

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:2

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:)

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:

 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:S

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:e

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:s

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:s

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:i

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:o

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:n

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes::

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes: 

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:5

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:C

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:8

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:C

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:0

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:E

Liveness indication from client at 10.26.7.81

RTSPClientSession[0x104ca0]::handleRequestBytes() read 1 new bytes:D

sendRTPOverTCP: 1448 bytes over channel 0 (socket 35)

sendRTPOverTCP: completed

sendRTPOverTCP: 1448 bytes over channel 0 (socket 35)

*******SIGPIPE happens here******************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110624/16eac11b/attachment-0001.html>


More information about the live-devel mailing list