[OpenSIPS-Users] Opensips 1.6.2-notls - Died

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Apr 4 10:03:44 CEST 2012


Hello Wesley,

1.6.2 is really old - like 4 major releases ago and 1.6 is not even 
maintained anymore. Are there any chances to upgrade to a newer version 
? A lot of bugs were fixed in the mean while. If the upgrade is not an 
option, I will try to help you in debugging the problem.

Regards,
Bogdan

On 04/03/2012 03:20 PM, Wesley Volcov wrote:
> Dear list,
>
> In the last days, I'm having problems with my opensips server. It just 
> died!
>
> In the log files I see:
>
> /usr/local/sbin/opensips[9361]: INFO:core:handle_sigs: child process 
> 9365 exited by a signal 11
> /usr/local/sbin/opensips[9361]: INFO:core:handle_sigs: core was generated
> /usr/local/sbin/opensips[9361]: INFO:core:handle_sigs: terminating due 
> to SIGCHLD
> /usr/local/sbin/opensips[9364]: INFO:core:sig_usr: signal 15 received
> /usr/local/sbin/opensips[9368]: INFO:core:sig_usr: signal 15 received
> /usr/local/sbin/opensips[9369]: INFO:core:sig_usr: signal 15 received
> /usr/local/sbin/opensips[9366]: INFO:core:sig_usr: signal 15 received
> /usr/local/sbin/opensips[9367]: INFO:core:sig_usr: signal 15 received
> /usr/local/sbin/opensips[9363]: INFO:core:sig_usr: signal 15 received
> /usr/local/sbin/opensips[9361]: INFO:db_mysql:get_new_stmt_ctx: 
> disconect event for 0x81d13d0
> /usr/local/sbin/opensips[9361]: INFO:db_mysql:reset_all_statements: 
> reseting all statements on connection: (0x81d1ac4) 0x81d13d0
> /usr/local/sbin/opensips[9361]: INFO:db_mysql:get_new_stmt_ctx: 
> re-connected successful for 0x81d13d0
>
> 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.
>
> Could someone help me?
>
> Follow the core files information:
>
> *CORE 1:*
>
> re was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid 
> -m 1024 -u root -g root'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x002502a7 in unref_dlg (dlg=0x78136b98, cnt=1) at dlg_hash.c:587
> 587             d_entry = &(d_table->entries[dlg->h_entry]);
>
> (gdb) bt full
> #0  0x002502a7 in unref_dlg (dlg=0x78136b98, cnt=1) at dlg_hash.c:587
>         d_entry = 0x8c3abd8
>         __FUNCTION__ = "unref_dlg"
> #1  0x00244fd4 in tmcb_unreference_dialog (t=0x7a8c1ad4, type=8192, 
> param=0x1acd14) at dlg_handlers.c:518
> No locals.
> #2  0x001834c2 in run_trans_callbacks (type=8192, trans=0x7a8c1ad4, 
> req=0x0, rpl=0x0, code=0) at t_hooks.c:208
>         cbp = 0x78173a8c
>         backup = 0x81a2504
>         trans_backup = 0xffffffff
>         __FUNCTION__ = "run_trans_callbacks"
> #3  0x0016fa81 in free_cell (dead_cell=0x7a8c1ad4) at h_table.c:124
>         b = <value optimized out>
>         i = <value optimized out>
>         rpl = <value optimized out>
>         tt = <value optimized out>
>         foo = <value optimized out>
>         p = <value optimized out>
> #4  0x0016fadb in free_hash_table () at h_table.c:342
>         p_cell = 0x267ccc
>         tmp_cell = 0x0
>         i = 1538
> #5  0x0017dba4 in tm_shutdown () at t_funcs.c:99
>         __FUNCTION__ = "tm_shutdown"
> #6  0x080be491 in destroy_modules () at sr_module.c:370
>         t = 0x81b8570
>         foo = 0x81b8554
> #7  0x0806b0a0 in cleanup (show_status=1) at main.c:336
> No locals.
> #8  0x0806bfd4 in handle_sigs () at main.c:533
>         chld = 0
>         chld_status = 139
>         i = 6
>         do_exit = 1
>         __FUNCTION__ = "handle_sigs"
> #9  0x08070564 in main_loop (argc=9, argv=0xbf85e4a4) at main.c:913
>         i = 4
>         pid = <value optimized out>
>         si = 0x0
>         startup_done = 0x0
>         chd_rank = 4
>         __FUNCTION__ = "main_loop"
> #10 main (argc=9, argv=0xbf85e4a4) at main.c:1388
>         cfg_log_stderr = 0
>         cfg_stream = 0x8c26008
>         c = <value optimized out>
>         r = 0
> ---Type <return> to continue, or q <return> to quit---
>         tmp = 0xbf85ff64 ""
>         tmp_len = <value optimized out>
>         port = 12570437
>         proto = <value optimized out>
>         ret = <value optimized out>
>         seed = 196014188
>         rfd = 4
>         __FUNCTION__ = "main"
>
> *CORE 2:*
>
> Core was generated by `/usr/local/sbin/opensips -P 
> /var/run/opensips.pid -m 1024 -u root -g root'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x080faab7 in get_all_bodies (msg=0x81d419c) at 
> parser/parse_multipart.c:193
> 193             if (msg->buf + msg->len - start < get_content_length(msg))
>
> (gdb) bt full
> #0  0x080faab7 in get_all_bodies (msg=0x81d419c) at 
> parser/parse_multipart.c:193
>         start = 0x81926e0 ""
>         end = <value optimized out>
>         type = <value optimized out>
>         cur = <value optimized out>
>         temp = <value optimized out>
>         delimiter = {s = 0x0, len = 0}
>         __FUNCTION__ = "get_all_bodies"
> #1  0x00e59f0d in force_rtp_proxy (msg=0x81926e0, str1=0x81d419c 
> "\"'1", str2=0x0, offer=0) at nathelper.c:2773
>         m = <value optimized out>
>         p = <value optimized out>
>         body = {s = 0x0, len = 0}
>         skip = <value optimized out>
>         c = <value optimized out>
>         __FUNCTION__ = "force_rtp_proxy"
> #2  0x00e5edae in rtpproxy_answer2_f (msg=0x81d419c, str1=0x81c8920 
> "FW", str2=0x0) at nathelper.c:2742
> No locals.
> #3  rtpproxy_answer1_f (msg=0x81d419c, str1=0x81c8920 "FW", str2=0x0) 
> at nathelper.c:2731
>         cp = <value optimized out>
>         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"
> #4  0x080544fd in do_action (a=0x81c89ac, msg=0x81d419c) at action.c:967
>         val_s = {
>           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\" <sip:5584576151 at 189.22.135.98 
> <mailto:sip%3A5584576151 at 189.22.135.98>>;tag=as614239a8\r\nServer: 
> Sippy\r\nTo:"..., len = 135865682}
>         aux = {s = 0x81926e0 "", len = 1}
>         ret = <value optimized out>
>         v = <value optimized out>
>         to = <value optimized out>
>         p = <value optimized out>
>         tmp = <value optimized out>
>         new_uri = <value optimized out>
>         end = <value optimized out>
>         crt = <value optimized out>
>         len = <value optimized out>
>         user = <value optimized out>
>         uri = {user = {s = 0x0, len = 68}, passwd = {
>             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\" <sip:5584576151 at 189.22.135.98 
> <mailto:sip%3A5584576151 at 189.22.135.98>>;tag=as614239a8\r\nServer: 
> Sip"..., len = 21}, host = {s = 0x0, len = 1538}, port = {s = 
> 0x7a8c1ad4 "",
>             len = 2}, params = {s = 0x0, len = 1019}, headers = {s = 
> 0x10 <Address 0x10 out of bounds>, len = 135998500}, port_no = 28562, 
> proto = 26,
>           type = 3213221896, transport = {s = 0x1aaa38 "\004\230\004", 
> len = -1081745448}, ttl = {s = 0x1aaa38 "\004\230\004", len = 2056002428},
>           user_param = {s = 0x3fb <Address 0x3fb out of bounds>, len = 
> 136136116}, maddr = {s = 0x3d <Address 0x3d out of bounds>, len = 
> 136020928},
>           method = {
>             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 = {
>             s = 0x819265b "CSeq: 102 BYE\r\nCall-ID: 
> 3359a9b33378c3d02664f0fd008d3e89 at 189.22.135.98 
> <mailto:3359a9b33378c3d02664f0fd008d3e89 at 189.22.135.98>\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 = {
> ---Type <return> to continue, or q <return> to quit---
>             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 = {
>             s = 0x81926e0 "", len = 136136116}, user_param_val = {s = 
> 0x454 <Address 0x454 out of bounds>, len = 2056002260}, maddr_val = {
>             s = 0x56b72674 <Address 0x56b72674 out of bounds>, len = 
> 0}, method_val = {
>             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\" <sip:5584576151 at 189.22.135.98 
> <mailto:sip%3A5584576151 at 189.22.135.98>>;tag=as614239a8\r\nServer: 
> Sippy\r\nTo: <sip:5522277"..., len = 1}, lr_val = {s = 0x81d5d98 
> "\001", len = 0}, r2_val = {s = 0x0,
>             len = 135865682}}
>         next_hop = {user = {
>             s = 0x8192668 "\r\nCall-ID: 
> 3359a9b33378c3d02664f0fd008d3e89 at 189.22.135.98 
> <mailto:3359a9b33378c3d02664f0fd008d3e89 at 189.22.135.98>\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 = {
>             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 = {
>             s = 0x81b3d80 "", len = 135866080}, port_no = 17844, proto 
> = 2077, type = 3213221784, transport = {
>             s = 0x80ef304 
> "\211E\300\213\215p\377\377\377\203\071\377\017\204\260\005", len = 
> 135998500}, ttl = {s = 0x1a5d4c "run_trans_callbacks",
>             len = -1081745672}, user_param = {s = 0x1844a8 
> "1ÒÑ\302\003U\270\023M\274\213u\b\211V\f\211N\020\213}Ä~\024\307F\030", len 
> = 2056002260},
>           maddr = {s = 0x81a2504 "", len = 2056002260}, method = {s = 
> 0x81bebc4 "\016", len = 136047556}, lr = {s = 0xe <Address 0xe out of 
> bounds>,
>             len = -1081745000}, r2 = {s = 0x16fc35 
> "\201\303\003\256\003", len = 5}, transport_val = {s = 0x81d419c 
> "\"'1", len = 2012844228}, ttl_val = {
>             s = 0x1aaa38 "\004\230\004", len = 2055972136}, 
> user_param_val = {s = 0x81d419c "\"'1", len = -1081745384}, maddr_val = {
>             s = 0x18d8f6 "\270\001", len = 2}, method_val = {s = 
> 0x7a8c1ad4 "", len = 2055972136}, lr_val = {s = 0x81d419c "\"'1", len 
> = 500}, r2_val = {
>             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\" <sip:5584576151 at 189.22.135.98 
> <mailto:sip%3A5584576151 at 189.22.135.98>>;tag=as614239a8\r\nServer: 
> Sippy\r\nTo: <sip:55222772"..., len = 135865664}}
>         u = <value optimized out>
>         port = <value optimized out>
>         cmatch = <value optimized out>
>         aitem = <value optimized out>
>         adefault = <value optimized out>
>         spec = <value optimized out>
>         model = <value optimized out>
>         val = {rs = {s = 0x0, len = -1081745256}, ri = 135865692, 
> flags = 1538}
>         name_s = {
>           s = 0x7a8d1279 "e: 
> <sip:177.107.192.207;lr;ftag=as18dbab3f>\r\nTo: 
> <sip:552297346743 at sip.hitworld.com.br:5060 
> <http://sip:552297346743@sip.hitworld.com.br:5060>>;tag=33z2aaxkgebykrtt.i\r\nFrom: 
> \"Luciana Andrade\"<sip:5584576151 at 189.22.135.98 
> <mailto:sip%3A5584576151 at 189.22.135.98>>;tag=as18dbab3f\r\nCall-ID: 
> 5651"..., len = 135865863}
>         __FUNCTION__ = "do_action"
> #5  0x08057228 in run_action_list (a=0x81c8828, msg=0x81d419c) at 
> action.c:139
>         ret = 1
>         t = 0x81c89ac
>         __FUNCTION__ = "run_action_list"
> #6  0x080575c3 in run_actions (a=0x81c8828, msg=0x81d419c) at action.c:119
>         __FUNCTION__ = "run_actions"
> #7  run_top_route (a=0x81c8828, msg=0x81d419c) at action.c:180
>         bk_action_flags = 0
>         bk_rec_lev = 0
> #8  0x0019f905 in reply_received (p_msg=0x81d419c) at t_reply.c:1451
>         msg_status = 500
>         branch = 0
>         reply_status = <value optimized out>
>         timer = <value optimized out>
> ---Type <return> to continue, or q <return> to quit---
>         cancel_bitmap = 0
>         uac = 0x7a8c1bec
>         t = 0x7a8c1ad4
>         backup_list = 0x0
>         __FUNCTION__ = "reply_received"
> #9  0x08067b0c in forward_reply (msg=0x81d419c) at forward.c:559
>         new_buf = <value optimized out>
>         to = <value optimized out>
>         new_len = <value optimized out>
>         mod = 0x81b8570
>         proto = <value optimized out>
>         id = <value optimized out>
>         send_sock = <value optimized out>
>         len = <value optimized out>
>         __FUNCTION__ = "forward_reply"
> #10 0x0809da9f in receive_msg (
>     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
>         msg = <value optimized out>
>         __FUNCTION__ = "receive_msg"
> #11 0x080e4f16 in udp_rcv_loop () at udp_server.c:492
>         len = 480
>         tmp = <value optimized out>
>         from = <value optimized out>
>         fromlen = 16
>         ri = {src_ip = {af = 2, len = 4, u = {addrl = {1228684475, 
> 2763300, 2762880, 12572806}, addr32 = {1228684475, 2763300, 2762880, 
> 12572806}, addr16 = {
>                 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 = {
>                 3485494193, 0, 0, 0}, addr32 = {3485494193, 0, 0, 0}, 
> addr16 = {27569, 53184, 0, 0, 0, 0, 0, 0},
>               addr = "\261k\300\317", '\000' <repeats 11 times>}}, 
> src_port = 5061, dst_port = 5060, proto = 1, proto_reserved1 = 0, 
> proto_reserved2 = 0,
>           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 = {
>                 s_addr = 1228684475}, sin_zero = 
> "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 
> 50451, sin6_flowinfo = 1228684475,
>               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}}},
>               sin6_scope_id = 0}}, bind_address = 0x81b83c0}
>         p = <value optimized out>
>         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"...
>         __FUNCTION__ = "udp_rcv_loop"
> #12 0x08070620 in main_loop (argc=9, argv=0xbf85e4a4) at main.c:818
>         i = 2
>         pid = <value optimized out>
>         si = <value optimized out>
>         startup_done = 0x0
>         chd_rank = 3
>         __FUNCTION__ = "main_loop"
> #13 main (argc=9, argv=0xbf85e4a4) at main.c:1388
>         cfg_log_stderr = 0
> ---Type <return> to continue, or q <return> to quit---
>         cfg_stream = 0x8c26008
>         c = <value optimized out>
>         r = <value optimized out>
>         tmp = 0xbf85ff64 ""
>         tmp_len = <value optimized out>
>         port = 12570437
>         proto = <value optimized out>
>         ret = <value optimized out>
>         seed = 196014188
>         rfd = 4
>         __FUNCTION__ = "main"
>
>
> Regards,
>
> -- 
> Wesley Volcov
> Email: wesleyvolcov at gmail.com <mailto:wesleyvolcov at gmail.com>
> Messenger: volcov at live.com <mailto:volcov at live.com>
> Mobile: +55 11 7999-7444
> Website: http://volcov.blogspot.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120404/7908f266/attachment-0001.htm>


More information about the Users mailing list