Hello,
did you get only one core file? This one seems from the main process
when it discovered that a SIP worked crashed.
If you got more than one, send the backtraces from the other core files.
If you got only one, please enable one core file per process and re-do
it again.
See last part of:
Hi Daniel,
here is the backtrace:
#0 0x00007ffc46b81ed5 in raise () from /lib/libc.so.6
#1 0x00007ffc46b833f3 in abort () from /lib/libc.so.6
#2 0x000000000046119e in sig_alarm_abort (signo=<value optimized
out>) at main.c:651
#3 <signal handler called>
#4 0x00007ffc46c1c307 in syscall () from /lib/libc.so.6
#5 0x00007ffc4219f115 in imc_del_room (name=0x7ffc3fe0d388,
domain=0x7ffc3fe0d398) at ../../mem/../futexlock.h:110
#6 0x00007ffc4219f1d8 in imc_htable_destroy () at imc_mng.c:104
#7 0x00007ffc4219347a in destroy () at imc.c:736
#8 0x00000000004d9964 in destroy_modules () at sr_module.c:732
#9 0x0000000000462930 in cleanup (show_status=1) at main.c:527
#10 0x0000000000463564 in shutdown_children (sig=<value optimized
out>, show_status=1) at main.c:668
#11 0x0000000000463e9c in handle_sigs () at main.c:759
#12 0x0000000000465572 in main_loop () at main.c:1676
#13 0x0000000000467f53 in main (argc=<value optimized out>, argv=0x0)
at main.c:2398
I'm not sure if I got the right thing. I got it with gdb
/usr/local/kamailio-ozren/sbin/kamailio --core core and called bt in gdb.
I've repeated scenario described in the first mail: user tries to join
in a private room without getting an invite first.
Best regards,
Ozren
On Wed, Jun 1, 2011 at 4:29 PM, Daniel-Constantin Mierla
<miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
Hello,
can you get the core dump and send the backtrace?
Be sure you have 'ulimit -c unlimited', working directory (-w
option) set to writable path and you don't run it in chowner (no
-u or -g parameters).
Cheers,
Daniel
On 6/1/11 4:25 PM, Ozren Lapcevic wrote:
Hi,
there is a bug in IMC module that crashes Kamailio.
Here is the scenario: One user (pero(a)abc.hr <mailto:pero@abc.hr>)
creates private chat room (chat-999(a)abc.hr
<mailto:chat-999@abc.hr>). Other user (oz(a)abc.hr
<mailto:oz@abc.hr>) tries to join the chat-999(a)abc.hr
<mailto:chat-999@abc.hr> by 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 <mailto:sip%3Aoz@abc.hr>] T
[sip:chat-999@abc.hr <mailto:sip%3Achat-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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --http://www.asipto.com
http://linkedin.com/in/miconda --
http://twitter.com/miconda