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=9950 Type=attendant
Process:: ID=1 PID=9962 Type=event-route handler
Process:: ID=2 PID=9963 Type=RTPP timeout receiver
Process:: ID=3 PID=9964 Type=MI Datagram
Process:: ID=4 PID=9966 Type=MI FIFO
Process:: ID=5 PID=9968 Type=time_keeper
Process:: ID=6 PID=9969 Type=timer
Process:: ID=7 PID=9970 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=8 PID=9971 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=9 PID=9973 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=10 PID=9974 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=11 PID=9977 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=12 PID=9978 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=13 PID=9981 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=14 PID=9982 Type=SIP receiver udp:213.170.100.146:5060
Process:: ID=15 PID=9984 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=16 PID=9985 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=17 PID=9989 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=18 PID=9990 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=19 PID=9991 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=20 PID=9993 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=21 PID=9995 Type=SIP receiver udp:213.170.100.146:5068
Process:: ID=22 PID=9999 Type=SIP receiver udp:213.170.100.146:5068
LOG:
Mar 28 15:49:32 opensips-mirror /usr/local/opensips2.1/sbin/opensips[9950]:
INFO:core:handle_sigs: child process 9966 exited by a signal 11
Mar 28 15:49:32 opensips-mirror /usr/local/opensips2.1/sbin/opensips[9950]:
INFO:core:handle_sigs: core was generated
Mar 28 15:49:32 opensips-mirror /usr/local/opensips2.1/sbin/opensips[9950]:
INFO:core:handle_sigs: terminating due to SIGCHLD
Mar 28 15:49:32 opensips-mirror /usr/local/opensips2.1/sbin/opensips[9982]:
INFO:core:sig_usr: signal 15 received
Mar 28 15:49:32 opensips-mirror /usr/local/opensips2.1/sbin/opensips[9964]:
INFO:core:sig_usr: signal 15 received
GDB (bt full):
(gdb) bt full
#0 0x000000000050c2fc in fm_remove_free (n=0x7f36cd10b6a0, qm=0x7f36c6850000)
at mem/f_malloc.c:171
pf = 0x0
hash = 8
#1 fm_malloc (qm=0x7f36c6850000, size=24, size@entry=20) at mem/f_malloc.c:385
frag = 0x7f36cd10b6a0
n = <optimized out>
hash = <optimized out>
__FUNCTION__ = "fm_malloc"
#2 0x00000000004de9e6 in shm_malloc (size=20) at mem/shm_mem.h:333
p = <optimized out>
#3 tr_byxxx_init (_bxp=0x7f36cd10b310, _nr=_nr@entry=5) at time_rec.c:274
__FUNCTION__ = "tr_byxxx_init"
#4 0x00007f36e74a73b1 in create_time_rec (trec=<optimized out>,
week_days=<synthetic pointer>, time_end=0x7ffca2eac8f0,
time_start=0x7ffca2eac8e0) at frd_load.c:258
i = <optimized out>
j = <optimized out>
end_h = 23
end_m = 59
day_set = 62
#5 frd_load_data (fl=<synthetic pointer>, drp=<optimized out>) at
frd_load.c:371
rid = <optimized out>
start_time = {s = 0x125ade9 "00:00", len = 5}
fl_it = <optimized out>
prefix = {s = 0x125ade4 "8812", len = 4}
end_time = {s = 0x125adef "23:59", len = 5}
days = <optimized out>
res = 0x7f36ed0c95f8
values = 0x7f36ed0c9f78
query_cols = {0x7f36e76ac830 <rid_col>, 0x7f36e76ac820 <pid_col>,
0x7f36e76ac810 <prefix_col>, 0x7f36e76ac800 <start_h_col>, 0x7f36e76ac7f0
<end_h_col>, 0x7f36e76ac7e0 <days_col>,
0x7f36e76ac7d0 <cpm_thresh_warn_col>, 0x7f36e76ac7c0
<cpm_thresh_crit_col>, 0x7f36e76ac7b0 <calldur_thresh_warn_col>, 0x7f36e76ac7a0
<calldur_thresh_crit_col>,
0x7f36e76ac790 <totalc_thresh_warn_col>, 0x7f36e76ac780
<totalc_thresh_crit_col>, 0x7f36e76ac770 <concalls_thresh_warn_col>,
0x7f36e76ac760 <concalls_thresh_crit_col>,
0x7f36e76ac750 <seqcalls_thresh_warn_col>, 0x7f36e76ac740
<seqcalls_thresh_crit_col>}
row_count = <optimized out>
i = <optimized out>
pid = <optimized out>
no_rows = <optimized out>
rows = <optimized out>
j = <optimized out>
#6 frd_reload_data () at frd_load.c:459
new_head = <optimized out>
old_head = <optimized out>
__FUNCTION__ = "frd_reload_data"
new_list = <optimized out>
old_list = <optimized out>
#7 0x00007f36e749f214 in mi_reload (cmd_tree=<optimized out>, param=<optimized
out>) at fraud_detection.c:532
No locals.
#8 0x00007f36eb002087 in run_mi_cmd (cmd=<optimized out>, cmd=<optimized out>,
param=0x124f750, f=<optimized out>, t=0x7f36ed0c7bc0) at ../../mi/mi.h:107
ret = <optimized out>
#9 mi_fifo_server (fifo_stream=fifo_stream@entry=0x1252a00) at fifo_fnc.c:586
mi_cmd = <optimized out>
mi_rpl = 0x7f36eb00a9ff <mi_flush_tree>
hdl = 0x0
line_len = 33
file_sep = <optimized out>
command = <optimized out>
file = <optimized out>
---Type <return> to continue, or q <return> to quit---
f = <optimized out>
reply_stream = 0x124f750
__FUNCTION__ = "mi_fifo_server"
#10 0x00007f36eb0035b8 in fifo_process (rank=<optimized out>) at mi_fifo.c:214
fifo_stream = 0x1252a00
__FUNCTION__ = "fifo_process"
#11 0x00000000004ce250 in start_module_procs () at sr_module.c:763
m = 0x7f36ecf83090
n = 0
l = 0
x = <optimized out>
__FUNCTION__ = "start_module_procs"
#12 0x00000000004196ff in main_loop () at main.c:699
startup_done = 0x0
chd_rank = 0
#13 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 = 0x7ffca2eae852 ""
tmp_len = <optimized out>
port = <optimized out>
proto = <optimized out>
options = 0x5c79e0 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
seed = 1251546046
__FUNCTION__ = "main"
(gdb)
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users