I have updated opensips to v2.1.1 Git Rev. 4c775f2. I still have crash through 
frequency is a bit reduced now, previously it was crashing on every call, now 
it crashes every 2nd or 3rd call. I see two core dumps, here are their back 
traces.

Contents of core.opensips.8051.loadbalancer-dev.1452761363,
<p><pre>
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/adx-ipc/sbin/opensips...done.
[New LWP 8051]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Core was generated by `/usr/local/adx-ipc/sbin/opensips -P 
/var/run/opensips/opensips.pid -m 64 -M 4 -'.
Program terminated with signal 11, Segmentation fault.
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
86              asm volatile(
(gdb) bt
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
#1  get_lock (lock=<optimized out>) at ../../mem/../fastlock.h:176
#2  _lock (s=<optimized out>) at lock.h:100
#3  set_timer (ext_timeout=0xbfa9b7c8, list_id=FR_INV_TIMER_LIST, 
new_tl=0xb2c211d0) at timer.c:907
#4  set_timer (new_tl=new_tl@entry=0xb2c211d0, 
list_id=list_id@entry=FR_INV_TIMER_LIST, 
ext_timeout=ext_timeout@entry=0xbfa9b7c8) at timer.c:884
#5  0xb714b800 in reply_received (p_msg=0xb71c7300) at t_reply.c:1535
#6  0x080823e2 in forward_reply (msg=msg@entry=0xb71c7300) at forward.c:517
#7  0x080c4977 in receive_msg (
    buf=0x827c720 "SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 
172.16.171.21:5060;branch=z9hG4bKc4b9.a142e77.0;received=172.16.171.21\r\nVia: 
SIP/2.0/UDP 
192.168.1.21:6000;received=172.16.253.35;rport=6000;branch=z9hG4bK17684605"..., 
len=<optimized out>, rcv_info=rcv_info@entry=0xbfa9b930) at receive.c:243
#8  0x081c3227 in udp_read_req (si=0xb7177af8, bytes_read=0xbfa9b9f8) at 
net/proto_udp/proto_udp.c:190
#9  0x081b43c1 in handle_io (fm=<optimized out>, idx=<optimized out>, 
event_type=<optimized out>) at net/net_udp.c:260
#10 handle_io (fm=<optimized out>, idx=<optimized out>, event_type=<optimized 
out>) at net/net_udp.c:287
#11 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>, repeat=<optimized 
out>) at net/../io_wait_loop.h:215
#12 udp_rcv_loop (si=si@entry=0xb7177af8) at net/net_udp.c:308
#13 0x081b6bf1 in udp_start_processes (chd_rank=chd_rank@entry=0x82400bc, 
startup_done=startup_done@entry=0x0) at net/net_udp.c:448
#14 0x080603f6 in main_loop () at main.c:723
#15 main (argc=11, argv=0xbfa9bca4) at main.c:1260
</p></pre>

Contents of core.opensips.8052.loadbalancer-dev.1452761363,

<p><pre>
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/adx-ipc/sbin/opensips...done.
[New LWP 8052]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Core was generated by `/usr/local/adx-ipc/sbin/opensips -P 
/var/run/opensips/opensips.pid -m 64 -M 4 -'.
Program terminated with signal 11, Segmentation fault.
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
86              asm volatile(
(gdb) bt
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
#1  get_lock (lock=<optimized out>) at ../../mem/../fastlock.h:176
#2  _lock (s=<optimized out>) at lock.h:100
#3  set_timer (ext_timeout=0x0, list_id=RT_T1_TO_1, new_tl=0xb2c211b4) at 
timer.c:907
#4  set_timer (new_tl=new_tl@entry=0xb2c211b4, 
list_id=list_id@entry=RT_T1_TO_1, ext_timeout=0x0, ext_timeout@entry=0x1) at 
timer.c:884
#5  0xb71298b0 in _set_fr_retr (retr=<optimized out>, rb=0xb2c21180) at 
t_funcs.h:137
#6  start_retr (rb=0xb2c21180) at t_funcs.h:151
#7  t_forward_nonack (t=t@entry=0xb2c21068, p_msg=p_msg@entry=0xb71c6e44, 
proxy=proxy@entry=0x0) at t_fwd.c:736
#8  0xb712503d in t_relay_to (p_msg=p_msg@entry=0xb71c6e44, 
proxy=proxy@entry=0x0, flags=flags@entry=0) at t_funcs.c:247
#9  0xb713c244 in w_t_relay (p_msg=0xb71c6e44, proxy=0x0, flags=0x0) at 
tm.c:1213
#10 0x0806441c in do_action (a=a@entry=0xb7192344, msg=msg@entry=0xb71c6e44) at 
action.c:1862
#11 0x0806bd34 in run_action_list (a=0xb7192344, msg=msg@entry=0xb71c6e44) at 
action.c:169
#12 0x080dbb48 in eval_elem (e=0xb71923b8, msg=msg@entry=0xb71c6e44, 
val=val@entry=0x0) at route.c:1643
#13 0x080db439 in eval_expr (e=0xb71923b8, msg=msg@entry=0xb71c6e44, 
val=val@entry=0x0) at route.c:1988
#14 0x080db567 in eval_expr (e=0xb71923e4, msg=msg@entry=0xb71c6e44, 
val=val@entry=0x0) at route.c:2004
#15 0x080db421 in eval_expr (e=0xb7192410, msg=msg@entry=0xb71c6e44, 
val=val@entry=0x0) at route.c:2009
#16 0x080646fa in do_action (a=a@entry=0xb719253c, msg=msg@entry=0xb71c6e44) at 
action.c:1111
#17 0x0806b722 in run_action_list (msg=0xb71c6e44, a=<optimized out>) at 
action.c:169
#18 run_actions (a=a@entry=0xb717ddac, msg=msg@entry=0xb71c6e44) at action.c:134
#19 0x0806c106 in run_actions (msg=0xb71c6e44, a=0xb717ddac) at action.c:127
#20 run_top_route (a=a@entry=0xb717ddac, msg=msg@entry=0xb71c6e44) at 
action.c:209
#21 0x080c5182 in receive_msg (
    buf=0x827c720 "INVITE sip:997101701101@172.16.171.21 SIP/2.0\r\nVia: 
SIP/2.0/UDP 192.168.1.21:6000;rport;branch=z9hG4bK1768460587\r\nFrom: 
<sip:997101701108@172.16.171.21>;tag=1885834922\r\nTo: 
<sip:997101701101@172.16.17"..., len=<optimized out>, 
rcv_info=rcv_info@entry=0xbfa9b930) at receive.c:196
#22 0x081c3227 in udp_read_req (si=0xb7177af8, bytes_read=0xbfa9b9f8) at 
net/proto_udp/proto_udp.c:190
#23 0x081b43c1 in handle_io (fm=<optimized out>, idx=<optimized out>, 
event_type=<optimized out>) at net/net_udp.c:260
#24 handle_io (fm=<optimized out>, idx=<optimized out>, event_type=<optimized 
out>) at net/net_udp.c:287
#25 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>, repeat=<optimized 
out>) at net/../io_wait_loop.h:215
#26 udp_rcv_loop (si=si@entry=0xb7177af8) at net/net_udp.c:308
#27 0x081b6bf1 in udp_start_processes (chd_rank=chd_rank@entry=0x82400bc, 
startup_done=startup_done@entry=0x0) at net/net_udp.c:448
#28 0x080603f6 in main_loop () at main.c:723
#29 main (argc=11, argv=0xbfa9bca4) at main.c:1260
</p></pre>

Let me know if you need more info.

Thank you.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/732#issuecomment-171577651
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to