[SR-Users] app_python3 crash woes

Alex Balashov abalashov at evaristesys.com
Thu Sep 22 12:31:49 CEST 2022


Hi,

Some exceptions generated in Python script cause a harmless traceback in the logs, while others cause Kamailio to crash:

Sep 22 06:28:34 proxy /usr/sbin/kamailio[3984]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 11
Sep 22 06:28:34 proxy /usr/sbin/kamailio[3957]: ALERT: <core> [main.c:783]: handle_sigs(): child process 3965 exited by a signal 11
Sep 22 06:28:34 proxy /usr/sbin/kamailio[3957]: ALERT: <core> [main.c:786]: handle_sigs(): core was generated

(gdb) where
#0  0x00007fdaea729079 in vfprintf () from /lib64/libc.so.6
#1  0x00007fdaea754179 in vsnprintf () from /lib64/libc.so.6
#2  0x00007fdac45e9afd in make_message () from /usr/lib64/kamailio/modules/app_python3.so
#3  0x00007fdac45e5bc9 in python_handle_exception ()
   from /usr/lib64/kamailio/modules/app_python3.so
#4  0x00007fdac45ebfde in apy_exec () from /usr/lib64/kamailio/modules/app_python3.so
#5  0x00007fdac45ecef1 in python_exec2 () from /usr/lib64/kamailio/modules/app_python3.so
#6  0x0000000000474ee0 in do_action ()
#7  0x000000000048217d in run_actions ()
#8  0x0000000000474d39 in do_action ()
#9  0x000000000048217d in run_actions ()
#10 0x0000000000474d39 in do_action ()
#11 0x000000000048217d in run_actions ()
#12 0x0000000000474d87 in do_action ()
#13 0x000000000048217d in run_actions ()
#14 0x00000000004828c1 in run_top_route ()
#15 0x00000000005e8044 in receive_msg ()
#16 0x00000000004df772 in udp_rcv_loop ()
#17 0x0000000000429f5b in main_loop ()
#18 0x000000000043423e in main ()

Is there a reasonable way to try to prevent this type of mid-air explosion? 

— Alex

-- 
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/




More information about the sr-users mailing list