Re: [Live-devel] openRTSP segfault on max osx

2010-06-22 Thread Ross Finlayson
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/
___
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel


Re: [Live-devel] openRTSP segfault on max osx

2010-06-22 Thread Ross Finlayson

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);


It turns out that I didn't have this quite right.  The correct 
sequence of statements - starting at line 1104 - should be:


tearDownStreams();
closeMediaSinks();
Medium::close(session);

I have now installed a new version (2010.06.22) of the code that 
fixes this bug (as well as Sebastien Escudier's latest RTSPClient 
bug).

--

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
___
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel


Re: [Live-devel] openRTSP segfault on max osx

2010-06-22 Thread Kenneth Ljungh
22 jun 2010 kl. 11.26 skrev Ross Finlayson:

 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);
 
 It turns out that I didn't have this quite right.  The correct sequence of 
 statements - starting at line 1104 - should be:
 
   tearDownStreams();
   closeMediaSinks();
   Medium::close(session);
 
 I have now installed a new version (2010.06.22) of the code that fixes this 
 bug (as well as Sebastien Escudier's latest RTSPClient bug).
 -- 
 
 Ross Finlayson
 Live Networks, Inc.
 http://www.live555.com/
 ___
 live-devel mailing list
 live-devel@lists.live555.com
 http://lists.live555.com/mailman/listinfo/live-devel

Works perfectly. Thanks for your quick fix and effort, it's great software.

Kenneth


___
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel


[Live-devel] openRTSP segfault on max osx

2010-06-21 Thread Kenneth Ljungh
Hi

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

Regards

Kenneth

crash log:

Code Type:   X86-64 (Native)
Parent Process:  bash [17661]

Date/Time:   2010-06-21 20:55:29.059 +0200
OS Version:  Mac OS X 10.6.4 (10F569)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib   0x7fe00800 __memcpy + 96
1   libSystem.B.dylib   0x7fff846e51ae __sfvwrite + 429
2   libSystem.B.dylib   0x7fff84736579 fwrite + 128
3   openRTSP0x00010002253f 
SubsessionIOState::useFrame(SubsessionBuffer) + 529
4   openRTSP0x000100022f4a 
SubsessionIOState::afterGettingFrame(unsigned int, timeval) + 512
5   openRTSP0x000100022fd9 
QuickTimeFileSink::afterGettingFrame(void*, unsigned int, unsigned int, 
timeval, unsigned int) + 75
6   openRTSP0x00014ab7 
FramedSource::afterGetting(FramedSource*) + 59
7   openRTSP0x0001e056 
MultiFramedRTPSource::doGetNextFrame1() + 532
8   openRTSP0x0001e34c 
MultiFramedRTPSource::networkReadHandler(MultiFramedRTPSource*, int) + 670
9   openRTSP0x00010002b8a8 
BasicTaskScheduler::SingleStep(unsigned int) + 666
10  openRTSP0x00010002acd8 
BasicTaskScheduler0::doEventLoop(char*) + 38
11  openRTSP0x000100018630 
RTSPClient::teardownMediaSession(MediaSession) + 68
12  openRTSP0x000116e6 
clientTearDownSession(Medium*, MediaSession*) + 26
13  openRTSP0x00012428 tearDownStreams() + 
28
14  openRTSP0x000124b4 shutdown(int) + 138
15  openRTSP0x000124f5 
signalHandlerShutdown(int) + 34
16  libSystem.B.dylib   0x7fff8473335a _sigtramp + 26
17  libSystem.B.dylib   0x7fff84716dce select$DARWIN_EXTSN 
+ 10
18  openRTSP0x00010002b708 
BasicTaskScheduler::SingleStep(unsigned int) + 250
19  openRTSP0x00010002acd8 
BasicTaskScheduler0::doEventLoop(char*) + 38
20  openRTSP0x00014344 main + 5841
21  openRTSP0x000116c4 start + 52



___
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel