[sr-dev] [kamailio] Textops and Multipart Body - adding ISUP segfaults Kamailio (#240)

andreikabeliy notifications at github.com
Thu Jul 9 18:11:10 CEST 2015


Please find the backtrace:
```
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Copyright (C) 2010 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/usr/sbin/kamailio.debug...done.
done.
(gdb) ^G^Grun -P /var/run/kamailio.pid -m 64 -M 8 -u kamailio -g kamailio -D
Starting program: /usr/sbin/kamailio -P /var/run/kamailio.pid -m 64 -M 8 -u kamailio -g kamailio -D
[Thread debugging using libthread_db enabled]
WARNING: no fork mode 
Detaching after fork from child process 24532.
Detaching after fork from child process 24533.
Detaching after fork from child process 24534.
Detaching after fork from child process 24535.
loading modules under config path: /usr/lib64/kamailio/modules/
Listening on 
             udp: 1.2.3.4:5060
Aliases: 
             udp: kamailiohost:5060


Program received signal SIGABRT, Aborted.
0x00007ffff765d625 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install MariaDB-compat-5.5.39-1.el6.x86_64 glibc-2.12-1.149.el6_6.5.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-33.el6.x86_64 libcom_err-1.41.12-21.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 nss-softokn-freebl-3.14.3-19.el6_6.x86_64 openssl-1.0.1e-30.el6_6.5.x86_64 sssd-client-1.11.6-30.el6_6.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0  0x00007ffff765d625 in raise () from /lib64/libc.so.6
#1  0x00007ffff765ee05 in abort () from /lib64/libc.so.6
#2  0x000000000044fcee in free_lump (lmp=0x7ffff6efd2e0) at data_lump.c:464
#3  0x000000000044fdf1 in free_lump_list (l=0x7ffff6efd270) at data_lump.c:498
#4  0x00000000004507b4 in del_nonshm_lump (lump_list=0x7ffff6efaad8) at data_lump.c:647
#5  0x00000000004d4801 in replace_body (msg=0x7ffff6efa530, txt=...) at msg_translator.c:1618
#6  0x00000000004d768d in check_boundaries (msg=0x7ffff6efa530, send_info=0x7fffebd73958) at msg_translator.c:1821
#7  0x00000000004d7b7a in build_req_buf_from_sip_req (msg=0x7ffff6efa530, returned_len=0x7fffffffad0c, send_info=0x7fffebd73958, mode=128) at msg_translator.c:1926
#8  0x00007ffff31bb752 in prepare_new_uac (t=0x7fffebd736f0, i_req=0x7ffff6efa530, branch=0, uri=0x7fffffffacf0, path=0x7fffffffacd0, next_hop=0x7ffff6efa7b0, fsocket=0x0, snd_flags=..., fproto=0, flags=0, 
    instance=0x7fffffffacc0, ruid=0x7fffffffacb0, location_ua=0x7fffffffaca0) at t_fwd.c:459
#9  0x00007ffff31beaf2 in add_uac (t=0x7fffebd736f0, request=0x7ffff6efa530, uri=0x7ffff6efa7a0, next_hop=0x7ffff6efa7b0, path=0x7ffff6efab60, proxy=0x0, fsocket=0x0, snd_flags=..., proto=0, flags=0, instance=0x7ffff6efab70, 
    ruid=0x7ffff6efab88, location_ua=0x7ffff6efab98) at t_fwd.c:787
#10 0x00007ffff31c5b72 in t_forward_nonack (t=0x7fffebd736f0, p_msg=0x7ffff6efa530, proxy=0x0, proto=0) at t_fwd.c:1655
#11 0x00007ffff31b1f5c in t_relay_to (p_msg=0x7ffff6efa530, proxy=0x0, proto=0, replicate=0) at t_funcs.c:322
#12 0x00007ffff322a7d5 in _w_t_relay_to (p_msg=0x7ffff6efa530, proxy=0x0, force_proto=0) at tm.c:1474
#13 0x00007ffff322b8b2 in w_t_relay (p_msg=0x7ffff6efa530, _foo=0x0, _bar=0x0) at tm.c:1675
#14 0x000000000041dcd4 in do_action (h=0x7fffffffb9b0, a=0x7ffff6e6df48, msg=0x7ffff6efa530) at action.c:1053
#15 0x000000000042a3ea in run_actions (h=0x7fffffffb9b0, a=0x7ffff6e6df48, msg=0x7ffff6efa530) at action.c:1548
#16 0x000000000042aa4f in run_actions_safe (h=0x7fffffffda40, a=0x7ffff6e6df48, msg=0x7ffff6efa530) at action.c:1613
#17 0x0000000000542670 in rval_get_int (h=0x7fffffffda40, msg=0x7ffff6efa530, i=0x7fffffffbe88, rv=0x7ffff6e6e4c0, cache=0x0) at rvalue.c:912
#18 0x00000000005468a8 in rval_expr_eval_int (h=0x7fffffffda40, msg=0x7ffff6efa530, res=0x7fffffffbe88, rve=0x7ffff6e6e4b8) at rvalue.c:1906
#19 0x0000000000546c9e in rval_expr_eval_int (h=0x7fffffffda40, msg=0x7ffff6efa530, res=0x7fffffffc310, rve=0x7ffff6e6ebb8) at rvalue.c:1914
#20 0x000000000041d7be in do_action (h=0x7fffffffda40, a=0x7ffff6e6e240, msg=0x7ffff6efa530) at action.c:1029
#21 0x000000000042a3ea in run_actions (h=0x7fffffffda40, a=0x7ffff6e6cfb8, msg=0x7ffff6efa530) at action.c:1548
#22 0x000000000041a75a in do_action (h=0x7fffffffda40, a=0x7ffff6e99918, msg=0x7ffff6efa530) at action.c:677
#23 0x000000000042a3ea in run_actions (h=0x7fffffffda40, a=0x7ffff6e99688, msg=0x7ffff6efa530) at action.c:1548
#24 0x000000000041dc3d in do_action (h=0x7fffffffda40, a=0x7ffff6e99a38, msg=0x7ffff6efa530) at action.c:1044
#25 0x000000000042a3ea in run_actions (h=0x7fffffffda40, a=0x7ffff6e99a38, msg=0x7ffff6efa530) at action.c:1548
#26 0x000000000041a75a in do_action (h=0x7fffffffda40, a=0x7ffff6e69d08, msg=0x7ffff6efa530) at action.c:677
#27 0x000000000042a3ea in run_actions (h=0x7fffffffda40, a=0x7ffff6e60d18, msg=0x7ffff6efa530) at action.c:1548
#28 0x000000000042ab17 in run_top_route (a=0x7ffff6e60d18, msg=0x7ffff6efa530, c=0x0) at action.c:1634
#29 0x0000000000509330 in receive_msg (
    buf=0xa6d100 "INVITE sip:+447888555888 at 1.2.3.4:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 1.2.3.4:5061;branch=z9hG4bK7ce7d42c\r\nMax-Forwards: 69\r\nFrom: <sip:+447888555888 at 1.2.3.4:5061>;tag=as25deef09\r\nTo: <sip"..., len=1011, rcv_info=0x7fffffffdd30) at receive.c:196
#30 0x0000000000608a2e in udp_rcv_loop () at udp_server.c:495
#31 0x00000000004a5ca4 in main_loop () at main.c:1382
#32 0x00000000004acd36 in main (argc=12, argv=0x7fffffffe158) at main.c:2533
~

```

Let me know if that's what you expect to see.





---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/240#issuecomment-120051474
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150709/7c9ffca7/attachment-0001.html>


More information about the sr-dev mailing list