[sr-dev] [kamailio/kamailio] KEMI Fatal Python error: failed releasing import lock after fork (Issue #3125)

Daniel-Constantin Mierla notifications at github.com
Fri Jun 10 13:29:43 CEST 2022


@aalba6675: thanks for taking care of it! Rank>0 means that it is a SIP worker process (one that handles incoming sip traffic), but kamailio config parts can be executed with SIP messages by other processes, for example the main timer process does the retransmission and may execute a `failure_route` block.

I would not worry about no-fork mode, that is not fully functional anyhow (e.g., not tcp support) and not sure if anyone still tests with that mode.

If the function has to be executed in children processes, then the ranks PROC_MAIN, PROC_INIT and PROC_POSTCHILDINIT have to be skipped -- some details about ranks in the code at:

  * https://github.com/kamailio/kamailio/blob/c37ccdc6e3bad0af4644941a872f510c51936c58/src/core/sr_module.h#L144

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3125#issuecomment-1152262315
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3125/1152262315 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220610/5b8bac93/attachment.htm>


More information about the sr-dev mailing list