<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Il 10/11/2010 17:50, Ross Finlayson ha scritto:
<blockquote cite="mid:f06240805c9007cfcf45d@%5B66.80.62.44%5D"
type="cite"> fprintf(stderr, "DEBUG: %d = %d - (%d + %d + %d), tbs
%d, tba %d, ods %d\n", newPacketStart,
fOutBuf->curPacketSize(), rtpHeaderSize, fSpecialHeaderSize,
frameSpecificHeaderSize(), fOutBuf->totalBufferSize(),
fOutBuf->totalBytesAvailable(),
fOutBuf->overflowDataSize());
<br>
</blockquote>
Dear Ross,<br>
What I get after crashing is:<br>
<br>
DEBUG: 1424 = 1448 - (12 + 12 + 0), tbs 1000568, tba 962228, ods
35806<br>
<br>
(I know it seems ok, but I also tried to comment out the Efficiency
Hack from the latest library, and everything works fine. When I put
it back, library crashes).<br>
As additional info, here's the traceback of the crash:<br>
<br>
*** glibc detected *** ./rtspServer: munmap_chunk(): invalid
pointer: 0x406e5008 ***<br>
======= Backtrace: =========<br>
/lib/libc.so.6[0x40231f3c]<br>
./rtspServer(_ZN15OutPacketBufferD1Ev+0x18)[0x5db3c]<br>
./rtspServer(_ZN18MultiFramedRTPSinkD2Ev+0x3c)[0x6a10c]<br>
./rtspServer(_ZN12VideoRTPSinkD2Ev+0x14)[0x6a410]<br>
./rtspServer(_ZN16JPEGVideoRTPSinkD2Ev+0x14)[0x61c0c]<br>
./rtspServer(_ZN20LiveJPEGVideoRTPSinkD0Ev+0x2c)[0x45e80]<br>
./rtspServer(_ZN16MediaLookupTable6removeEPKc+0x60)[0x47584]<br>
./rtspServer(_ZN11StreamState7reclaimEv+0x24)[0x7cfa8]<br>
./rtspServer(_ZN11StreamStateD0Ev+0x14)[0x7d2cc]<br>
./rtspServer(_ZN29OnDemandServerMediaSubsession12deleteStreamEjRPv+0x78)[0x7d8a0]<br>
./rtspServer(_ZN10RTSPServer17RTSPClientSession19reclaimStreamStatesEv+0x60)[0x6d458]<br>
./rtspServer(_ZN10RTSPServer17RTSPClientSessionD2Ev+0xbc)[0x70b8c]<br>
./rtspServer(_ZN15LimitRTSPServer22LimitRTSPClientSessionD0Ev+0x44)[0x46de8]<br>
./rtspServer(_ZN10RTSPServer17RTSPClientSession18handleRequestBytesEi+0x13c)[0x6e380]<br>
./rtspServer(_ZN10RTSPServer17RTSPClientSession23incomingRequestHandler1Ev+0x48)[0x6e7f4]<br>
./rtspServer(_ZN18BasicTaskScheduler10SingleStepEj+0x1ec)[0x8fcac]<br>
./rtspServer(_ZN19BasicTaskScheduler011doEventLoopEPc+0x20)[0x8f02c]<br>
./rtspServer(_Z8mainLoopP16UsageEnvironmentjjPc+0x614)[0x44930]<br>
./rtspServer(main+0x3c)[0x41030]<br>
/lib/libc.so.6(__libc_start_main+0x120)[0x401ddfd4]<br>
<br>
It can happen on the munmap_chunk() or wit a double dealloc, but the
crash always come in the OutPacketBuffer destructor, presumably
after a free() is made.<br>
<br>
Regards,<br>
Cristiano.<br>
<br>
<div class="moz-signature">-- <br>
<title></title>
Belloni Cristiano<br>
Imavis Srl.<br>
<a href="http://www.imavis.com">www.imavis.com</a><br>
<a href="mailto://belloni@imavis.com">belloni@imavis.com</a><br>
</div>
</body>
</html>