Replied on GitHub [1]

[1]: https://github.com/OpenSIPS/opensips/issues/1094#issuecomment-297944064

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 27.04.2017 20:35, [email protected] wrote:
Hello Everyone,
I am not sure of it related to mid_registrar crash report, but opensips segfaulting all the time.

Apr 27 13:21:19 casbc00 kernel: opensips[2130]: segfault at 48 ip 0000555606886480 sp 00007ffc3cbb2240 error 4 in opensips[555606854000+21a000] Apr 27 13:21:19 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=2130 comm="opensips" exe="/usr/sbin/opensips" sig=11 Apr 27 13:21:19 casbc00 abrt-hook-ccpp: Process 2130 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)



root@casbc00 ~> [/var/spool/abrt/ccpp-2017-04-27-13:14:10-1695]# gdb coredump
GNU gdb (GDB) Fedora 7.12.1-48.fc25
Copyright (C) 2017 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
[New LWP 1695]
Reading symbols from /usr/sbin/opensips...Reading symbols from /usr/lib/debug/usr/sbin/opensips.debug...done.
done.

warning: Ignoring non-absolute filename: <linux-vdso.so.1>
Missing separate debuginfo for linux-vdso.so.1
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/47/264ddd2cf2d08f1ff742a4f4484c30e5f23bc4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/opensips -P /var/run/opensips/opensips.pid -f /etc/opensips/opensips.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 crcitt_string_array (dst=dst@entry=0x7f8da2d1e161 <from_tag+33> "ff08", src=src@entry=0x40, size=size@entry=1) at crc.c:225
225len=src[i].len;
Missing separate debuginfos, use: dnf debuginfo-install cyrus-sasl-lib-2.1.26-26.2.fc24.x86_64 glibc-2.24-4.fc25.x86_64 keyutils-libs-1.5.9-8.fc24.x86_64 krb5-libs-1.14.4-7.fc25.x86_64 libcom_err-1.43.3-1.fc25.x86_64 libcrypt-nss-2.24-4.fc25.x86_64 libselinux-2.5-13.fc25.x86_64 libxml2-2.9.4-2.fc25.x86_64 nspr-4.13.1-1.fc25.x86_64 nss-3.29.3-1.1.fc25.x86_64 nss-softokn-freebl-3.29.5-1.0.fc25.x86_64 nss-util-3.29.5-1.0.fc25.x86_64 openldap-2.4.44-10.fc25.x86_64 openssl-libs-1.0.2k-1.fc25.x86_64 pcre-8.40-7.fc25.x86_64 postgresql-libs-9.5.6-1.fc25.x86_64 xz-libs-5.2.2-2.fc24.x86_64 zlib-1.2.8-10.fc24.x86_64
(gdb) bt
#0 crcitt_string_array (dst=dst@entry=0x7f8da2d1e161 <from_tag+33> "ff08", src=src@entry=0x40, size=size@entry=1) at crc.c:225 #1 0x00007f8da2aabc75 in generate_fromtag (tag=tag@entry=0x7ffdb3969830, callid=callid@entry=0x40) at uac.c:118 #2 0x00007f8da2aa62b7 in new_auto_dlg_uac (_luri=0x30, _turi=0x20, _ruri=0x0, callid=0x40, _sock=0x0, _d=0x7ffdb39698b8) at dlg.c:210 #3 0x00007f8da15b70b2 in unregister_contact (mri=mri@entry=0x0) at ulcb.c:84 #4 0x00007f8da15b7660 in mid_reg_ct_event (binding=<optimized out>, type=<optimized out>, data=<optimized out>) at ulcb.c:135 #5 0x00007f8da1c2b166 in run_ul_callbacks (binding=0x7f8da7347988, type=8) at ul_callback.h:126
#6  wb_timer (ins_list=0x7f8da73313f0, _r=0x7f8da7347988) at urecord.c:320
#7 timer_urecord (_r=_r@entry=0x7f8da73477d0, ins_list=ins_list@entry=0x7f8da73313f0) at urecord.c:423 #8 0x00007f8da1c1cabb in mem_timer_udomain (_d=<optimized out>) at udomain.c:1147
#9  0x00007f8da1c39351 in synchronize_all_udomains () at dlist.c:803
#10 0x00007f8da1c39a30 in timer (ticks=<optimized out>, param=<optimized out>) at ul_mod.c:518
#11 0x000055ff2a61a85a in handle_timer_job () at timer.c:720
#12 0x000055ff2a6ea78b in handle_io (idx=<optimized out>, event_type=<optimized out>, fm=<optimized out>) at net/net_udp.c:264 #13 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>, repeat=<optimized out>) at ./io_wait_loop.h:229 #14 udp_start_processes (chd_rank=<optimized out>, startup_done=<optimized out>) at net/net_udp.c:389
#15 0x000055ff2a5afa26 in main_loop () at main.c:677
#16 main (argc=<optimized out>, argv=<optimized out>) at main.c:1283
(gdb) bt full
#0 crcitt_string_array (dst=dst@entry=0x7f8da2d1e161 <from_tag+33> "ff08", src=src@entry=0x40, size=size@entry=1) at crc.c:225
        i = <optimized out>
        ccitt = 65535
        c = <optimized out>
        len = <optimized out>
        str_len = 4
        __FUNCTION__ = "crcitt_string_array"
#1 0x00007f8da2aabc75 in generate_fromtag (tag=tag@entry=0x7ffdb3969830, callid=callid@entry=0x40) at uac.c:118
No locals.
#2 0x00007f8da2aa62b7 in new_auto_dlg_uac (_luri=0x30, _turi=0x20, _ruri=0x0, callid=0x40, _sock=0x0, _d=0x7ffdb39698b8) at dlg.c:210
        fromtag = {s = 0x0, len = 0}
        clid = {s = 0x0, len = 0}
#3 0x00007f8da15b70b2 in unregister_contact (mri=mri@entry=0x0) at ulcb.c:84
        dlg = 0x0
        ret = <optimized out>
        __FUNCTION__ = "unregister_contact"
#4 0x00007f8da15b7660 in mid_reg_ct_event (binding=<optimized out>, type=<optimized out>, data=<optimized out>) at ulcb.c:135
        c = <optimized out>
        mri = 0x0
        __FUNCTION__ = "mid_reg_ct_event"
#5 0x00007f8da1c2b166 in run_ul_callbacks (binding=0x7f8da7347988, type=8) at ul_callback.h:126
        cbp = 0x7f8da72cd670
        ct_extra_idx = 0
        aor_extra_idx = 0
        ele = 0x7f8da72cd688
#6  wb_timer (ins_list=0x7f8da73313f0, _r=0x7f8da7347988) at urecord.c:320
        old_state = <optimized out>
        ptr = 0x7f8da7347988
        t = <optimized out>
        op = <optimized out>
        ins_done = <optimized out>
#7 timer_urecord (_r=_r@entry=0x7f8da73477d0, ins_list=ins_list@entry=0x7f8da73313f0) at urecord.c:423
No locals.
#8 0x00007f8da1c1cabb in mem_timer_udomain (_d=<optimized out>) at udomain.c:1147
        ptr = 0x7f8da73477d0
        dest = <optimized out>
        i = 239
        ret = <optimized out>
        flush = 0
        it = {node = 0x0, map = 0x7f8da733d3e8}
        prev = {node = 0x7f8da73478e8, map = 0x7f8da733d3e8}
        __FUNCTION__ = "mem_timer_udomain"
#9  0x00007f8da1c39351 in synchronize_all_udomains () at dlist.c:803
        res = 0
        ptr = 0x7f8da73312e8
#10 0x00007f8da1c39a30 in timer (ticks=<optimized out>, param=<optimized out>) at ul_mod.c:518
---Type <return> to continue, or q <return> to quit---
        __FUNCTION__ = "timer"
#11 0x000055ff2a61a85a in handle_timer_job () at timer.c:720
        t = 0x7f8da72a5538
        l = <optimized out>
        __FUNCTION__ = "handle_timer_job"
#12 0x000055ff2a6ea78b in handle_io (idx=<optimized out>, event_type=<optimized out>, fm=<optimized out>) at net/net_udp.c:264
No locals.
#13 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>, repeat=<optimized out>) at ./io_wait_loop.h:229
        ret = <optimized out>
        e = <optimized out>
        n = 1
        r = 2
#14 udp_start_processes (chd_rank=<optimized out>, startup_done=<optimized out>) at net/net_udp.c:389
        si = <optimized out>
        load_p = 0x7f8da7346a30
        pid = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "udp_start_processes"
#15 0x000055ff2a5afa26 in main_loop () at main.c:677
        startup_done = 0x0
        chd_rank = 1
        chd_rank = 1
#16 main (argc=<optimized out>, argv=<optimized out>) at main.c:1283
        cfg_stream = 0x55ff2bef5010
        c = <optimized out>
        r = <optimized out>
        tmp = 0x7ffdb396bf14 ""
        tmp_len = <optimized out>
        port = <optimized out>
        proto = <optimized out>
        protos_no = <optimized out>
options = 0x55ff2a732678 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
        seed = 1966415379
        rfd = <optimized out>
        __FUNCTION__ = "main"



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to