Hi,
there is a bug in IMC module that crashes Kamailio.
Here is the scenario: One user (pero(a)abc.hr) creates private chat room (
chat-999(a)abc.hr). Other user (oz(a)abc.hr) tries to join the
chat-999(a)abc.hrby sending #join. Kamailio crashes at that point. Here
is the log:
Best regards,
Ozren
Jun 1 15:10:37 ser-test kernel: [5844312.456709] kamailio[20118]: segfault
at 10 ip 7f28f89dae8e sp 7fffffffb750 error 4 in imc.so[7f28f89cf000+17000]
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20118]:
INFO: <script>: going to imc: F [sip:oz@abc.hr] T [sip:chat-999@abc.hr] B
[#join]
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: <core> [receive.c:186]: preparing to run routing scripts...
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20118]:
DEBUG: imc [imc.c:525]: found command
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: maxfwd [mf_funcs.c:85]: value = 70
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20118]:
DEBUG: imc [imc_cmd.c:146]: command: [join]
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: <core> [parser/msg_parser.c:201]: DEBUG: get_hdr_body :
content_length=223
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20118]:
DEBUG: imc [imc_cmd.c:292]: found room [chat-999]
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: <core> [parser/msg_parser.c:103]: found end of header
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20118]:
ERROR: imc [imc_cmd.c:317]: attept to join private room [chat-999] from user
[oz]
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: <core> [parser/parse_to.c:174]: DEBUG: add_param: tag=5e3288a6
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20113]:
ALERT: <core> [main.c:741]: child process 20118 exited by a signal 11
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: <core> [parser/parse_to.c:803]: end of header reached, state=29
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20119]:
DEBUG: <core> [parser/msg_parser.c:630]: SIP Request:
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20113]:
ALERT: <core> [main.c:744]: core was not generated
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20121]:
DEBUG: <core> [msg_translator.c:204]: check_via_address(161.53.255.82,
161.53.255.82, 0)
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20119]:
DEBUG: <core> [parser/msg_parser.c:632]: method: <MESSAGE>
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20113]:
INFO: <core> [main.c:756]: INFO: terminating due to SIGCHLD
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20114]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20115]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20116]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20117]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20122]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20124]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20125]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20129]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20128]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20127]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20123]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20126]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20120]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20130]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20131]:
INFO: <core> [main.c:807]: INFO: signal 15 received
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20113]:
DEBUG: imc [imc.c:709]: room 3 chat-777
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20113]:
DEBUG: imc [imc.c:709]: room 11 chat-888
Jun 1 15:10:37 ser-test /usr/local/kamailio-ozren/sbin/kamailio[20113]:
DEBUG: imc [imc.c:709]: room 13 chat-999