Another question: do we know if the handler function can be async/support coroutines internally?
— Alex > On Sep 22, 2022, at 7:20 AM, Henning Westerholt <h...@gilawa.com> wrote: > > Hi Alex, > > It probably makes sense to analyse this further in an issue report, with some > more details and/or ways how to reproduce it. > You are right, a python exception should not cause a stop of execution from > the Kamailio. > > Cheers, > > Henning > > > > -- > Henning Westerholt – https://skalatan.de/blog/ > Kamailio services – https://gilawa.com > > -----Original Message----- > From: sr-users <sr-users-boun...@lists.kamailio.org> On Behalf Of Alex > Balashov > Sent: Thursday, September 22, 2022 12:32 PM > To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> > Subject: [SR-Users] app_python3 crash woes > > 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/ > > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- 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 - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users