[Live-devel] segmentation fault (core dumped)

Aranganathan Sankaradoss arang1978 at gmail.com
Mon Sep 6 02:26:04 PDT 2010


hello Sir,

       I am desperately in need of your help.


I am using openRTSP source code. If I call the main function again then I
get the following error "Segmentation fault (core dumped)"

My aim for calling the main ( ) function again is that after RTSP server
reset, openRTSP must keep trying to connect with RTSP server again.

In sessionAfterPlaying ( ) function, instead of calling exit ( ) function, I
call main ( ) again.
To call main ( ), I just copied the main ( ) into a new function named
RTSP_main () and I am just calling RTSP_main ( ) in place of exit ( ).


*Log file is as follows*

[arang at arang testProgs]$ ./openRTSP -d 2 -t rtsp://
211.214.160.198/liverepeater/camera.stream
Opening connection to 211.214.160.198, port 554...
...remote connection opened
Sending request: OPTIONS
rtsp://211.214.160.198/liverepeater/camera.streamRTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)


Received 202 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
Supported: play.basic, con.persistent
Cseq: 2
Server: Wowza Media Server 2.1.2 build24878
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD,
GET_PARAMETER


Sending request: DESCRIBE
rtsp://211.214.160.198/liverepeater/camera.streamRTSP/1.0
CSeq: 3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)
Accept: application/sdp


Received 510 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
Content-Base: rtsp://211.214.160.198/liverepeater/camera.stream/
Date: 월, 6 9월 2010 17:20:47 KST
Content-Length: 211
Session: 582904228;timeout=60
Expires: 월, 6 9월 2010 17:20:47 KST
Cseq: 3
Content-Type: application/sdp
Server: Wowza Media Server 2.1.2 build24878

v=0
o=- 582904228 582904228 IN IP4 127.0.0.1
s=WowzaMediaServer
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
a=range:npt=now-
a=control:*
m=video 0 RTP/AVP 98
a=rtpmap:98 MP2T/90000
a=control:mpegts-transport

Opened URL "rtsp://211.214.160.198/liverepeater/camera.stream", returning a
SDP description:
v=0
o=- 582904228 582904228 IN IP4 127.0.0.1
s=WowzaMediaServer
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
a=range:npt=now-
a=control:*
m=video 0 RTP/AVP 98
a=rtpmap:98 MP2T/90000
a=control:mpegts-transport

Created receiver for "video/MP2T" subsession (client ports 55154-55155)
Sending request: SETUP rtsp://
211.214.160.198/liverepeater/camera.stream/mpegts-transport RTSP/1.0
CSeq: 4
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


Received 229 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
Date: 월, 6 9월 2010 17:20:47 KST
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Session: 582904228;timeout=60
Expires: 월, 6 9월 2010 17:20:47 KST
Cseq: 4
Server: Wowza Media Server 2.1.2 build24878


Setup "video/MP2T" subsession (client ports 55154-55155)
Created output file: "video-MP2T-1"
Sending request: PLAY rtsp://211.214.160.198/liverepeater/camera.stream/RTSP/1.0
CSeq: 5
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)
Session: 582904228
Range: npt=0.000-2.000


Received a complete PLAY response:
RTSP/1.0 200 OK
Range: npt=now-
Session: 582904228;timeout=60
Cseq: 5
Server: Wowza Media Server 2.1.2 build24878


Started playing session
Receiving streamed data (for up to 2.000000 seconds)...
Sending request: TEARDOWN
rtsp://211.214.160.198/liverepeater/camera.stream/RTSP/1.0
CSeq: 6
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)
Session: 582904228




Opening connection to 211.214.160.198, port 554...
...remote connection opened
Sending request: OPTIONS
rtsp://211.214.160.198/liverepeater/camera.streamRTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)


Received 202 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
Supported: play.basic, con.persistent
Cseq: 2
Server: Wowza Media Server 2.1.2 build24878
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD,
GET_PARAMETER


Sending request: DESCRIBE
rtsp://211.214.160.198/liverepeater/camera.streamRTSP/1.0
CSeq: 3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)
Accept: application/sdp


Received 513 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
Content-Base: rtsp://211.214.160.198/liverepeater/camera.stream/
Date: 월, 6 9월 2010 17:20:49 KST
Content-Length: 213
Session: 1483665234;timeout=60
Expires: 월, 6 9월 2010 17:20:49 KST
Cseq: 3
Content-Type: application/sdp
Server: Wowza Media Server 2.1.2 build24878

v=0
o=- 1483665234 1483665234 IN IP4 127.0.0.1
s=WowzaMediaServer
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
a=range:npt=now-
a=control:*
m=video 0 RTP/AVP 98
a=rtpmap:98 MP2T/90000
a=control:mpegts-transport

Opened URL "rtsp://211.214.160.198/liverepeater/camera.stream", returning a
SDP description:
v=0
o=- 1483665234 1483665234 IN IP4 127.0.0.1
s=WowzaMediaServer
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
a=range:npt=now-
a=control:*
m=video 0 RTP/AVP 98
a=rtpmap:98 MP2T/90000
a=control:mpegts-transport

Created receiver for "video/MP2T" subsession (client ports 39568-39569)
Segmentation fault (core dumped)
[arang at arang testProgs]$



Regards,
Arang.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100906/28160317/attachment-0001.html>


More information about the live-devel mailing list