[OpenSIPS-Devel] [opensips] 2.1.1 segfault (#782)

ankogan notifications at github.com
Sat Feb 6 08:48:58 CET 2016


Hi!

Got a segfault
Backtrace:

# gdb /usr/sbin/opensips coreopensipssig112472
GNU gdb (Debian 771+dfsg-5) 771
Copyright (C) 2014 Free Software Foundation, Inc
License GPLv3+: GNU GPL version 3 or later <http://gnuorg/licenses/gplhtml>
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 "x86_64-linux-gnu"
Type "show configuration" for configuration details
For bug reporting instructions, please see:
<http://wwwgnuorg/software/gdb/bugs/>
Find the GDB manual and other documentation resources online at:
<http://wwwgnuorg/software/gdb/documentation/>
For help, type "help"
Type "apropos word" to search for commands related to "word"
Reading symbols from /usr/sbin/opensipsReading symbols from /usr/lib/debug/build-id/00/d3f7460856ef4d6666bbe206363e1b0a1ac286debugdone
done
[New LWP 2472]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_dbso1"
Core was generated by `/usr/sbin/opensips -P /var/run/opensips/opensipspid -m 2048 -M 256 -u opensips'
Program terminated with signal SIGSEGV, Segmentation fault
#0  internal_search_ID_avp (flags=0, id=3, avp=0x3339363423313a70) at usr_avpc:316
316                     if ( id==avp->id && (flags==0 || (flags&avp->flags))) {
(gdb) bt
#0  internal_search_ID_avp (flags=0, id=3, avp=0x3339363423313a70) at usr_avpc:316
#1  search_next_avp (avp=0x7f2e29cd9970, val=0x0) at usr_avpc:370
#2  0x000000000044a085 in next_branches (msg=0x7f2ea63965c0 <faked_req>) at serializec:399
#3  0x000000000042ae16 in do_action (a=0x7f2ea9ae8170, msg=0x7f2ea63965c0 <faked_req>) at actionc:1956
#4  0x0000000000433710 in run_action_list (a=<optimized out>, msg=0x7f2ea63965c0 <faked_req>) at actionc:169
#5  0x000000000045a5bc in eval_elem (e=0x7f2ea9ae8250, msg=0x7f2ea63965c0 <faked_req>, val=0x7fff803741c0) at routec:1643
#6  0x0000000000459e1d in eval_expr (e=0x7f2ea9ae8250, msg=msg at entry=0x7f2ea63965c0 <faked_req>, val=val at entry=0x7fff803741c0)
    at routec:1988
#7  0x000000000042a794 in do_assign (msg=0x7f2ea63965c0 <faked_req>, a=0x7f2ea9ae82a0) at actionc:239
#8  0x000000000042bfe3 in do_action (a=0x7f2ea9ae82a0, msg=0x7f2ea63965c0 <faked_req>) at actionc:1973
#9  0x0000000000433710 in run_action_list (a=a at entry=0x7f2ea9ae7f78, msg=msg at entry=0x7f2ea63965c0 <faked_req>) at actionc:169
#10 0x0000000000433a78 in run_actions (msg=0x7f2ea63965c0 <faked_req>, a=0x7f2ea9ae7f78) at actionc:134
#11 run_top_route (a=0x7f2ea9ae7f78, msg=0x7f2ea63965c0 <faked_req>) at actionc:209
#12 0x00007f2ea614a410 in run_failure_handlers (t=<optimized out>) at t_replyc:581
#13 t_should_relay_response (Trans=0x7f2e34a8d4d8, new_code=3, branch=714975864, should_store=0x7fff80374a30,
    should_relay=0x7fff80374a2c, cancel_bitmap=0x7f2e29cd9958, reply=0x1ff828b8) at t_replyc:911
#14 0x00007f2ea614a4a8 in relay_reply (t=0x7f2e34a8d4d8, p_msg=0x7f2ea9afc520, branch=2, msg_status=404,
    cancel_bitmap=0x7f2e23daf190) at t_replyc:1125
#15 0x00007f2ea614da3d in reply_received (p_msg=0x7f2ea9afc520) at t_replyc:1505
#16 0x0000000000426ebc in forward_reply (msg=0x7f2ea9afc520) at forwardc:517
#17 0x0000000000436098 in receive_msg (
    buf=0x7d08c0 <buf> "SIP/20 404 Not Found\r\nVia: SIP/20/UDP 19216801:5060;branch=z9hG4bK50093df681a32\r\nFrom: 93293147305 <sip:93293147305 at 19216801;user=phone>;tag=9501SIPpTag004160354\r\nTo: 11#17151248386 <sip:1#1", len=0,
    rcv_info=0x3) at receivec:243
#18 0x0000000000519ce3 in udp_read_req (si=<optimized out>, bytes_read=<optimized out>) at net/proto_udp/proto_udpc:190
#19 0x00000000005083a7 in handle_io (fm=<optimized out>, fm=<optimized out>, fm=<optimized out>, idx=<optimized out>,
    event_type=<optimized out>) at net/net_udpc:260
#20 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>, repeat=<optimized out>) at net//io_wait_looph:190
#21 udp_rcv_loop (si=0x1) at net/net_udpc:308
#22 0x000000000050940b in udp_start_processes (chd_rank=chd_rank at entry=0x7bd57c <chd_rank>,
    startup_done=startup_done at entry=0x0) at net/net_udpc:448
#23 0x0000000000419d85 in main_loop () at mainc:722
---Type <return> to continue, or q <return> to quit---
#24 main (argc=<optimized out>, argv=<optimized out>) at mainc:1259
(gdb)



---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160205/e667016d/attachment-0001.htm>


More information about the Devel mailing list