Hi all,
I am using Kamailio 5.7.4 on a Debian 12 machine. I used ansible to template some files, and a newline was omitted at the end of the uacreg table due to a templating issue.
This caused kamailio to crash on start up, with the error:
20(27) CRITICAL: <core> [core/pass_fd.c:281]: receive_fd(): EOF on 24
Even with debug enabled it still wasn't clear the issue was caused by the uac module. I had to do a gdb backtrace to figure it out.
Whilst the mistake was on my part, I wondered if this should be handled more cleanly?
Cheers Matthew
Hello,
it should indeed not crash. If you can reproduce it, it would be great if you can create an issue on our tracker about it. Ideally also append a small cfg and a small example dbtext file that shows the crash.
Thanks,
Henning
From: Marrold via sr-users sr-users@lists.kamailio.org Sent: Montag, 22. April 2024 19:11 To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Marrold kamailio@marrold.co.uk Subject: [SR-Users] Missing newline in dbtext tables causes crash and core dump
Hi all,
I am using Kamailio 5.7.4 on a Debian 12 machine. I used ansible to template some files, and a newline was omitted at the end of the uacreg table due to a templating issue.
This caused kamailio to crash on start up, with the error: 20(27) CRITICAL: <core> [core/pass_fd.c:281]: receive_fd(): EOF on 24
Even with debug enabled it still wasn't clear the issue was caused by the uac module. I had to do a gdb backtrace to figure it out.
Whilst the mistake was on my part, I wondered if this should be handled more cleanly?
Cheers Matthew