Liviu, new data about problem are in attachment.

 mailto:[email protected]


That type of backtrace is a consequence of an earlier, undetected problem. 
Fastest way to catch it is to:

* make menuconfig -> Options -> Flags -> deselect F_MALLOC, select DBG_QM_MALLOC
* recompile, install and try to reproduce the issue again - we should spot the 
problem early on now!
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.03.2016 11:57, Denis wrote:
Re: [OpenSIPS-Users] Opensips2.1 crash Hello, Liviu

Yes you were right about full path. Thank you.

In attachment a full stack trace lead to the crash.


mailto:[email protected]


Hi Denis,

By default, the current build system will include the "-g" debugging symbols 
compiler flag of gcc. Run this in order to make sure your opensips binary 
includes them:

objdump -h /usr/local/sbin/opensips | grep debug

If it returns a few debug sections, then they are included, and most likely you 
are not passing the full/correct path for the opensips binary to gdb. (Hint: 
when GDB starts, does it say "opensips: No such file or directory"?)

If the above command returns nothing, then we'll have to edit some Makefile 
variables to force the "-g" flag.
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.03.2016 07:46, Denis wrote:
Re: [OpenSIPS-Users] Opensips2.1 crash Hello Bogdan,

Opensips has been downloaded/compiled/installed from git. 
Were should i check "debug symbols" for installation? 

Thank you.

mailto:[email protected]


Hi Denis,

I guess you have opensips installed from packages - please install the package 
with the debug symbols, so that the backtrace will get more sense.

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 28.03.2016 16:00, Denis wrote:
Opensips2.1 crash Hello!

I am going to upgrade my Opensips to 2.1. from 1.11.6.
Opensips 2.1. had been installed on a test server and during the test i notice 
periodic Opensips crash. And i cannot understand the reason.

Thank you for any help.

P.S. In attachment you can find PID of processes before the crash, information 
from log and core file.


mailto:[email protected] 

_______________________________________________
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
PID:

Process::  ID=0 PID=9969 Type=attendant
Process::  ID=1 PID=9981 Type=event-route handler
Process::  ID=2 PID=9982 Type=RTPP timeout receiver
Process::  ID=3 PID=9983 Type=MI Datagram
Process::  ID=4 PID=9984 Type=MI FIFO
Process::  ID=5 PID=9985 Type=time_keeper
Process::  ID=6 PID=9986 Type=timer
Process::  ID=7 PID=9989 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=8 PID=9991 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=9 PID=9992 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=10 PID=9993 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=11 PID=9995 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=12 PID=9999 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=13 PID=10000 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=14 PID=10003 Type=SIP receiver udp:213.170.100.146:5060
Process::  ID=15 PID=10004 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=16 PID=10005 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=17 PID=10008 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=18 PID=10011 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=19 PID=10013 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=20 PID=10014 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=21 PID=10016 Type=SIP receiver udp:213.170.100.146:5068
Process::  ID=22 PID=10017 Type=SIP receiver udp:213.170.100.146:5068



LOG:
https://cloud.mail.ru/public/FCnv/E9cuhy7tU


GDB (bt full):
(gdb) bt full
#0  0x00007fdd142a1cc9 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 9984
        selftid = 9984
#1  0x00007fdd142a50d8 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, 
sa_mask = {__val = {140586938865568, 140586333376512, 140587510916439, 
140733193388037, 0, 140733890001775,
              140587502607656, 17361641481138401520, 140586333376512, 
140586534354264, 140587510945045, 0, 0, 140587506505616, 4294967295, 0}}, 
sa_flags = 0, sa_restorer = 0x26c0d30}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x000000000050406f in qm_debug_frag (qm=0x7fdcce761000, f=<optimized out>) 
at mem/q_malloc.c:144
No locals.
#3  0x000000000050488b in qm_free (qm=0x7fdcce761000, p=p@entry=0x7fdcda70bd88, 
file=file@entry=0x7fdcf28d17a0 "dr_api_internal.c",
    func=func@entry=0x7fdcf28d1960 <__FUNCTION__.8000> "del_tree_api", 
line=line@entry=135) at mem/q_malloc.c:474
        f = 0x7fdcda70bd58
        prev = 0x0
        next = 0x7fdcda70beb0
        size = 248
        __FUNCTION__ = "qm_free"
#4  0x00007fdcf2899f3a in del_tree_api (t=0x7fdcda70bd88) at 
dr_api_internal.c:135
        i = <optimized out>
        j = <optimized out>
        __FUNCTION__ = "del_tree_api"
#5  0x00007fdcf2899eb0 in del_tree_api (t=0x7fdcda70bc30) at 
dr_api_internal.c:133
        i = 1
        j = <optimized out>
        __FUNCTION__ = "del_tree_api"
#6  0x00007fdcf2899eb0 in del_tree_api (t=0x7fdcda70bad8) at 
dr_api_internal.c:133
        i = 8
        j = <optimized out>
        __FUNCTION__ = "del_tree_api"
#7  0x00007fdcf2899eb0 in del_tree_api (t=0x7fdcda70b548) at 
dr_api_internal.c:133
        i = 8
        j = <optimized out>
        __FUNCTION__ = "del_tree_api"
#8  0x00007fdcf2899fd1 in free_dr_head (partition=0x7fdcda70b4c8) at 
dr_api_internal.c:141
        j = <optimized out>
        __FUNCTION__ = "free_dr_head"
#9  0x00007fdcef3b4918 in frd_destroy_data_unsafe 
(dr_head=dr_head@entry=0x7fdcda70b4c8, fl=fl@entry=0x0) at frd_load.c:423
        it = <optimized out>
        aux = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "frd_destroy_data_unsafe"
#10 0x00007fdcef3b5baf in frd_reload_data () at frd_load.c:471
        new_head = <optimized out>
        old_head = 0x7fdcda70b4c8
        __FUNCTION__ = "frd_reload_data"
        new_list = <optimized out>
        old_list = 0x0
#11 0x00007fdcef3aefbc in mi_reload (cmd_tree=<optimized out>, param=<optimized 
out>) at fraud_detection.c:532
No locals.
#12 0x00007fdcf2ef8e3d in run_mi_cmd (cmd=<optimized out>, cmd=<optimized out>, 
param=0x26b5750, f=<optimized out>, t=0x7fdcf5087010) at ../../mi/mi.h:107
        ret = <optimized out>
#13 mi_fifo_server (fifo_stream=fifo_stream@entry=0x26b8a00) at fifo_fnc.c:586
        mi_cmd = <optimized out>
        hdl = 0x0
---Type <return> to continue, or q <return> to quit---
        line_len = 33
        file_sep = <optimized out>
        command = <optimized out>
        file = <optimized out>
        f = <optimized out>
        reply_stream = 0x26b5750
        __FUNCTION__ = "mi_fifo_server"
#14 0x00007fdcf2efa22f in fifo_process (rank=<optimized out>) at mi_fifo.c:214
        fifo_stream = 0x26b8a00
        __FUNCTION__ = "fifo_process"
#15 0x00000000004c69d0 in start_module_procs () at sr_module.c:763
        m = 0x7fdcf4ea1fa0
        n = 0
        l = 0
        x = <optimized out>
        __FUNCTION__ = "start_module_procs"
#16 0x0000000000418b7d in main_loop () at main.c:699
        startup_done = 0x0
        chd_rank = 0
#17 main (argc=<optimized out>, argv=<optimized out>) at main.c:1280
        cfg_log_stderr = <optimized out>
        cfg_stream = <optimized out>
        c = <optimized out>
        r = <optimized out>
        tmp = 0x7fff29858852 ""
        tmp_len = <optimized out>
        port = <optimized out>
        proto = <optimized out>
        options = 0x5ba5e0 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
        seed = 641332647
        __FUNCTION__ = "main"


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

Reply via email to