<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>I have been using the live555 media library for streaming
H.264 encoded data stream, on an ARM based embedded linux platform. It is
working for the most part, except for Stopping the stream, at which point I get
the following glibc error:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>~H264FUAFragmenter()<o:p></o:p></p>

<p class=MsoNormal>fInputBuffer = 0xfcbb0<o:p></o:p></p>

<p class=MsoNormal>*** glibc detected *** ./cap_encode_omap3530.x470MV: double
free or corruption (<o:p></o:p></p>

<p class=MsoNormal>!prev): 0x000fcbb0 ***<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I have traced this down to the H264FUAFragmenter
destruction.&nbsp; The two line just prior to the glibc error are my debug
printf&#8217;s.&nbsp; If I comment out the <o:p></o:p></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Courier New"'>delete</span></b><span
style='font-size:10.0pt;font-family:"Courier New"'>[] fInputBuffer;<span
style='color:black'><o:p></o:p></span></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'>It works better
the first time, but then eventually crashes subsequently.&nbsp; I&#8217;m
guessing by removing the delete I end up with a memory leak and then eventually
run out of memory.&nbsp; I also put check for NULL on the fInputBuffer pointer,
but as you can see from the printf the pointer is not NULL but still throws the
memory error.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'>Has anyone seen
this kind of error?&nbsp; Does anyone have any suggestions for troubleshooting
this further?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'>Thanks for your
help.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;color:black'>Simon</span><span
style='font-size:12.0pt'><o:p></o:p></span></p>

</div>

</body>

</html>