[SR-Users] Core dumps/crash handlers

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 9 09:35:05 CET 2021


Hello,

the core dump should be written no matter the parent process catches the
child signals.

You have to be sure that the process can write the core file, either by
having a sufficient limit or the user that runs the process has enough
privileges (e.g., run as root).

Cheers,
Daniel

On 07.03.21 19:37, Alex Balashov wrote:
> For memory bugs like this ...
>
> [mem/f_malloc.c:599]: fm_free(): BUG: fm_free: bad pointer 0x1 (out of
> memory block!), called from tm: h_table.c: free_cell_helper(185) -
> aborting
>
> ... I'd love to see a core dump, but unfortunately the SIGCHLD from
> the SIGABRT-terminated child is intercepted and leads to a graceful
> shutdown:
>
> [main.c:743]: handle_sigs(): child process 16037 exited by a signal 6
>
> Is there any way Kamailio can be set to dump core when this happens?
>
> -- 
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla




More information about the sr-users mailing list