Hello!

I am testing Fraud_detection on Opensips 2.1

1) I noticed an Opensips crash after fifo fraud_relaod. GDB from core in 
attachment. 
2) In the log file i can see such messages "CRITICAL:core:sig_alarm_abort: BUG 
- shutdown timeout triggered, dying..."
3) Fraud detection doesn`t work because it shows "code 1" of check_fraud 
function during every call, although the function exports event 
"E_FRD_CRITICAL".

| ruleid | profileid | prefix | start_hour | end_hour | daysoftheweek | 
cpm_warning | cpm_critical | call_duration_warning | call_duration_critical | 
total_calls_warning | total_calls_critical | concurrent_calls_warning | 
concurrent_calls_critical | sequential_calls_warning | 
sequential_calls_critical |
+--------+-----------+--------+------------+----------+---------------+-------------+--------------+-----------------------+------------------------+---------------------+----------------------+--------------------------+---------------------------+--------------------------+---------------------------+
|      1 |         1 | 8812   | 00:00      | 23:59    | Mon-Fri       |         
  2 |           30 |                     1 |                      2 |           
        3 |                    5 |                        1 |                   
      2 |                        3 |                         4 |

I made more than 5 calls but there is no "code -2" detected.

Thank you for any help.

mailto:[email protected]
 gdb /usr/local/opensips2.1/sbin/opensips /opensipscore/core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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-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"...
Reading symbols from /usr/local/opensips2.1/sbin/opensips...done.
[New LWP 7217]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/opensips2.1/sbin/opensips -P 
/sock/opensips.pid -u opensips -w /open'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f4cf2e27cc9 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0  0x00007f4cf2e27cc9 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 7217
        selftid = 7217
#1  0x00007f4cf2e2b0d8 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x8, sa_sigaction = 0x8}, 
sa_mask = {__val = {64, 2000277491456, 139968477283671, 5, 0, 0, 
139968468974888, 1190321981, 2000277491456,
              1189216652, 139968477312277, 1, 139968469976411, 0, 0, 
139968472872800}}, sa_flags = 0, sa_restorer = 0x0}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x000000000044459b in sig_alarm_abort (signo=<optimized out>) at main.c:403
        __FUNCTION__ = "sig_alarm_abort"
#3  <signal handler called>
No locals.
#4  0x000000000050d249 in fm_status (qm=0x7f4cad2c7000) at mem/f_malloc.c:620
        f = 0x7f4cb3f20d30
        i = 1190321981
        j = 1189216652
        h = 8
        unused = 0
        size = 2000277491456
        __FUNCTION__ = "fm_status"
#5  0x0000000000444980 in shm_status () at mem/shm_mem.h:434
No locals.
#6  cleanup (show_status=show_status@entry=1) at main.c:337
        __FUNCTION__ = "cleanup"
#7  0x000000000044530f in handle_sigs () at main.c:445
        chld = <optimized out>
        chld_status = 0
        overall_status = 0
        i = <optimized out>
        do_exit = <optimized out>
        __FUNCTION__ = "handle_sigs"
#8  0x0000000000419aff in main_loop () at main.c:765
        startup_done = <optimized out>
        chd_rank = 16
#9  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 = 0x7fff6ab20852 ""
        tmp_len = <optimized out>
        port = <optimized out>
        proto = <optimized out>
        options = 0x5c7be0 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
        seed = 3049959710
        __FUNCTION__ = "main"
(gdb)
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to