Dear list,<br><br>In the last days, I'm having problems with my opensips server. It just died!<br><br>In the log files I see:<br><br>/usr/local/sbin/opensips[9361]: INFO:core:handle_sigs: child process 9365 exited by a signal 11<br>
/usr/local/sbin/opensips[9361]: INFO:core:handle_sigs: core was generated<br>/usr/local/sbin/opensips[9361]: INFO:core:handle_sigs: terminating due to SIGCHLD<br>/usr/local/sbin/opensips[9364]: INFO:core:sig_usr: signal 15 received<br>
/usr/local/sbin/opensips[9368]: INFO:core:sig_usr: signal 15 received<br>/usr/local/sbin/opensips[9369]: INFO:core:sig_usr: signal 15 received<br>/usr/local/sbin/opensips[9366]: INFO:core:sig_usr: signal 15 received<br>/usr/local/sbin/opensips[9367]: INFO:core:sig_usr: signal 15 received<br>
/usr/local/sbin/opensips[9363]: INFO:core:sig_usr: signal 15 received<br>/usr/local/sbin/opensips[9361]: INFO:db_mysql:get_new_stmt_ctx: disconect event for 0x81d13d0<br>/usr/local/sbin/opensips[9361]: INFO:db_mysql:reset_all_statements: reseting all statements on connection: (0x81d1ac4) 0x81d13d0<br>
/usr/local/sbin/opensips[9361]: INFO:db_mysql:get_new_stmt_ctx: re-connected successful for 0x81d13d0<br><br>I see 2 core files each one with different information. I have opened it with gdb program and did a bt full command to see the full information.<br>
<br>Could someone help me?<br><br>Follow the core files information:<br><br><b>CORE 1:</b><br><br>re was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid -m 1024 -u root -g root'.<br>Program terminated with signal 11, Segmentation fault.<br>
#0 0x002502a7 in unref_dlg (dlg=0x78136b98, cnt=1) at dlg_hash.c:587<br>587 d_entry = &(d_table->entries[dlg->h_entry]);<br><br>(gdb) bt full<br>#0 0x002502a7 in unref_dlg (dlg=0x78136b98, cnt=1) at dlg_hash.c:587<br>
d_entry = 0x8c3abd8<br> __FUNCTION__ = "unref_dlg"<br>#1 0x00244fd4 in tmcb_unreference_dialog (t=0x7a8c1ad4, type=8192, param=0x1acd14) at dlg_handlers.c:518<br>No locals.<br>#2 0x001834c2 in run_trans_callbacks (type=8192, trans=0x7a8c1ad4, req=0x0, rpl=0x0, code=0) at t_hooks.c:208<br>
cbp = 0x78173a8c<br> backup = 0x81a2504<br> trans_backup = 0xffffffff<br> __FUNCTION__ = "run_trans_callbacks"<br>#3 0x0016fa81 in free_cell (dead_cell=0x7a8c1ad4) at h_table.c:124<br>
b = <value optimized out><br> i = <value optimized out><br> rpl = <value optimized out><br> tt = <value optimized out><br> foo = <value optimized out><br>
p = <value optimized out><br>
#4 0x0016fadb in free_hash_table () at h_table.c:342<br> p_cell = 0x267ccc<br> tmp_cell = 0x0<br> i = 1538<br>#5 0x0017dba4 in tm_shutdown () at t_funcs.c:99<br> __FUNCTION__ = "tm_shutdown"<br>
#6 0x080be491 in destroy_modules () at sr_module.c:370<br> t = 0x81b8570<br> foo = 0x81b8554<br>#7 0x0806b0a0 in cleanup (show_status=1) at main.c:336<br>No locals.<br>#8 0x0806bfd4 in handle_sigs () at main.c:533<br>
chld = 0<br> chld_status = 139<br> i = 6<br> do_exit = 1<br> __FUNCTION__ = "handle_sigs"<br>#9 0x08070564 in main_loop (argc=9, argv=0xbf85e4a4) at main.c:913<br> i = 4<br>
pid = <value optimized out><br> si = 0x0<br> startup_done = 0x0<br> chd_rank = 4<br> __FUNCTION__ = "main_loop"<br>#10 main (argc=9, argv=0xbf85e4a4) at main.c:1388<br>
cfg_log_stderr = 0<br>
cfg_stream = 0x8c26008<br> c = <value optimized out><br> r = 0<br>---Type <return> to continue, or q <return> to quit---<br> tmp = 0xbf85ff64 ""<br> tmp_len = <value optimized out><br>
port = 12570437<br> proto = <value optimized out><br> ret = <value optimized out><br> seed = 196014188<br> rfd = 4<br> __FUNCTION__ = "main"<br><br><b>CORE 2:</b><br>
<br>Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid -m 1024 -u root -g root'.<br>Program terminated with signal 11, Segmentation fault.<br>#0 0x080faab7 in get_all_bodies (msg=0x81d419c) at parser/parse_multipart.c:193<br>
193 if (msg->buf + msg->len - start < get_content_length(msg))<br><br>(gdb) bt full<br>#0 0x080faab7 in get_all_bodies (msg=0x81d419c) at parser/parse_multipart.c:193<br> start = 0x81926e0 ""<br>
end = <value optimized out><br> type = <value optimized out><br> cur = <value optimized out><br> temp = <value optimized out><br> delimiter = {s = 0x0, len = 0}<br>
__FUNCTION__ = "get_all_bodies"<br>#1 0x00e59f0d in force_rtp_proxy (msg=0x81926e0, str1=0x81d419c "\"'1", str2=0x0, offer=0) at nathelper.c:2773<br> m = <value optimized out><br>
p = <value optimized out><br> body = {s = 0x0, len = 0}<br> skip = <value optimized out><br> c = <value optimized out><br> __FUNCTION__ = "force_rtp_proxy"<br>
#2 0x00e5edae in rtpproxy_answer2_f (msg=0x81d419c, str1=0x81c8920 "FW", str2=0x0) at nathelper.c:2742<br>No locals.<br>#3 rtpproxy_answer1_f (msg=0x81d419c, str1=0x81c8920 "FW", str2=0x0) at nathelper.c:2731<br>
cp = <value optimized out><br> newip = "177.107.192.207\000@\240\317\000\001\000\000\000\b\000\000\000\364_\322\000@\220\035\b8\253\303\b"<br>#4 0x080544fd in do_action (a=0x81c89ac, msg=0x81d419c) at action.c:967<br>
val_s = {<br> s = 0x819254e "206.47627b65.0\r\nVia: SIP/2.0/UDP 189.22.135.98:5060;received=189.22.135.98;branch=z9hG4bK7eee89cd;rport=5060\r\nFrom: \"Beatriz Bradesco\" <<a href="mailto:sip%3A5584576151@189.22.135.98">sip:5584576151@189.22.135.98</a>>;tag=as614239a8\r\nServer: Sippy\r\nTo:"..., len = 135865682}<br>
aux = {s = 0x81926e0 "", len = 1}<br> ret = <value optimized out><br> v = <value optimized out><br> to = <value optimized out><br> p = <value optimized out><br>
tmp = <value optimized out><br> new_uri = <value optimized out><br> end = <value optimized out><br> crt = <value optimized out><br> len = <value optimized out><br>
user = <value optimized out><br> uri = {user = {s = 0x0, len = 68}, passwd = {<br> s = 0x8192547 "z9hG4bK206.47627b65.0\r\nVia: SIP/2.0/UDP 189.22.135.98:5060;received=189.22.135.98;branch=z9hG4bK7eee89cd;rport=5060\r\nFrom: \"Beatriz Bradesco\" <<a href="mailto:sip%3A5584576151@189.22.135.98">sip:5584576151@189.22.135.98</a>>;tag=as614239a8\r\nServer: Sip"..., len = 21}, host = {s = 0x0, len = 1538}, port = {s = 0x7a8c1ad4 "",<br>
len = 2}, params = {s = 0x0, len = 1019}, headers = {s = 0x10 <Address 0x10 out of bounds>, len = 135998500}, port_no = 28562, proto = 26,<br> type = 3213221896, transport = {s = 0x1aaa38 "\004\230\004", len = -1081745448}, ttl = {s = 0x1aaa38 "\004\230\004", len = 2056002428},<br>
user_param = {s = 0x3fb <Address 0x3fb out of bounds>, len = 136136116}, maddr = {s = 0x3d <Address 0x3d out of bounds>, len = 136020928},<br> method = {<br> s = 0x81dccd4 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 187.60.60.73:5060;received=187.60.60.73;branch=z9hG4bK-d8754z-b8d0f66632eb4d64-1---d8754z-;rport=5060\r\nVia: SIP/2.0/UDP 187.60.60.73:5061;branch=z9hG4bK-oib2wzyiujugge"..., len = 4}, lr = {<br>
s = 0x819265b "CSeq: 102 BYE\r\nCall-ID: <a href="mailto:3359a9b33378c3d02664f0fd008d3e89@189.22.135.98">3359a9b33378c3d02664f0fd008d3e89@189.22.135.98</a>\r\nRecord-Route: <sip:177.107.192.207;lr=on;ftag=as614239a8>\r\n\r\n", len = 1}, r2 = {s = 0x81d45d8 "\002", len = -1081745384}, transport_val = {<br>
---Type <return> to continue, or q <return> to quit---<br> s = 0x80efe49 "\211EÐ>\215G\001\203\370(w\a\377$\205\024\344\025\b\241d_\027\b\203\070\376\017\215\326\001", len = 135865947}, ttl_val = {<br>
s = 0x81926e0 "", len = 136136116}, user_param_val = {s = 0x454 <Address 0x454 out of bounds>, len = 2056002260}, maddr_val = {<br> s = 0x56b72674 <Address 0x56b72674 out of bounds>, len = 0}, method_val = {<br>
s = 0x819255b "0\r\nVia: SIP/2.0/UDP 189.22.135.98:5060;received=189.22.135.98;branch=z9hG4bK7eee89cd;rport=5060\r\nFrom: \"Beatriz Bradesco\" <<a href="mailto:sip%3A5584576151@189.22.135.98">sip:5584576151@189.22.135.98</a>>;tag=as614239a8\r\nServer: Sippy\r\nTo: <sip:5522277"..., len = 1}, lr_val = {s = 0x81d5d98 "\001", len = 0}, r2_val = {s = 0x0,<br>
len = 135865682}}<br> next_hop = {user = {<br> s = 0x8192668 "\r\nCall-ID: <a href="mailto:3359a9b33378c3d02664f0fd008d3e89@189.22.135.98">3359a9b33378c3d02664f0fd008d3e89@189.22.135.98</a>\r\nRecord-Route: <sip:177.107.192.207;lr=on;ftag=as614239a8>\r\n\r\n", len = 136142252}, passwd = {s = 0x1aaa38 "\004\230\004", len = 2014666960}, host = {s = 0x187a9e "\201\301\232/\002", len = -1081745656}, port = {<br>
s = 0x183621 "\203\304\\[^_]\303\350\336#\376\377\211E\330\215}\360\211}\264\211<$\350]#\376\377\213\213\234\377\377\377\211L$\004\213E\264\211\004$\350h(\376\377\213\223\234\377\377\377\306B\023", len = 2056002260}, params = {s = 0x2 <Address 0x2 out of bounds>, len = 1756436}, headers = {<br>
s = 0x81b3d80 "", len = 135866080}, port_no = 17844, proto = 2077, type = 3213221784, transport = {<br> s = 0x80ef304 "\211E\300\213\215p\377\377\377\203\071\377\017\204\260\005", len = 135998500}, ttl = {s = 0x1a5d4c "run_trans_callbacks",<br>
len = -1081745672}, user_param = {s = 0x1844a8 "1ÒÑ\302\003U\270\023M\274\213u\b\211V\f\211N\020\213}Ä~\024\307F\030", len = 2056002260},<br> maddr = {s = 0x81a2504 "", len = 2056002260}, method = {s = 0x81bebc4 "\016", len = 136047556}, lr = {s = 0xe <Address 0xe out of bounds>,<br>
len = -1081745000}, r2 = {s = 0x16fc35 "\201\303\003\256\003", len = 5}, transport_val = {s = 0x81d419c "\"'1", len = 2012844228}, ttl_val = {<br> s = 0x1aaa38 "\004\230\004", len = 2055972136}, user_param_val = {s = 0x81d419c "\"'1", len = -1081745384}, maddr_val = {<br>
s = 0x18d8f6 "\270\001", len = 2}, method_val = {s = 0x7a8c1ad4 "", len = 2055972136}, lr_val = {s = 0x81d419c "\"'1", len = 500}, r2_val = {<br> s = 0x819255c "\r\nVia: SIP/2.0/UDP 189.22.135.98:5060;received=189.22.135.98;branch=z9hG4bK7eee89cd;rport=5060\r\nFrom: \"Beatriz Bradesco\" <<a href="mailto:sip%3A5584576151@189.22.135.98">sip:5584576151@189.22.135.98</a>>;tag=as614239a8\r\nServer: Sippy\r\nTo: <sip:55222772"..., len = 135865664}}<br>
u = <value optimized out><br> port = <value optimized out><br> cmatch = <value optimized out><br> aitem = <value optimized out><br> adefault = <value optimized out><br>
spec = <value optimized out><br> model = <value optimized out><br> val = {rs = {s = 0x0, len = -1081745256}, ri = 135865692, flags = 1538}<br> name_s = {<br> s = 0x7a8d1279 "e: <sip:177.107.192.207;lr;ftag=as18dbab3f>\r\nTo: <<a href="http://sip:552297346743@sip.hitworld.com.br:5060">sip:552297346743@sip.hitworld.com.br:5060</a>>;tag=33z2aaxkgebykrtt.i\r\nFrom: \"Luciana Andrade\"<<a href="mailto:sip%3A5584576151@189.22.135.98">sip:5584576151@189.22.135.98</a>>;tag=as18dbab3f\r\nCall-ID: 5651"..., len = 135865863}<br>
__FUNCTION__ = "do_action"<br>#5 0x08057228 in run_action_list (a=0x81c8828, msg=0x81d419c) at action.c:139<br> ret = 1<br> t = 0x81c89ac<br> __FUNCTION__ = "run_action_list"<br>
#6 0x080575c3 in run_actions (a=0x81c8828, msg=0x81d419c) at action.c:119<br> __FUNCTION__ = "run_actions"<br>#7 run_top_route (a=0x81c8828, msg=0x81d419c) at action.c:180<br> bk_action_flags = 0<br>
bk_rec_lev = 0<br>#8 0x0019f905 in reply_received (p_msg=0x81d419c) at t_reply.c:1451<br> msg_status = 500<br> branch = 0<br> reply_status = <value optimized out><br> timer = <value optimized out><br>
---Type <return> to continue, or q <return> to quit---<br> cancel_bitmap = 0<br> uac = 0x7a8c1bec<br> t = 0x7a8c1ad4<br> backup_list = 0x0<br> __FUNCTION__ = "reply_received"<br>
#9 0x08067b0c in forward_reply (msg=0x81d419c) at forward.c:559<br> new_buf = <value optimized out><br> to = <value optimized out><br> new_len = <value optimized out><br> mod = 0x81b8570<br>
proto = <value optimized out><br> id = <value optimized out><br> send_sock = <value optimized out><br> len = <value optimized out><br> __FUNCTION__ = "forward_reply"<br>
#10 0x0809da9f in receive_msg (<br> buf=0x8192500 "SIP/2.0 500 CSeq order failed\r\nVia: SIP/2.0/UDP 177.107.192.207;branch=z9hG4bK206.47627b65.0\r\nVia: SIP/2.0/UDP 189.22.135.98:5060;received=189.22.135.98;branch=z9hG4bK7eee89cd;rport=5060\r\nFrom: \"Beatr"..., len=480, rcv_info=0xbf85e2a4) at receive.c:200<br>
msg = <value optimized out><br> __FUNCTION__ = "receive_msg"<br>#11 0x080e4f16 in udp_rcv_loop () at udp_server.c:492<br> len = 480<br> tmp = <value optimized out><br> from = <value optimized out><br>
fromlen = 16<br> ri = {src_ip = {af = 2, len = 4, u = {addrl = {1228684475, 2763300, 2762880, 12572806}, addr32 = {1228684475, 2763300, 2762880, 12572806}, addr16 = {<br> 15547, 18748, 10788, 42, 10368, 42, 55430, 191}, addr = "\273<<I$**\000\200(*\000\206\330\277"}}, dst_ip = {af = 2, len = 4, u = {addrl = {<br>
3485494193, 0, 0, 0}, addr32 = {3485494193, 0, 0, 0}, addr16 = {27569, 53184, 0, 0, 0, 0, 0, 0},<br> addr = "\261k\300\317", '\000' <repeats 11 times>}}, src_port = 5061, dst_port = 5060, proto = 1, proto_reserved1 = 0, proto_reserved2 = 0,<br>
src_su = {s = {sa_family = 2, sa_data = "\023Å»<<I\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50451, sin_addr = {<br> s_addr = 1228684475}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50451, sin6_flowinfo = 1228684475,<br>
sin6_addr = {in6_u = {u6_addr8 = '\000' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}},<br> sin6_scope_id = 0}}, bind_address = 0x81b83c0}<br>
p = <value optimized out><br> buf = "SIP/2.0 500 CSeq order failed\r\nVia: SIP/2.0/UDP 177.107.192.207;branch=z9hG4bK206.47627b65.0\r\nVia: SIP/2.0/UDP 189.22.135.98:5060;received=189.22.135.98;branch=z9hG4bK7eee89cd;rport=5060\r\nFrom: \"Beatr"...<br>
__FUNCTION__ = "udp_rcv_loop"<br>#12 0x08070620 in main_loop (argc=9, argv=0xbf85e4a4) at main.c:818<br> i = 2<br> pid = <value optimized out><br> si = <value optimized out><br>
startup_done = 0x0<br> chd_rank = 3<br> __FUNCTION__ = "main_loop"<br>#13 main (argc=9, argv=0xbf85e4a4) at main.c:1388<br> cfg_log_stderr = 0<br>---Type <return> to continue, or q <return> to quit---<br>
cfg_stream = 0x8c26008<br> c = <value optimized out><br> r = <value optimized out><br> tmp = 0xbf85ff64 ""<br> tmp_len = <value optimized out><br> port = 12570437<br>
proto = <value optimized out><br> ret = <value optimized out><br> seed = 196014188<br> rfd = 4<br> __FUNCTION__ = "main"<br><br><br>Regards,<br clear="all"><br>-- <br>
Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com" target="_blank">volcov@live.com</a><br>Mobile: +55 11 7999-7444<br>
Website: <a href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br>