<div dir="ltr"><div dir="ltr">On Mon, Jan 18, 2021 at 7:00 AM Killian Matter <<a href="mailto:matter.killian@gmail.com">matter.killian@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, i'm working on a module, it has struct that is malloc and free ( a function used in the dialplan to clean everything up). The problem is that after the clean up a "wild" audiohook update occurs and after that a custom function from my module is executed and get an seg fault.<div><br></div><div>it look like a sync problem but is it even possible ? (e didn't ever see a sync prob in C language)</div></div></blockquote><div><br></div><div>It is entirely possible for something to be used after it is freed, if care is not taken to ensure it remains valid. Unfortunately there's not really enough information to be able to answer further with any certainty as to what is going on.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><div><font color="#073763">Joshua C. Colp</font></div><div><font color="#073763">Asterisk Technical Lead</font></div><div><font color="#073763">Sangoma Technologies</font></div><div><font color="#073763">Check us out at <a href="http://www.sangoma.com/" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org/" target="_blank">www.asterisk.org</a></font></div></div></div></div></div></div></div></div></div></div></div></div>