[Live-devel] openRTSP crash with -P

Martijn van den Broek mjbroek at gmail.com
Tue Mar 25 00:46:37 PDT 2014


Hi Ross,

Thanks for looking into this. I recompilled with linux-gdb enabled, see
output below.


martijn at shuttle:~/src/live$ gdb /home/martijn/src/live/testProgs/openRTSP
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
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://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from
/mnt/stuff/home/martijn/src/live/testProgs/openRTSP...done.
(gdb) run -P 10 -4 -v -b 1000000 -w 1280 -h 960 -f 10 rtsp://
cam:cam at 192.168.16.31:88/videoMain
Starting program: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP -P 10
-4 -v -b 1000000 -w 1280 -h 960 -f 10 rtsp://
cam:cam at 192.168.16.31:88/videoMain
Opening connection to 192.168.16.31, port 88...
...remote connection opened
Sending request: OPTIONS rtsp://cam:cam@192.168.16.31:88/videoMain RTSP/1.0
CSeq: 2
User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555
Streaming Media v2014.03.18)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Mar 25 2014 07:44:55 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER,
SET_PARAMETER


Sending request: DESCRIBE rtsp://cam:cam@192.168.16.31:88/videoMain RTSP/1.0
CSeq: 3
User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555
Streaming Media v2014.03.18)
Accept: application/sdp


Received 175 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 401 Unauthorized
CSeq: 3
Date: Tue, Mar 25 2014 07:44:55 GMT
WWW-Authenticate: Digest realm="LIVE555 Streaming Media",
nonce="924155ed4db06741a59cfef0502d2e92"


Resending...
Sending request: DESCRIBE rtsp://cam:cam@192.168.16.31:88/videoMain RTSP/1.0
CSeq: 4
Authorization: Digest username="cam", realm="LIVE555 Streaming Media",
nonce="924155ed4db06741a59cfef0502d2e92", uri="rtsp://
cam:cam at 192.168.16.31:88/videoMain",
response="93b6d7c0469c38629f2c27981416f72c"
User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555
Streaming Media v2014.03.18)
Accept: application/sdp


Received 670 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 4
Date: Tue, Mar 25 2014 07:44:55 GMT
Content-Base: rtsp://192.168.16.31:65534/videoMain/
Content-Type: application/sdp
Content-Length: 500

v=0
o=- 1395662349946269 1 IN IP4 192.168.1.233
s=IP Camera Video
i=videoMain
t=0 0
a=tool:LIVE555 Streaming Media v2013.01.25
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:IP Camera Video
a=x-qt-text-inf:videoMain
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:96
a=rtpmap:96 H264/90000
a=fmtp:96
packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
b=AS:64
a=control:track2

Opened URL "rtsp://cam:cam@192.168.16.31:88/videoMain", returning a SDP
description:
v=0
o=- 1395662349946269 1 IN IP4 192.168.1.233
s=IP Camera Video
i=videoMain
t=0 0
a=tool:LIVE555 Streaming Media v2013.01.25
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:IP Camera Video
a=x-qt-text-inf:videoMain
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:96
a=rtpmap:96 H264/90000
a=fmtp:96
packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
b=AS:64
a=control:track2

Created receiver for "video/H264" subsession (client ports 41802-41803)
Ignoring "audio/PCMU" subsession, because we've asked to receive a single
video session only
Sending request: SETUP rtsp://192.168.16.31:65534/videoMain/track1 RTSP/1.0
CSeq: 5
Authorization: Digest username="cam", realm="LIVE555 Streaming Media",
nonce="924155ed4db06741a59cfef0502d2e92", uri="rtsp://
192.168.16.31:65534/videoMain/", response="eff5eb22bfd82a5ef46a49ce014fbe68"
User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555
Streaming Media v2014.03.18)
Transport: RTP/AVP;unicast;client_port=41802-41803


Received 205 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 5
Date: Tue, Mar 25 2014 07:44:55 GMT
Transport:
RTP/AVP;unicast;destination=192.168.16.22;source=192.168.16.31;client_port=41802-41803;server_port=6970-6971
Session: B742999A


Setup "video/H264" subsession (client ports 41802-41803)
Outputting to the file: "output-00000-00010.mp4"
Sending request: PLAY rtsp://192.168.16.31:65534/videoMain/ RTSP/1.0
CSeq: 6
Authorization: Digest username="cam", realm="LIVE555 Streaming Media",
nonce="924155ed4db06741a59cfef0502d2e92", uri="rtsp://
192.168.16.31:65534/videoMain/", response="34bef512edcddeadc328c20b0d95fb14"
User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555
Streaming Media v2014.03.18)
Session: B742999A
Range: npt=0.000-


Received 255 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 6
Date: Tue, Mar 25 2014 07:44:55 GMT
Range: npt=0.000-
Session: B742999A
RTP-Info: url=rtsp://
192.168.16.31:65534/videoMain/track1;seq=18320;rtptime=3117251154,url=rtsp://192.168.16.31:65534/videoMain/track2;seq=0;rtptime=0


Started playing session
Receiving streamed data (signal with "kill -HUP 20696" or "kill -USR1
20696" to terminate)...

Program received signal SIGSEGV, Segmentation fault.
FramedSource::stopGettingFrames (this=0x0) at FramedSource.cpp:108
108       fIsCurrentlyAwaitingData = False; // indicates that we can be
read again
(gdb) bt
#0  FramedSource::stopGettingFrames (this=0x0) at FramedSource.cpp:108
#1  0x00000000004222cf in QuickTimeFileSink::~QuickTimeFileSink
(this=0x67daf0, __in_chrg=<optimized out>) at QuickTimeFileSink.cpp:321
#2  0x0000000000422349 in QuickTimeFileSink::~QuickTimeFileSink
(this=0x67daf0, __in_chrg=<optimized out>) at QuickTimeFileSink.cpp:333
#3  0x0000000000405427 in MediaLookupTable::remove (this=0x671a30,
name=<optimized out>) at Media.cpp:151
#4  0x000000000040551a in Medium::close (env=..., name=0x67db00
"liveMedia4") at Media.cpp:53
#5  0x0000000000405532 in Medium::close (medium=<optimized out>) at
Media.cpp:59
#6  0x00000000004021b1 in closeMediaSinks () at playCommon.cpp:1053
#7  0x0000000000403a0e in periodicFileOutputTimerHandler () at
playCommon.cpp:1126
#8  0x0000000000443e7b in AlarmHandler::handleTimeout (this=0x67e7d0) at
BasicTaskScheduler0.cpp:34
#9  0x0000000000442d9c in DelayQueue::handleAlarm (this=0x671018) at
DelayQueue.cpp:187
#10 0x0000000000442813 in BasicTaskScheduler::SingleStep (this=0x671010,
maxDelayTime=<optimized out>) at BasicTaskScheduler.cpp:204
#11 0x0000000000443925 in BasicTaskScheduler0::doEventLoop (this=0x671010,
watchVariable=0x0) at BasicTaskScheduler0.cpp:80
#12 0x0000000000405182 in main (argc=<optimized out>, argv=<optimized out>)
at playCommon.cpp:609



On Mon, Mar 24, 2014 at 9:40 PM, Ross Finlayson <finlayson at live555.com>wrote:

> Any idea what goes wrong?
>
>
> Unfortunately not, because I wasn't able to reproduce this crash.  Please
> recompile everything with "-g" (by doing: "make clean; genMakefiles
> linux-gdb; make"), and rerun gdb, so we can see a more detailed stack trace.
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>


-- 
Martijn van den Broek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140325/3de74bdc/attachment.html>


More information about the live-devel mailing list