[Live-devel] openRTSP segfault on max osx

Ross Finlayson finlayson at live555.com
Mon Jun 21 23:21:53 PDT 2010


>running openRTSP -q -w 704 -h 576 
>rtsp://192.168.0.101/axis-media/media.amp >test.mov  &
>and sending kill -HUP sometimes ends with a segfault. This is with 
>live555 2010.06.18 but I didn't see this with 2010.04.09

Aha!  You've found a bug in the "openRTSP" code.  We're closing the 
output file(s) too soon.  (This bug turned out to be a problem only 
with the new "RTSPClient" implementation, because - in this new 
implementation - we go to the event loop (potentially handling 
incoming RTP data) while awaiting the response to the RTSP "TEARDOWN" 
command.)

Please try the following, which should fix this problem:

In "testProgs/playCommon.cpp", line 1104, move the statement
	closeMediaSinks();
down 5 lines, so that it now takes place after
	Medium::close(session);
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list