<p>I have updated Kamailio from repo:<br>
<a href="http://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/" rel="nofollow">http://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/</a></p>
<p>So I hope your patch is there:<br>
[root@kamailio]# kamailio -v<br>
version: kamailio 5.2.1 (x86_64/linux) 947769<br>
compiled on 20:48:14 Feb 26 2019 with gcc 4.8.5</p>
<p>But got crash again:</p>
<pre lang="12(9454)" data-meta="INFO: cdp [timer.c:205]: timer_process(): Timer process starting up..."><code> 1(9443) DEBUG: ims_charging [ro_timer.c:252]: ro_timer_routine(): getting expired ro-sessions 1(9443) DEBUG: ims_charging [ro_timer.c:211]: get_expired_ro_sessions(): my ticks are [72551102]
9(9451) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp receiver peer unknown Serviced Peers: ---
9(9451) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------
10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---
10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: -1 Recv.State: 0
10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------
12(9454) DEBUG: cdp [peermanager.c:263]: peer_timer(): peer_timer(): taking care of peers...
12(9454) DEBUG: cdp [peermanager.c:280]: peer_timer(): peer_timer(): Peer diameter.dev State 0
12(9454) DEBUG: cdp [peerstatemachine.c:90]: sm_process(): sm_process(): Peer diameter.dev State Closed Event Start
12(9454) INFO: cdp [peerstatemachine.c:525]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer diameter.dev
12(9454) INFO: cdp [receiver.c:875]: peer_connect(): peer_connect(): Trying to connect to 10.10.10.143 port 3868
12(9454) DEBUG: cdp [receiver.c:886]: peer_connect(): peer_connect(): connetting to peer via src addr=10.10.10.12712(9454) INFO: cdp [receiver.c:954]: peer_connect(): peer_connect(): Peer diameter.dev:3868 connected
10(9452) DEBUG: cdp [receiver.c:702]: receive_loop(): select_recv(): There is something on the fd exchange pipe
10(9452) DEBUG: cdp [receiver.c:711]: receive_loop(): select_recv(): fd exchange pipe says fd [18] for peer 0x7f2ac7c48b60:[diameter.dev]
10(9452) DEBUG: cdp [peerstatemachine.c:90]: sm_process(): sm_process(): Peer diameter.dev State Wait_Conn_Ack Event I_Rcv_Conn_Ack
10(9452) DEBUG: cdp [diameter_msg.c:184]: AAANewMessage(): AAANewMessage: param session received null and it's a request!!
10(9452) ERROR: cdp [peerstatemachine.c:634]: I_Snd_CER(): I_Snd_CER(): Error on finding local host address > Socket operation on non-socket
10(9452) DEBUG: cdp [diameter_msg.c:81]: AAABuildMsgBuffer(): AAABuildMsgBuffer(): len=216
10(9452) DEBUG: cdp [receiver.c:1013]: peer_send_msg(): peer_send_msg(): Pipe push [0x7f2ac7c8a8f0]
10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---
10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 0
10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------
10(9452) DEBUG: cdp [receiver.c:756]: receive_loop(): select_recv(): There is something on the send pipe
10(9452) DEBUG: cdp [receiver.c:769]: receive_loop(): select_recv(): Send pipe says [0x7f2ac7c8a8f0] 8
10(9452) DEBUG: cdp [diameter_msg.c:410]: AAAFreeMessage(): AAAFreeMessage: Freeing message (0x7f2ac7c8a8f0) 257
10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---
10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 0
10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------
12(9454) DEBUG: cdp [peermanager.c:143]: log_peer_list(): --- Peer List: ---
12(9454) DEBUG: cdp [peermanager.c:145]: log_peer_list(): State of peer: Wait_I_CEA FQDN: diameter.dev Port: 3868 Is dynamic
12(9454) DEBUG: cdp [peermanager.c:149]: log_peer_list(): ------------------
10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---
10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 1
10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------
10(9452) DEBUG: cdp [receiver.c:579]: do_receive(): receive_loop(): [diameter.dev] Recv Version 1 Length 216
10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---
10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 2
10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------
10(9452) DEBUG: cdp [receiver.c:1107]: receive_message(): receive_message(): [diameter.dev] Recv msg 257
10(9452) DEBUG: cdp [peerstatemachine.c:90]: sm_process(): sm_process(): Peer diameter.dev State Wait_I_CEA Event I_Rcv_CEA
10(9452) DEBUG: cdp [peerstatemachine.c:698]: count_Supported_Vendor_Id_AVPS(): Found 1 Supported_Vendor AVPS10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 0 of maximum 5
10(9452) DEBUG: cdp [peerstatemachine.c:750]: save_peer_applications(): Found Supported Vendor for Application 0: 10415
10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 1 of maximum 5
10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 2 of maximum 5
10(9452) DEBUG: cdp [peerstatemachine.c:750]: save_peer_applications(): Found Supported Vendor for Application 0: 10415
10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 3 of maximum 5
10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 4 of maximum 5
10(9452) DEBUG: cdp [peerstatemachine.c:763]: save_peer_applications(): Found Supported Vendor for Application 1: 10415
10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 5 of maximum 5
10(9452) CRITICAL: <core> [core/mem/q_malloc.c:149]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail overwritten(1000028af, abcdefed)[0x7f2ac7c8b628:0x7f2ac7c8b660]! Memory allocator was called from cdp: diameter_avp.c:142. Fragment marked by cdp: peerstatemachine.c:732. Exec from core/mem/q_malloc.c:384.
0(9442) ALERT: <core> [main.c:756]: handle_sigs(): child process 9452 exited by a signal 6
0(9442) ALERT: <core> [main.c:759]: handle_sigs(): core was generated
0(9442) INFO: <core> [main.c:778]: handle_sigs(): dont_fork turned on, living on
</code></pre>
<p><strong>core.9442</strong></p>
<pre><code>[root@kamailio]# gdb kamailio core.9442
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 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.
[New LWP 9442]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `kamailio -f kamailio.cfg -D 2 -E'.
Program terminated with signal 6, Aborted.
#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-260.el7_6.3.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-37.el7_6.x86_64 libcom_err-1.42.9-13.el7.x86_64 libgcc-4.8.5-36.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libstdc++-4.8.5-36.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 mariadb-libs-5.5.60-1.el7_5.x86_64 openssl-libs-1.0.2k-16.el7.x86_64 pcre-8.32-17.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-18.el7.x86_64
(gdb) bt full
#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007f2ad44bb8f8 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x000000000041a734 in sig_alarm_abort (signo=14) at main.c:663
__FUNCTION__ = "sig_alarm_abort"
#3 <signal handler called>
No symbol table info available.
#4 0x00007f2ad457c1c7 in syscall () from /lib64/libc.so.6
No symbol table info available.
#5 0x00007f2acca87aee in futex_get (lock=0x7f2ac7c489a0) at ../../core/futexlock.h:121
v = 1
i = 0
#6 0x00007f2acca881c4 in peer_manager_destroy () at peermanager.c:110
foo = 0x2
bar = 0x200000001
__FUNCTION__ = "peer_manager_destroy"
#7 0x00007f2acca702b4 in diameter_peer_destroy () at diameter_peer.c:392
pid = 9447
status = 32554
h = 0x7f2ad3c83010
__FUNCTION__ = "diameter_peer_destroy"
#8 0x00007f2acca60fb6 in cdp_exit () at cdp_mod.c:256
__FUNCTION__ = "cdp_exit"
#9 0x00000000005627e1 in destroy_modules () at core/sr_module.c:732
t = 0x7f2ad3d2a918
foo = 0x7f2ad3d2a078
__FUNCTION__ = "destroy_modules"
#10 0x00000000004192eb in cleanup (show_status=1) at main.c:537
memlog = 0
__FUNCTION__ = "cleanup"
#11 0x000000000041aa1a in shutdown_children (sig=15, show_status=1) at main.c:680
__FUNCTION__ = "shutdown_children"
#12 0x000000000041b43c in handle_sigs () at main.c:711
chld = 0
chld_status = 0
any_chld_stopped = 0
memlog = 0
__FUNCTION__ = "handle_sigs"
#13 0x000000000041dc08 in sig_usr (signo=2) at main.c:824
memlog = 0
__FUNCTION__ = "sig_usr"
#14 <signal handler called>
No symbol table info available.
#15 0x00007f2ad4582da1 in __recvfrom_nocancel () from /lib64/libc.so.6
No symbol table info available.
#16 0x00000000004b4afa in udp_rcv_loop () at core/udp_server.c:460
len = 32767
buf = '\000' <repeats 65535 times>
tmp = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>
from = 0x7f2ad3df99f0
fromlen = 16
ri = {src_ip = {af = 8065648, len = 0, u = {addrl = {139818365353984, 140733193388033}, addr32 = {0, 32554, 1, 32767}, addr16 = {0, 0, 32554, 0, 1, 0, 32767, 0},
addr = "\000\000\000\000*\177\000\000\001\000\000\000\377\177\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {2132753418, 0}, addr32 = {2132753418, 0, 0, 0}, addr16 = {15370, 32543, 0, 0, 0,
0, 0, 0}, addr = "\n<\037\177", '\000' <repeats 11 times>}}, src_port = 0, dst_port = 5060, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 0,
sa_data = "\000\000\301\333|\000\000\000\000\000H<\321", <incomplete sequence \323>}, sin = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 8182721},
sin_zero = "\000\000\000\000H<\321", <incomplete sequence \323>}, sin6 = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 8182721, sin6_addr = {__in6_u = {
__u6_addr8 = "\000\000\000\000H<\321\323*\177\000\000\210%\340", <incomplete sequence \323>, __u6_addr16 = {0, 0, 15432, 54225, 32554, 0, 9608, 54240}, __u6_addr32 = {0, 3553705032, 32554,
---Type <return> to continue, or q <return> to quit---
3554682248}}}, sin6_scope_id = 32554}}, bind_address = 0x7f2ad3d13ac8, proto = 1 '\001'}
evp = {data = 0x0, rcv = 0x0, dst = 0x0}
printbuf = "\230\003|\000\000\000\000\000x\356z\000\000\000\000\000\340\026W\247\377\177\000\000\n\303\n\314*\177\000\000\020*\v\314*\177\000\000\001", '\000' <repeats 15 times>, "\036\000\000\000\024\000\000\000\n\000\000\000\001\000\000\000t#\310\307*\177\000\000\000\000\000\000\000\000\000\000\266&\346\313*\177\000\000\230\003|", '\000' <repeats 13 times>, "`\030W\247\377\177\000\000\207rM\324*\177\000\000\230\003|\000\000\000\000\000\060\000\000\000\060\000\000\000\330\027W\247\377\177\000\000\360\026W\247\377\177\000\000p\022{\000\000\000\000\000\000\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\342$\000\000\000\000\000\000\230\003|\000\000\000\000\000"...
i = 0
j = 0
l = 67108864
__FUNCTION__ = "udp_rcv_loop"
#17 0x0000000000423854 in main_loop () at main.c:1449
i = 0
pid = 9444
si = 0x1004189a0
si_desc = "@\212\337\323*\177\000\000\200\243\331\323*\177\000\000\000\000\000\000\003\000\000\000\270>\322\323*\177\000\000\000\032W\247\001\000\000\000\300\026\335\323*\177\000\000\000\032W\247\377\177\000\000\016\000\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\200\000\000\000\000\000\223\003|", '\000' <repeats 13 times>, "\320\034W\247\377\177\000\000\207rM\324*\177\000\000@\360x\000\000\000\000\000\220\205\335\323*\177\000"
nrprocs = 0
woneinit = 0
__FUNCTION__ = "main_loop"
#18 0x000000000042c4e9 in main (argc=6, argv=0x7fffa7571db8) at main.c:2675
cfg_stream = 0x12b3020
c = -1
r = 0
tmp = 0x0
tmp_len = 0
port = 0
proto = 0
options = 0x7697a0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 760083249
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 1
n_lst = 0x0
p = 0x0
st = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,
tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}
__FUNCTION__ = "main"
(gdb)
(gdb) info locals
cfg_stream = 0x12b3020
c = -1
r = 0
tmp = 0x0
tmp_len = 0
port = 0
proto = 0
options = 0x7697a0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 760083249
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 1
n_lst = 0x0
p = 0x0
st = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,
tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}
__FUNCTION__ = "main"
(gdb) list
1866 int proto;
1867 char *options;
1868 int ret;
1869 unsigned int seed;
1870 int rfd;
1871 int debug_save, debug_flag;
1872 int dont_fork_cnt;
1873 struct name_lst* n_lst;
1874 char *p;
1875 struct stat st = {0};
(gdb)
</code></pre>
<p><strong>core.9452</strong></p>
<pre><code>[root@kamailio]# gdb kamailio core.9452
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 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.
[New LWP 9452]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `kamailio -f kamailio.cfg -D 2 -E'.
Program terminated with signal 6, Aborted.
#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-260.el7_6.3.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-37.el7_6.x86_64 libcom_err-1.42.9-13.el7.x86_64 libgcc-4.8.5-36.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libstdc++-4.8.5-36.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 mariadb-libs-5.5.60-1.el7_5.x86_64 openssl-libs-1.0.2k-16.el7.x86_64 pcre-8.32-17.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-18.el7.x86_64
(gdb) bt full
#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007f2ad44bb8f8 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x000000000068aad3 in qm_debug_check_frag (qm=0x7f2ac7941000, f=0x7f2ac7c8b628, file=0x7f2accb00022 "cdp: diameter_avp.c", line=142, efile=0x7f2857 "core/mem/q_malloc.c", eline=384)
at core/mem/q_malloc.c:151
__FUNCTION__ = "qm_debug_check_frag"
#3 0x000000000068c5e0 in qm_malloc (qmp=0x7f2ac7941000, size=56, file=0x7f2accb00022 "cdp: diameter_avp.c", func=0x7f2accb01a9a <__FUNCTION__.6983> "AAACreateAVP", line=142, mname=0x7f2accaffe50 "cdp")
at core/mem/q_malloc.c:384
qm = 0x7f2ac7941000
f = 0x7f2ac7c8b628
hash = 2060
list_cntr = 1
__FUNCTION__ = "qm_malloc"
#4 0x0000000000697694 in qm_shm_malloc (qmp=0x7f2ac7941000, size=56, file=0x7f2accb00022 "cdp: diameter_avp.c", func=0x7f2accb01a9a <__FUNCTION__.6983> "AAACreateAVP", line=142, mname=0x7f2accaffe50 "cdp")
at core/mem/q_malloc.c:1219
r = 0x7c0398
#5 0x00007f2accad9b40 in AAACreateAVP (code=266, flags=(AAA_AVP_FLAG_MANDATORY | AAA_AVP_FLAG_END_TO_END_ENCRYPT), vendorId=0, data=0x7f2ac7c8b47c "", length=4, data_status=AVP_DONT_FREE_DATA)
at diameter_avp.c:142
avp = 0x0
__FUNCTION__ = "AAACreateAVP"
#6 0x00007f2accadddb9 in AAAUngroupAVPS (buf=...) at diameter_avp.c:678
ptr = 0x7f2ac7c8b47c ""
avp = 0xccae835b
avp_code = 266
avp_flags = 96 '`'
avp_len = 12
avp_vendorID = 0
avp_data_len = 4
lh = {head = 0x0, tail = 0x0}
__FUNCTION__ = "AAAUngroupAVPS"
#7 0x00007f2acca83750 in save_peer_applications (p=0x7f2ac7c48b60, msg=0x7f2ac7c8a8f0) at peerstatemachine.c:771
total_cnt = 5
supported_vendor_id_avp_cnt = 1
avp = 0x7f2ac7c8ac10
avp_vendor = 0x7f2ac7c8b518
avp2 = 0x24ec
group = {head = 0x1e400000180, tail = 0x1e4ccaf4939}
id = 4
vendor = 10415
__FUNCTION__ = "save_peer_applications"
#8 0x00007f2acca83a1c in Process_CEA (p=0x7f2ac7c48b60, cea=0x7f2ac7c8a8f0) at peerstatemachine.c:803
avp = 0x7f2ac7c8b338
#9 0x00007f2acca7cba5 in sm_process (p=0x7f2ac7c48b60, event=I_Rcv_CEA, msg=0x7f2ac7c8a8f0, peer_locked=0, sock=18) at peerstatemachine.c:166
result_code = -860919936
next_event = 32554
msg_received = 0
__FUNCTION__ = "sm_process"
#10 0x00007f2accad4cf1 in receive_message (msg=0x7f2ac7c8a8f0, sp=0x7f2ad3df8310) at receiver.c:1147
avp1 = 0xccaf9190
avp2 = 0x7f2ac7c8b518
__FUNCTION__ = "receive_message"
#11 0x00007f2accac9cdc in do_receive (sp=0x7f2ad3df8310) at receiver.c:598
cnt = 196
n = 196
version = 1
dst = 0x7f2ac7c8b3ec ""
dmsg = 0x7f2ac7c8a8f0
---Type <return> to continue, or q <return> to quit---
__FUNCTION__ = "do_receive"
#12 0x00007f2accacdb21 in receive_loop (original_peer=0x7f2ac7c48b60) at receiver.c:805
rfds = {__fds_bits = {262144, 0 <repeats 15 times>}}
efds = {__fds_bits = {0 <repeats 16 times>}}
tv = {tv_sec = 0, tv_usec = 999997}
n = 1
max = 24
cnt = 1
msg = 0x0
sp = 0x7f2ad3df8310
sp2 = 0x7f2ad3df8310
p = 0x7f2ac7c48b60
fd = 18
fd_exchange_pipe_local = 24
__FUNCTION__ = "receive_loop"
#13 0x00007f2accac71d8 in receiver_process (p=0x7f2ac7c48b60) at receiver.c:464
__FUNCTION__ = "receiver_process"
#14 0x00007f2acca6e8d6 in diameter_peer_start (blocking=0) at diameter_peer.c:289
pid = 0
k = -1
p = 0x7f2ac7c48b60
__FUNCTION__ = "diameter_peer_start"
#15 0x00007f2acca609bd in cdp_child_init (rank=0) at cdp_mod.c:241
__FUNCTION__ = "cdp_child_init"
#16 0x0000000000562c32 in init_mod_child (m=0x7f2ad3d2a918, rank=0) at core/sr_module.c:846
__FUNCTION__ = "init_mod_child"
#17 0x00000000005628ce in init_mod_child (m=0x7f2ad3d2b568, rank=0) at core/sr_module.c:842
__FUNCTION__ = "init_mod_child"
#18 0x00000000005628ce in init_mod_child (m=0x7f2ad3d2b908, rank=0) at core/sr_module.c:842
__FUNCTION__ = "init_mod_child"
#19 0x00000000005628ce in init_mod_child (m=0x7f2ad3d2bd20, rank=0) at core/sr_module.c:842
__FUNCTION__ = "init_mod_child"
#20 0x0000000000563011 in init_child (rank=0) at core/sr_module.c:874
ret = 0
#21 0x0000000000423344 in main_loop () at main.c:1434
i = 0
pid = 9444
si = 0x1004189a0
si_desc = "@\212\337\323*\177\000\000\200\243\331\323*\177\000\000\000\000\000\000\003\000\000\000\270>\322\323*\177\000\000\000\032W\247\001\000\000\000\300\026\335\323*\177\000\000\000\032W\247\377\177\000\000\016\000\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\200\000\000\000\000\000\223\003|", '\000' <repeats 13 times>, "\320\034W\247\377\177\000\000\207rM\324*\177\000\000@\360x\000\000\000\000\000\220\205\335\323*\177\000"
nrprocs = 0
woneinit = 0
__FUNCTION__ = "main_loop"
#22 0x000000000042c4e9 in main (argc=6, argv=0x7fffa7571db8) at main.c:2675
cfg_stream = 0x12b3020
c = -1
r = 0
tmp = 0x0
tmp_len = 0
port = 0
proto = 0
options = 0x7697a0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 760083249
rfd = 4
debug_save = 0
debug_flag = 0
---Type <return> to continue, or q <return> to quit---
dont_fork_cnt = 1
n_lst = 0x0
p = 0x0
st = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,
tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}
__FUNCTION__ = "main"
(gdb) info locals
cfg_stream = 0x12b3020
c = -1
r = 0
tmp = 0x0
tmp_len = 0
port = 0
proto = 0
options = 0x7697a0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 760083249
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 1
n_lst = 0x0
p = 0x0
st = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,
tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}
__FUNCTION__ = "main"
(gdb) list
1866 int proto;
1867 char *options;
1868 int ret;
1869 unsigned int seed;
1870 int rfd;
1871 int debug_save, debug_flag;
1872 int dont_fork_cnt;
1873 struct name_lst* n_lst;
1874 char *p;
1875 struct stat st = {0};
(gdb)
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1851#issuecomment-467875892">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZIj9MYQLOH6RFnvsmODsjm3iyrGks5vRpIxgaJpZM4a9TAb">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZThUAqr1K_BRaQLW9maIyq7jzvi4ks5vRpIxgaJpZM4a9TAb.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@denyspozniak in #1851: I have updated Kamailio from repo:\r\nhttp://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/\r\n\r\nSo I hope your patch is there:\r\n[root@kamailio]# kamailio -v\r\nversion: kamailio 5.2.1 (x86_64/linux) 947769\r\ncompiled on 20:48:14 Feb 26 2019 with gcc 4.8.5\r\n\r\nBut got crash again:\r\n\r\n```12(9454) INFO: cdp [timer.c:205]: timer_process(): Timer process starting up...\r\n 1(9443) DEBUG: ims_charging [ro_timer.c:252]: ro_timer_routine(): getting expired ro-sessions 1(9443) DEBUG: ims_charging [ro_timer.c:211]: get_expired_ro_sessions(): my ticks are [72551102]\r\n 9(9451) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp receiver peer unknown Serviced Peers: ---\r\n 9(9451) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------\r\n10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---\r\n10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: -1 Recv.State: 0\r\n10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------\r\n12(9454) DEBUG: cdp [peermanager.c:263]: peer_timer(): peer_timer(): taking care of peers...\r\n12(9454) DEBUG: cdp [peermanager.c:280]: peer_timer(): peer_timer(): Peer diameter.dev State 0\r\n12(9454) DEBUG: cdp [peerstatemachine.c:90]: sm_process(): sm_process(): Peer diameter.dev State Closed Event Start\r\n12(9454) INFO: cdp [peerstatemachine.c:525]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer diameter.dev\r\n12(9454) INFO: cdp [receiver.c:875]: peer_connect(): peer_connect(): Trying to connect to 10.10.10.143 port 3868\r\n12(9454) DEBUG: cdp [receiver.c:886]: peer_connect(): peer_connect(): connetting to peer via src addr=10.10.10.12712(9454) INFO: cdp [receiver.c:954]: peer_connect(): peer_connect(): Peer diameter.dev:3868 connected\r\n10(9452) DEBUG: cdp [receiver.c:702]: receive_loop(): select_recv(): There is something on the fd exchange pipe\r\n10(9452) DEBUG: cdp [receiver.c:711]: receive_loop(): select_recv(): fd exchange pipe says fd [18] for peer 0x7f2ac7c48b60:[diameter.dev]\r\n10(9452) DEBUG: cdp [peerstatemachine.c:90]: sm_process(): sm_process(): Peer diameter.dev State Wait_Conn_Ack Event I_Rcv_Conn_Ack\r\n10(9452) DEBUG: cdp [diameter_msg.c:184]: AAANewMessage(): AAANewMessage: param session received null and it's a request!!\r\n10(9452) ERROR: cdp [peerstatemachine.c:634]: I_Snd_CER(): I_Snd_CER(): Error on finding local host address \u003e Socket operation on non-socket\r\n10(9452) DEBUG: cdp [diameter_msg.c:81]: AAABuildMsgBuffer(): AAABuildMsgBuffer(): len=216\r\n10(9452) DEBUG: cdp [receiver.c:1013]: peer_send_msg(): peer_send_msg(): Pipe push [0x7f2ac7c8a8f0]\r\n10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---\r\n10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 0\r\n10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------\r\n10(9452) DEBUG: cdp [receiver.c:756]: receive_loop(): select_recv(): There is something on the send pipe\r\n10(9452) DEBUG: cdp [receiver.c:769]: receive_loop(): select_recv(): Send pipe says [0x7f2ac7c8a8f0] 8\r\n10(9452) DEBUG: cdp [diameter_msg.c:410]: AAAFreeMessage(): AAAFreeMessage: Freeing message (0x7f2ac7c8a8f0) 257\r\n10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---\r\n10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 0\r\n10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------\r\n12(9454) DEBUG: cdp [peermanager.c:143]: log_peer_list(): --- Peer List: ---\r\n12(9454) DEBUG: cdp [peermanager.c:145]: log_peer_list(): State of peer: Wait_I_CEA FQDN: diameter.dev Port: 3868 Is dynamic\r\n12(9454) DEBUG: cdp [peermanager.c:149]: log_peer_list(): ------------------\r\n10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---\r\n10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 1\r\n10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------\r\n10(9452) DEBUG: cdp [receiver.c:579]: do_receive(): receive_loop(): [diameter.dev] Recv Version 1 Length 216\r\n10(9452) DEBUG: cdp [receiver.c:106]: log_serviced_peers(): --- Receiver cdp_receiver_peer=diameter.dev Serviced Peers: ---\r\n10(9452) DEBUG: cdp [receiver.c:112]: log_serviced_peers(): Peer: diameter.dev TCP Socket: 18 Recv.State: 2\r\n10(9452) DEBUG: cdp [receiver.c:114]: log_serviced_peers(): --------------------------------------------------------\r\n10(9452) DEBUG: cdp [receiver.c:1107]: receive_message(): receive_message(): [diameter.dev] Recv msg 257\r\n10(9452) DEBUG: cdp [peerstatemachine.c:90]: sm_process(): sm_process(): Peer diameter.dev State Wait_I_CEA Event I_Rcv_CEA\r\n10(9452) DEBUG: cdp [peerstatemachine.c:698]: count_Supported_Vendor_Id_AVPS(): Found 1 Supported_Vendor AVPS10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 0 of maximum 5\r\n10(9452) DEBUG: cdp [peerstatemachine.c:750]: save_peer_applications(): Found Supported Vendor for Application 0: 10415\r\n10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 1 of maximum 5\r\n10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 2 of maximum 5\r\n10(9452) DEBUG: cdp [peerstatemachine.c:750]: save_peer_applications(): Found Supported Vendor for Application 0: 10415\r\n10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 3 of maximum 5\r\n10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 4 of maximum 5\r\n10(9452) DEBUG: cdp [peerstatemachine.c:763]: save_peer_applications(): Found Supported Vendor for Application 1: 10415\r\n10(9452) DEBUG: cdp [peerstatemachine.c:681]: add_peer_application(): Application 5 of maximum 5\r\n10(9452) CRITICAL: \u003ccore\u003e [core/mem/q_malloc.c:149]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail overwritten(1000028af, abcdefed)[0x7f2ac7c8b628:0x7f2ac7c8b660]! Memory allocator was called from cdp: diameter_avp.c:142. Fragment marked by cdp: peerstatemachine.c:732. Exec from core/mem/q_malloc.c:384.\r\n 0(9442) ALERT: \u003ccore\u003e [main.c:756]: handle_sigs(): child process 9452 exited by a signal 6\r\n 0(9442) ALERT: \u003ccore\u003e [main.c:759]: handle_sigs(): core was generated\r\n 0(9442) INFO: \u003ccore\u003e [main.c:778]: handle_sigs(): dont_fork turned on, living on\r\n```\r\n\r\n**core.9442**\r\n\r\n```\r\n[root@kamailio]# gdb kamailio core.9442\r\nGNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7\r\nCopyright (C) 2013 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later \u003chttp://gnu.org/licenses/gpl.html\u003e\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-redhat-linux-gnu\".\r\nFor bug reporting instructions, please see:\r\n\u003chttp://www.gnu.org/software/gdb/bugs/\u003e...\r\nReading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/usr/sbin/kamailio.debug...done.\r\ndone.\r\n[New LWP 9442]\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib64/libthread_db.so.1\".\r\nCore was generated by `kamailio -f kamailio.cfg -D 2 -E'.\r\nProgram terminated with signal 6, Aborted.\r\n#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6\r\nMissing separate debuginfos, use: debuginfo-install glibc-2.17-260.el7_6.3.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-37.el7_6.x86_64 libcom_err-1.42.9-13.el7.x86_64 libgcc-4.8.5-36.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libstdc++-4.8.5-36.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 mariadb-libs-5.5.60-1.el7_5.x86_64 openssl-libs-1.0.2k-16.el7.x86_64 pcre-8.32-17.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-18.el7.x86_64\r\n(gdb) bt full\r\n#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#1 0x00007f2ad44bb8f8 in abort () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#2 0x000000000041a734 in sig_alarm_abort (signo=14) at main.c:663\r\n __FUNCTION__ = \"sig_alarm_abort\"\r\n#3 \u003csignal handler called\u003e\r\nNo symbol table info available.\r\n#4 0x00007f2ad457c1c7 in syscall () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#5 0x00007f2acca87aee in futex_get (lock=0x7f2ac7c489a0) at ../../core/futexlock.h:121\r\n v = 1\r\n i = 0\r\n#6 0x00007f2acca881c4 in peer_manager_destroy () at peermanager.c:110\r\n foo = 0x2\r\n bar = 0x200000001\r\n __FUNCTION__ = \"peer_manager_destroy\"\r\n#7 0x00007f2acca702b4 in diameter_peer_destroy () at diameter_peer.c:392\r\n pid = 9447\r\n status = 32554\r\n h = 0x7f2ad3c83010\r\n __FUNCTION__ = \"diameter_peer_destroy\"\r\n#8 0x00007f2acca60fb6 in cdp_exit () at cdp_mod.c:256\r\n __FUNCTION__ = \"cdp_exit\"\r\n#9 0x00000000005627e1 in destroy_modules () at core/sr_module.c:732\r\n t = 0x7f2ad3d2a918\r\n foo = 0x7f2ad3d2a078\r\n __FUNCTION__ = \"destroy_modules\"\r\n#10 0x00000000004192eb in cleanup (show_status=1) at main.c:537\r\n memlog = 0\r\n __FUNCTION__ = \"cleanup\"\r\n#11 0x000000000041aa1a in shutdown_children (sig=15, show_status=1) at main.c:680\r\n __FUNCTION__ = \"shutdown_children\"\r\n#12 0x000000000041b43c in handle_sigs () at main.c:711\r\n chld = 0\r\n chld_status = 0\r\n any_chld_stopped = 0\r\n memlog = 0\r\n __FUNCTION__ = \"handle_sigs\"\r\n#13 0x000000000041dc08 in sig_usr (signo=2) at main.c:824\r\n memlog = 0\r\n __FUNCTION__ = \"sig_usr\"\r\n#14 \u003csignal handler called\u003e\r\nNo symbol table info available.\r\n#15 0x00007f2ad4582da1 in __recvfrom_nocancel () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#16 0x00000000004b4afa in udp_rcv_loop () at core/udp_server.c:460\r\n len = 32767\r\n buf = '\\000' \u003crepeats 65535 times\u003e\r\n tmp = 0xffffffffffffffff \u003cAddress 0xffffffffffffffff out of bounds\u003e\r\n from = 0x7f2ad3df99f0\r\n fromlen = 16\r\n ri = {src_ip = {af = 8065648, len = 0, u = {addrl = {139818365353984, 140733193388033}, addr32 = {0, 32554, 1, 32767}, addr16 = {0, 0, 32554, 0, 1, 0, 32767, 0},\r\n addr = \"\\000\\000\\000\\000*\\177\\000\\000\\001\\000\\000\\000\\377\\177\\000\"}}, dst_ip = {af = 2, len = 4, u = {addrl = {2132753418, 0}, addr32 = {2132753418, 0, 0, 0}, addr16 = {15370, 32543, 0, 0, 0,\r\n 0, 0, 0}, addr = \"\\n\u003c\\037\\177\", '\\000' \u003crepeats 11 times\u003e}}, src_port = 0, dst_port = 5060, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 0,\r\n sa_data = \"\\000\\000\\301\\333|\\000\\000\\000\\000\\000H\u003c\\321\", \u003cincomplete sequence \\323\u003e}, sin = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 8182721},\r\n sin_zero = \"\\000\\000\\000\\000H\u003c\\321\", \u003cincomplete sequence \\323\u003e}, sin6 = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 8182721, sin6_addr = {__in6_u = {\r\n __u6_addr8 = \"\\000\\000\\000\\000H\u003c\\321\\323*\\177\\000\\000\\210%\\340\", \u003cincomplete sequence \\323\u003e, __u6_addr16 = {0, 0, 15432, 54225, 32554, 0, 9608, 54240}, __u6_addr32 = {0, 3553705032, 32554,\r\n---Type \u003creturn\u003e to continue, or q \u003creturn\u003e to quit---\r\n 3554682248}}}, sin6_scope_id = 32554}}, bind_address = 0x7f2ad3d13ac8, proto = 1 '\\001'}\r\n evp = {data = 0x0, rcv = 0x0, dst = 0x0}\r\n printbuf = \"\\230\\003|\\000\\000\\000\\000\\000x\\356z\\000\\000\\000\\000\\000\\340\\026W\\247\\377\\177\\000\\000\\n\\303\\n\\314*\\177\\000\\000\\020*\\v\\314*\\177\\000\\000\\001\", '\\000' \u003crepeats 15 times\u003e, \"\\036\\000\\000\\000\\024\\000\\000\\000\\n\\000\\000\\000\\001\\000\\000\\000t#\\310\\307*\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\266\u0026\\346\\313*\\177\\000\\000\\230\\003|\", '\\000' \u003crepeats 13 times\u003e, \"`\\030W\\247\\377\\177\\000\\000\\207rM\\324*\\177\\000\\000\\230\\003|\\000\\000\\000\\000\\000\\060\\000\\000\\000\\060\\000\\000\\000\\330\\027W\\247\\377\\177\\000\\000\\360\\026W\\247\\377\\177\\000\\000p\\022{\\000\\000\\000\\000\\000\\000\\000\\000\\000\\377\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\342$\\000\\000\\000\\000\\000\\000\\230\\003|\\000\\000\\000\\000\\000\"...\r\n i = 0\r\n j = 0\r\n l = 67108864\r\n __FUNCTION__ = \"udp_rcv_loop\"\r\n#17 0x0000000000423854 in main_loop () at main.c:1449\r\n i = 0\r\n pid = 9444\r\n si = 0x1004189a0\r\n si_desc = \"@\\212\\337\\323*\\177\\000\\000\\200\\243\\331\\323*\\177\\000\\000\\000\\000\\000\\000\\003\\000\\000\\000\\270\u003e\\322\\323*\\177\\000\\000\\000\\032W\\247\\001\\000\\000\\000\\300\\026\\335\\323*\\177\\000\\000\\000\\032W\\247\\377\\177\\000\\000\\016\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\004\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\223\\003|\", '\\000' \u003crepeats 13 times\u003e, \"\\320\\034W\\247\\377\\177\\000\\000\\207rM\\324*\\177\\000\\000@\\360x\\000\\000\\000\\000\\000\\220\\205\\335\\323*\\177\\000\"\r\n nrprocs = 0\r\n woneinit = 0\r\n __FUNCTION__ = \"main_loop\"\r\n#18 0x000000000042c4e9 in main (argc=6, argv=0x7fffa7571db8) at main.c:2675\r\n cfg_stream = 0x12b3020\r\n c = -1\r\n r = 0\r\n tmp = 0x0\r\n tmp_len = 0\r\n port = 0\r\n proto = 0\r\n options = 0x7697a0 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:\"\r\n ret = -1\r\n seed = 760083249\r\n rfd = 4\r\n debug_save = 0\r\n debug_flag = 0\r\n dont_fork_cnt = 1\r\n n_lst = 0x0\r\n p = 0x0\r\n st = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,\r\n tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}\r\n __FUNCTION__ = \"main\"\r\n(gdb)\r\n(gdb) info locals\r\ncfg_stream = 0x12b3020\r\nc = -1\r\nr = 0\r\ntmp = 0x0\r\ntmp_len = 0\r\nport = 0\r\nproto = 0\r\noptions = 0x7697a0 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:\"\r\nret = -1\r\nseed = 760083249\r\nrfd = 4\r\ndebug_save = 0\r\ndebug_flag = 0\r\ndont_fork_cnt = 1\r\nn_lst = 0x0\r\np = 0x0\r\nst = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,\r\n tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}\r\n__FUNCTION__ = \"main\"\r\n(gdb) list\r\n1866 int proto;\r\n1867 char *options;\r\n1868 int ret;\r\n1869 unsigned int seed;\r\n1870 int rfd;\r\n1871 int debug_save, debug_flag;\r\n1872 int dont_fork_cnt;\r\n1873 struct name_lst* n_lst;\r\n1874 char *p;\r\n1875 struct stat st = {0};\r\n(gdb)\r\n```\r\n\r\n**core.9452**\r\n```\r\n[root@kamailio]# gdb kamailio core.9452\r\nGNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7\r\nCopyright (C) 2013 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later \u003chttp://gnu.org/licenses/gpl.html\u003e\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-redhat-linux-gnu\".\r\nFor bug reporting instructions, please see:\r\n\u003chttp://www.gnu.org/software/gdb/bugs/\u003e...\r\nReading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/usr/sbin/kamailio.debug...done.\r\ndone.\r\n[New LWP 9452]\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib64/libthread_db.so.1\".\r\nCore was generated by `kamailio -f kamailio.cfg -D 2 -E'.\r\nProgram terminated with signal 6, Aborted.\r\n#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6\r\nMissing separate debuginfos, use: debuginfo-install glibc-2.17-260.el7_6.3.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-37.el7_6.x86_64 libcom_err-1.42.9-13.el7.x86_64 libgcc-4.8.5-36.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libstdc++-4.8.5-36.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 mariadb-libs-5.5.60-1.el7_5.x86_64 openssl-libs-1.0.2k-16.el7.x86_64 pcre-8.32-17.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-18.el7.x86_64\r\n(gdb) bt full\r\n#0 0x00007f2ad44ba207 in raise () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#1 0x00007f2ad44bb8f8 in abort () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#2 0x000000000068aad3 in qm_debug_check_frag (qm=0x7f2ac7941000, f=0x7f2ac7c8b628, file=0x7f2accb00022 \"cdp: diameter_avp.c\", line=142, efile=0x7f2857 \"core/mem/q_malloc.c\", eline=384)\r\n at core/mem/q_malloc.c:151\r\n __FUNCTION__ = \"qm_debug_check_frag\"\r\n#3 0x000000000068c5e0 in qm_malloc (qmp=0x7f2ac7941000, size=56, file=0x7f2accb00022 \"cdp: diameter_avp.c\", func=0x7f2accb01a9a \u003c__FUNCTION__.6983\u003e \"AAACreateAVP\", line=142, mname=0x7f2accaffe50 \"cdp\")\r\n at core/mem/q_malloc.c:384\r\n qm = 0x7f2ac7941000\r\n f = 0x7f2ac7c8b628\r\n hash = 2060\r\n list_cntr = 1\r\n __FUNCTION__ = \"qm_malloc\"\r\n#4 0x0000000000697694 in qm_shm_malloc (qmp=0x7f2ac7941000, size=56, file=0x7f2accb00022 \"cdp: diameter_avp.c\", func=0x7f2accb01a9a \u003c__FUNCTION__.6983\u003e \"AAACreateAVP\", line=142, mname=0x7f2accaffe50 \"cdp\")\r\n at core/mem/q_malloc.c:1219\r\n r = 0x7c0398\r\n#5 0x00007f2accad9b40 in AAACreateAVP (code=266, flags=(AAA_AVP_FLAG_MANDATORY | AAA_AVP_FLAG_END_TO_END_ENCRYPT), vendorId=0, data=0x7f2ac7c8b47c \"\", length=4, data_status=AVP_DONT_FREE_DATA)\r\n at diameter_avp.c:142\r\n avp = 0x0\r\n __FUNCTION__ = \"AAACreateAVP\"\r\n#6 0x00007f2accadddb9 in AAAUngroupAVPS (buf=...) at diameter_avp.c:678\r\n ptr = 0x7f2ac7c8b47c \"\"\r\n avp = 0xccae835b\r\n avp_code = 266\r\n avp_flags = 96 '`'\r\n avp_len = 12\r\n avp_vendorID = 0\r\n avp_data_len = 4\r\n lh = {head = 0x0, tail = 0x0}\r\n __FUNCTION__ = \"AAAUngroupAVPS\"\r\n#7 0x00007f2acca83750 in save_peer_applications (p=0x7f2ac7c48b60, msg=0x7f2ac7c8a8f0) at peerstatemachine.c:771\r\n total_cnt = 5\r\n supported_vendor_id_avp_cnt = 1\r\n avp = 0x7f2ac7c8ac10\r\n avp_vendor = 0x7f2ac7c8b518\r\n avp2 = 0x24ec\r\n group = {head = 0x1e400000180, tail = 0x1e4ccaf4939}\r\n id = 4\r\n vendor = 10415\r\n __FUNCTION__ = \"save_peer_applications\"\r\n#8 0x00007f2acca83a1c in Process_CEA (p=0x7f2ac7c48b60, cea=0x7f2ac7c8a8f0) at peerstatemachine.c:803\r\n avp = 0x7f2ac7c8b338\r\n#9 0x00007f2acca7cba5 in sm_process (p=0x7f2ac7c48b60, event=I_Rcv_CEA, msg=0x7f2ac7c8a8f0, peer_locked=0, sock=18) at peerstatemachine.c:166\r\n result_code = -860919936\r\n next_event = 32554\r\n msg_received = 0\r\n __FUNCTION__ = \"sm_process\"\r\n#10 0x00007f2accad4cf1 in receive_message (msg=0x7f2ac7c8a8f0, sp=0x7f2ad3df8310) at receiver.c:1147\r\n avp1 = 0xccaf9190\r\n avp2 = 0x7f2ac7c8b518\r\n __FUNCTION__ = \"receive_message\"\r\n#11 0x00007f2accac9cdc in do_receive (sp=0x7f2ad3df8310) at receiver.c:598\r\n cnt = 196\r\n n = 196\r\n version = 1\r\n dst = 0x7f2ac7c8b3ec \"\"\r\n dmsg = 0x7f2ac7c8a8f0\r\n---Type \u003creturn\u003e to continue, or q \u003creturn\u003e to quit---\r\n __FUNCTION__ = \"do_receive\"\r\n#12 0x00007f2accacdb21 in receive_loop (original_peer=0x7f2ac7c48b60) at receiver.c:805\r\n rfds = {__fds_bits = {262144, 0 \u003crepeats 15 times\u003e}}\r\n efds = {__fds_bits = {0 \u003crepeats 16 times\u003e}}\r\n tv = {tv_sec = 0, tv_usec = 999997}\r\n n = 1\r\n max = 24\r\n cnt = 1\r\n msg = 0x0\r\n sp = 0x7f2ad3df8310\r\n sp2 = 0x7f2ad3df8310\r\n p = 0x7f2ac7c48b60\r\n fd = 18\r\n fd_exchange_pipe_local = 24\r\n __FUNCTION__ = \"receive_loop\"\r\n#13 0x00007f2accac71d8 in receiver_process (p=0x7f2ac7c48b60) at receiver.c:464\r\n __FUNCTION__ = \"receiver_process\"\r\n#14 0x00007f2acca6e8d6 in diameter_peer_start (blocking=0) at diameter_peer.c:289\r\n pid = 0\r\n k = -1\r\n p = 0x7f2ac7c48b60\r\n __FUNCTION__ = \"diameter_peer_start\"\r\n#15 0x00007f2acca609bd in cdp_child_init (rank=0) at cdp_mod.c:241\r\n __FUNCTION__ = \"cdp_child_init\"\r\n#16 0x0000000000562c32 in init_mod_child (m=0x7f2ad3d2a918, rank=0) at core/sr_module.c:846\r\n __FUNCTION__ = \"init_mod_child\"\r\n#17 0x00000000005628ce in init_mod_child (m=0x7f2ad3d2b568, rank=0) at core/sr_module.c:842\r\n __FUNCTION__ = \"init_mod_child\"\r\n#18 0x00000000005628ce in init_mod_child (m=0x7f2ad3d2b908, rank=0) at core/sr_module.c:842\r\n __FUNCTION__ = \"init_mod_child\"\r\n#19 0x00000000005628ce in init_mod_child (m=0x7f2ad3d2bd20, rank=0) at core/sr_module.c:842\r\n __FUNCTION__ = \"init_mod_child\"\r\n#20 0x0000000000563011 in init_child (rank=0) at core/sr_module.c:874\r\n ret = 0\r\n#21 0x0000000000423344 in main_loop () at main.c:1434\r\n i = 0\r\n pid = 9444\r\n si = 0x1004189a0\r\n si_desc = \"@\\212\\337\\323*\\177\\000\\000\\200\\243\\331\\323*\\177\\000\\000\\000\\000\\000\\000\\003\\000\\000\\000\\270\u003e\\322\\323*\\177\\000\\000\\000\\032W\\247\\001\\000\\000\\000\\300\\026\\335\\323*\\177\\000\\000\\000\\032W\\247\\377\\177\\000\\000\\016\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\004\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\223\\003|\", '\\000' \u003crepeats 13 times\u003e, \"\\320\\034W\\247\\377\\177\\000\\000\\207rM\\324*\\177\\000\\000@\\360x\\000\\000\\000\\000\\000\\220\\205\\335\\323*\\177\\000\"\r\n nrprocs = 0\r\n woneinit = 0\r\n __FUNCTION__ = \"main_loop\"\r\n#22 0x000000000042c4e9 in main (argc=6, argv=0x7fffa7571db8) at main.c:2675\r\n cfg_stream = 0x12b3020\r\n c = -1\r\n r = 0\r\n tmp = 0x0\r\n tmp_len = 0\r\n port = 0\r\n proto = 0\r\n options = 0x7697a0 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:\"\r\n ret = -1\r\n seed = 760083249\r\n rfd = 4\r\n debug_save = 0\r\n debug_flag = 0\r\n---Type \u003creturn\u003e to continue, or q \u003creturn\u003e to quit---\r\n dont_fork_cnt = 1\r\n n_lst = 0x0\r\n p = 0x0\r\n st = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,\r\n tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}\r\n __FUNCTION__ = \"main\"\r\n(gdb) info locals\r\ncfg_stream = 0x12b3020\r\nc = -1\r\nr = 0\r\ntmp = 0x0\r\ntmp_len = 0\r\nport = 0\r\nproto = 0\r\noptions = 0x7697a0 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:\"\r\nret = -1\r\nseed = 760083249\r\nrfd = 4\r\ndebug_save = 0\r\ndebug_flag = 0\r\ndont_fork_cnt = 1\r\nn_lst = 0x0\r\np = 0x0\r\nst = {st_dev = 19, st_ino = 63546, st_nlink = 2, st_mode = 16832, st_uid = 995, st_gid = 994, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1551264348,\r\n tv_nsec = 86000000}, st_mtim = {tv_sec = 1551275648, tv_nsec = 168545048}, st_ctim = {tv_sec = 1551275648, tv_nsec = 168545048}, __unused = {0, 0, 0}}\r\n__FUNCTION__ = \"main\"\r\n(gdb) list\r\n1866 int proto;\r\n1867 char *options;\r\n1868 int ret;\r\n1869 unsigned int seed;\r\n1870 int rfd;\r\n1871 int debug_save, debug_flag;\r\n1872 int dont_fork_cnt;\r\n1873 struct name_lst* n_lst;\r\n1874 char *p;\r\n1875 struct stat st = {0};\r\n(gdb)\r\n\r\n```\r\n\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1851#issuecomment-467875892"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1851#issuecomment-467875892",
"url": "https://github.com/kamailio/kamailio/issues/1851#issuecomment-467875892",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>