[asterisk-dev] Strange seg fault

Joshua C. Colp jcolp at digium.com
Mon Jan 18 05:07:47 CST 2021


On Mon, Jan 18, 2021 at 7:00 AM Killian Matter <matter.killian at gmail.com>
wrote:

> 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.
>
> it look like a sync problem but is it even possible ? (e didn't ever see a
> sync prob in C language)
>

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.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20210118/304af1e2/attachment.html>


More information about the asterisk-dev mailing list