<div dir="ltr">Hi,<div>I discovered this situation. my config may not be very correct, but when it is executed, the opensips falls into segfault.<br></div><div><br></div><div><code>event_route[E_DLG_STATE_CHANGED] {</code><br></div><div><font face="monospace">...</font></div><div><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC607" class="gmail-line" lang="plaintext">if ( get_dialogs_by_profile("reknumber", $avp(reknum), $avp(dlg_jsons), $avp(callcount)) ) {</span>
<span id="gmail-LC608" class="gmail-line" lang="plaintext"> xlog("L_INFO", "[$param(callid)] - advertising number $avp(reknum) has $avp(callcount) other calls \n");</span>
<span id="gmail-LC609" class="gmail-line" lang="plaintext"> } else {</span>
<span id="gmail-LC610" class="gmail-line" lang="plaintext"> xlog("L_INFO", "[$param(callid)] - this profile does not have active dialogs \n");</span>
<span id="gmail-LC611" class="gmail-line" lang="plaintext"> $avp(callcount) = 0;</span>
<span id="gmail-LC612" class="gmail-line" lang="plaintext"> }</span>
</pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">...</span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">}</span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">when I try to get a dialog profile which is not I get this error </span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">ERROR:core:do_action: Failed to get fixups for command <get_dialogs_by_profile><br></span></pre></div><div>and after some time opensips falls in segfault<br></div><div><br></div><div>gdb /usr/sbin/opensips core.30467<br>GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7<br>Copyright (C) 2013 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "x86_64-redhat-linux-gnu".<br>For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...<br>Reading symbols from /usr/sbin/opensips...Reading symbols from /usr/sbin/opensips...(no debugging symbols found)...done.<br>(no debugging symbols found)...done.<br>[New LWP 30467]<br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib64/libthread_db.so.1".<br>Core was generated by `/usr/sbin/opensips -DDdd -f /etc/opensips/opensips.cfg.j2 -p python3.6 /etc/ope'.<br>Program terminated with signal 11, Segmentation fault.<br>#0 0x00007faed2906d54 in dlg_get_json_out () from /usr/lib64/opensips/modules/dialog.so<br>Missing separate debuginfos, use: debuginfo-install opensips-3.0.1.20191002.b04ffc28d-1.el7.x86_64<br>(gdb) bt full<br>#0 0x00007faed2906d54 in dlg_get_json_out () from /usr/lib64/opensips/modules/dialog.so<br>No symbol table info available.<br>#1 0x00007faed29073df in w_get_dlg_jsons_by_profile () from /usr/lib64/opensips/modules/dialog.so<br>No symbol table info available.<br>#2 0x000000000042f3bc in do_action ()<br>No symbol table info available.<br>#3 0x0000000000434910 in run_action_list ()<br>No symbol table info available.<br>#4 0x0000000000465b77 in eval_expr ()<br>No symbol table info available.<br>#5 0x00000000004658f5 in eval_expr ()<br>No symbol table info available.<br>#6 0x000000000042f22a in do_action ()<br>No symbol table info available.<br>#7 0x0000000000434910 in run_action_list ()<br>No symbol table info available.<br>#8 0x0000000000434bf8 in run_top_route ()<br>No symbol table info available.<br>#9 0x00007faecf1d2e89 in route_run () from /usr/lib64/opensips/modules/event_route.so<br>No symbol table info available.<br>#10 0x00007faecf1d2ee0 in route_received () from /usr/lib64/opensips/modules/event_route.so<br>No symbol table info available.<br>#11 0x000000000045a66b in ipc_handle_job ()<br>No symbol table info available.<br>#12 0x000000000055aad0 in handle_io ()<br>No symbol table info available.<br>#13 0x000000000055c9ff in tcp_worker_proc_loop ()<br>No symbol table info available.<br>#14 0x0000000000566f6d in tcp_start_processes ()<br>No symbol table info available.<br>#15 0x000000000041e9f4 in main ()<br>No symbol table info available.<br></div></div>