[OpenSIPS-Users] opensips 3.0.1 segfault

Антон Ершов suharik71 at gmail.com
Fri Oct 4 09:37:27 EDT 2019


Hi,
I discovered this situation. my config may not be very correct, but when it
is executed, the opensips falls into segfault.

event_route[E_DLG_STATE_CHANGED] {
...

if ( get_dialogs_by_profile("reknumber", $avp(reknum),
$avp(dlg_jsons), $avp(callcount)) ) {	xlog("L_INFO", "[$param(callid)]
- advertising number  $avp(reknum) has $avp(callcount) other calls
\n");    } else {	xlog("L_INFO", "[$param(callid)] - this profile does
not have active dialogs \n");	$avp(callcount) = 0;    }

...

}

when I try to get a dialog profile which is not I get this error

ERROR:core:do_action: Failed to get fixups for command <get_dialogs_by_profile>

and after some time opensips falls in segfault

gdb /usr/sbin/opensips core.30467
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.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/opensips...Reading symbols from
/usr/sbin/opensips...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 30467]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/opensips -DDdd -f
/etc/opensips/opensips.cfg.j2 -p python3.6 /etc/ope'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007faed2906d54 in dlg_get_json_out () from
/usr/lib64/opensips/modules/dialog.so
Missing separate debuginfos, use: debuginfo-install
opensips-3.0.1.20191002.b04ffc28d-1.el7.x86_64
(gdb) bt full
#0  0x00007faed2906d54 in dlg_get_json_out () from
/usr/lib64/opensips/modules/dialog.so
No symbol table info available.
#1  0x00007faed29073df in w_get_dlg_jsons_by_profile () from
/usr/lib64/opensips/modules/dialog.so
No symbol table info available.
#2  0x000000000042f3bc in do_action ()
No symbol table info available.
#3  0x0000000000434910 in run_action_list ()
No symbol table info available.
#4  0x0000000000465b77 in eval_expr ()
No symbol table info available.
#5  0x00000000004658f5 in eval_expr ()
No symbol table info available.
#6  0x000000000042f22a in do_action ()
No symbol table info available.
#7  0x0000000000434910 in run_action_list ()
No symbol table info available.
#8  0x0000000000434bf8 in run_top_route ()
No symbol table info available.
#9  0x00007faecf1d2e89 in route_run () from
/usr/lib64/opensips/modules/event_route.so
No symbol table info available.
#10 0x00007faecf1d2ee0 in route_received () from
/usr/lib64/opensips/modules/event_route.so
No symbol table info available.
#11 0x000000000045a66b in ipc_handle_job ()
No symbol table info available.
#12 0x000000000055aad0 in handle_io ()
No symbol table info available.
#13 0x000000000055c9ff in tcp_worker_proc_loop ()
No symbol table info available.
#14 0x0000000000566f6d in tcp_start_processes ()
No symbol table info available.
#15 0x000000000041e9f4 in main ()
No symbol table info available.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191004/6df00c1d/attachment.html>


More information about the Users mailing list