[sr-dev] [kamailio/kamailio] http_async_client module crashing kamailio v5.5 on startup (macos 12) (Issue #2999)

Daniel-Constantin Mierla notifications at github.com
Mon Jan 10 18:44:01 CET 2022


It seems to be failure of the libevent function event_base_dispatch(), which also logs `[warn] kevent: Bad file descriptor`:

```
 6(38960) DEBUG: http_async_client [hm_hash.c:59]: init_http_m_table(): hash table 0x10f7f82a8 initialized with size 2048
[warn] kevent: Bad file descriptor
 6(38960) ERROR: http_async_client [async_http.c:97]: async_http_run_worker(): event base dispatch failed - ret: -1 (errno: 9 - Bad file descriptor)
```

The above logs are from current master, as I pushed a commit to http_async_client module to exit the worker process (and thus shutdown kamailio) in the case of this failure.

Could be something that changed in the new MacOS 12 kqueue implementation. I am not familiar with libevent, maybe @grumvalski or someone else can comment or analyse further.

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

Message ID: <kamailio/kamailio/issues/2999/1009170555 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220110/b22363b9/attachment-0001.htm>


More information about the sr-dev mailing list