[OpenSIPS-Users] help, server crashes every hour

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Aug 3 00:16:29 CEST 2010


Hi Yaniv,

Try the followings:

1) update from SVN to the latest code, to be sure you have all the 
available fixes.

2) enable memory debugger - see 
http://www.opensips.org/Resources/DocsTsMem ; this will help you in 
caching any memory related error (if any)

Regards,
Bogdan

Yaniv Vaknin wrote:
> OK,
> here is another bt :
>
> #0  0x00002b8215c6ee9a in ?? ()
> #1  0x0000000000754f34 in buf.4464 ()
> #2  0x0000000000754dec in buf.4464 ()
> #3  0x0000001015c77858 in ?? ()
> #4  0x000000000078c128 in mem_pool ()
> #5  0x0000001015c6f058 in ?? ()
> #6  0x00000000004a904a in parse_expires (_h=0x14b0d839) at
> parser/parse_expires.c:80
> #7  0x00002b82148fca53 in publ_cback_func (t=<value optimized out>,
> type=<value optimized out>, ps=0x2b8213c21420) at pua_callback.h:72
> #8  0x00002b82139f634b in run_trans_callbacks (type=512,
> trans=0x2b8215c6a838, req=0x0, rpl=0x788b28, code=<value optimized out>) at
> t_hooks.c:208
> #9  0x00002b8213a0ea69 in local_reply (t=0x2b8215c6a838,
> p_msg=0x2b8213c32d38, branch=<value optimized out>, msg_status=<value
> optimized out>,
>     cancel_bitmap=0x2b8215bef6d8) at t_reply.c:1339
> #10 0x00002b8213a11389 in reply_received (p_msg=0x788b28) at t_reply.c:1484
> #11 0x0000000000421448 in forward_reply (msg=0x788b28) at forward.c:559
> #12 0x0000000000456182 in receive_msg (
>     buf=0x754de0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
> 192.168.167.62;branch=z9hG4bKd81f.8d35c3e1.0\r\nTo:
> sip:972529984099 at 192.168.167.62:5060;tag=595f1ec520b32ef8798f023cc8e6d5bc-7180\r\nFrom:
> <sip:972529984099 at 192.168.167.6"..., len=433, rcv_info=0x7fff97928520) at
> receive.c:200
> #13 0x000000000049a354 in udp_rcv_loop () at udp_server.c:492
> #14 0x0000000000429c0d in main (argc=3, argv=<value optimized out>) at
> main.c:818
>
> bt full :
>
> #0  0x00002b8215c6ee9a in ?? ()
> No symbol table info available.
> #1  0x0000000000754f34 in buf.4464 ()
> No symbol table info available.
> #2  0x0000000000754dec in buf.4464 ()
> No symbol table info available.
> #3  0x0000001015c77858 in ?? ()
> No symbol table info available.
> #4  0x000000000078c128 in mem_pool ()
> No symbol table info available.
> #5  0x0000001015c6f058 in ?? ()
> No symbol table info available.
> #6  0x00000000004a904a in parse_expires (_h=0x14b0d839) at
> parser/parse_expires.c:80
>         e = <value optimized out>
>         __FUNCTION__ = "parse_expires"
> #7  0x00002b82148fca53 in publ_cback_func (t=<value optimized out>,
> type=<value optimized out>, ps=0x2b8213c21420) at pua_callback.h:72
>         hdr = (struct hdr_field *) 0x2b8215c77858
>         msg = (struct sip_msg *) 0x788b28
>         presentity = (ua_pres_t *) 0x2b8215c65740
>         hentity = (ua_pres_t *) 0x78c108
>         size = 29
>         lexpire = 16
>         etag = {s = 0x754f34 "a.1280484285.30980.10.2\r\nServer: OpenSIPS
> (1.6.2-notls (x86_64/linux))\r\nContent-Length: 0\r\n\r\n", len = 23}
>         to_del = 365394008
>         __FUNCTION__ = "publ_cback_func"
> #8  0x00002b82139f634b in run_trans_callbacks (type=512,
> trans=0x2b8215c6a838, req=0x0, rpl=0x788b28, code=<value optimized out>) at
> t_hooks.c:208
>         cbp = (struct tm_callback *) 0x2b8215c6f058
>         backup = (struct usr_avp **) 0x764de8
>         trans_backup = (struct cell *) 0x2b8215c6a838
>         __FUNCTION__ = "run_trans_callbacks"
> #9  0x00002b8213a0ea69 in local_reply (t=0x2b8215c6a838,
> p_msg=0x2b8213c32d38, branch=<value optimized out>, msg_status=<value
> optimized out>,
>     cancel_bitmap=0x2b8215bef6d8) at t_reply.c:1339
>         local_store = 0
>         local_winner = 0
>         reply_status = RPS_COMPLETED
>         winning_msg = (struct sip_msg *) 0x788b28
>         winning_code = 200
>         totag_retr = 0
>         __FUNCTION__ = "local_reply"
> #10 0x00002b8213a11389 in reply_received (p_msg=0x788b28) at t_reply.c:1484
> ---Type <return> to continue, or q <return> to quit---
>         msg_status = 200
>         branch = 1
>         reply_status = <value optimized out>
>         timer = <value optimized out>
>         cancel_bitmap = 0
>         uac = (struct ua_client *) 0x2b8215c6aa10
>         t = (struct cell *) 0x2b8215c6a838
>         backup_list = (struct usr_avp **) 0x0
>         __FUNCTION__ = "reply_received"
> #11 0x0000000000421448 in forward_reply (msg=0x788b28) at forward.c:559
>         new_buf = <value optimized out>
>         to = <value optimized out>
>         new_len = <value optimized out>
>         mod = (struct sr_module *) 0x780c08
>         proto = <value optimized out>
>         id = <value optimized out>
>         send_sock = <value optimized out>
>         len = <value optimized out>
>         __FUNCTION__ = "forward_reply"
> #12 0x0000000000456182 in receive_msg (
>     buf=0x754de0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
> 192.168.167.62;branch=z9hG4bKd81f.8d35c3e1.0\r\nTo:
> sip:972529984099 at 192.168.167.62:5060;tag=595f1ec520b32ef8798f023cc8e6d5bc-7180\r\nFrom:
> <sip:972529984099 at 192.168.167.6"..., len=433, rcv_info=0x7fff97928520) at
> receive.c:200
>         msg = (struct sip_msg *) 0x78c108
>         __FUNCTION__ = "receive_msg"
> #13 0x000000000049a354 in udp_rcv_loop () at udp_server.c:492
>         len = 433
>         tmp = 0x13c4 <Address 0x13c4 out of bounds>
>         from = <value optimized out>
>         fromlen = 16
>         ri = {src_ip = {af = 2, len = 4, u = {addrl = {1051175104, 1},
> addr32 = {1051175104, 0, 1, 0}, addr16 = {43200, 16039, 0, 0, 1, 0, 0, 0},
>       addr = "À¨§>\000\000\000\000\001\000\000\000\000\000\000"}}, dst_ip =
> {af = 2, len = 4, u = {addrl = {1051175104, 0}, addr32 = {1051175104, 0, 0,
> 0},
>       addr16 = {43200, 16039, 0, 0, 0, 0, 0, 0}, addr = "À¨§>", '\0'
> <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1,
>   proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2,
> sa_data = "\023ÄÀ¨§>\000\000\000\000\000\000\000"}, sin = {sin_family = 2,
>       sin_port = 50195, sin_addr = {s_addr = 1051175104}, sin_zero =
> "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195,
>       sin6_flowinfo = 1051175104, sin6_addr = {in6_u = {u6_addr8 = '\0'
> <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 = 0x780570}
>         p = (callback_list *) 0x0
>         buf = "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
> 192.168.167.62;branch=z9hG4bKd81f.8d35c3e1.0\r\nTo:
> sip:972529984099 at 192.168.167.62:5060;tag=595f1ec520b32ef8798f023cc8e6d5bc-7180\r\nFrom:
> <sip:972529984099 at 192.168.167.6"...
>         __FUNCTION__ = "udp_rcv_loop"
> ---Type <return> to continue, or q <return> to quit---
> #14 0x0000000000429c0d in main (argc=3, argv=<value optimized out>) at
> main.c:818
>         cfg_log_stderr = <value optimized out>
>         cfg_stream = (FILE *) 0xf9a010
>         c = <value optimized out>
>         r = <value optimized out>
>         tmp = 0x7fff97928f89 ""
>         tmp_len = <value optimized out>
>         port = <value optimized out>
>         proto = <value optimized out>
>         ret = <value optimized out>
>         seed = 2112677932
>         rfd = <value optimized out>
>         __FUNCTION__ = "main"
>
> the output of p *mi_handler :
> No symbol "mi_handler" in current context.
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list