You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f10262dcbbd in mi_reload (root=<optimized out>,
param=<optimized out>) at sql_cacher.c:1064
1064 lock_start_write(db_hdls->c_entry->ref_lock);
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-23.amzn2.x86_64 glibc-2.26-32.amzn2.0.1.x86_64 keyutils-libs-1.5.8-3.amzn2.0.2.x86_64 krb5-libs-1.15.1-20.amzn2.0.1.x86_64 libcom_err-1.42.9-12.amzn2.0.2.x86_64 libcrypt-2.26-32.amzn2.0.1.x86_64 libcurl-7.61.1-9.amzn2.0.1.x86_64 libidn2-2.0.4-1.amzn2.0.2.x86_64 libnghttp2-1.31.1-1.amzn2.0.2.x86_64 libselinux-2.5-12.amzn2.0.2.x86_64 libssh2-1.4.3-10.amzn2.1.2.x86_64 libunistring-0.9.3-9.amzn2.0.2.x86_64 nspr-4.19.0-1.amzn2.x86_64 nss-3.36.0-7.amzn2.x86_64 nss-util-3.36.0-1.amzn2.x86_64 openldap-2.4.44-15.amzn2.x86_64 openssl-libs-1.0.2k-16.amzn2.1.1.x86_64 pcre-8.32-17.amzn2.0.2.x86_64 postgresql-libs-9.2.24-1.amzn2.0.1.x86_64 zlib-1.2.7-17.amzn2.0.2.x86_64
(gdb) where
#0 0x00007f10262dcbbd in mi_reload (root=<optimized out>,
param=<optimized out>) at sql_cacher.c:1064
#1 0x00007f102a809c05 in run_mi_cmd (cmd=0x7f103740de90, cmd=0x7f103740de90,
param=0x7ffce9143a80, f=<optimized out>, t=0x7f1037429fc8)
at ../../mi/mi.h:109
#2 mi_datagram_server (rx_sock=<optimized out>, tx_sock=<optimized out>)
at datagram_fnc.c:616
#3 0x00007f102a80bee3 in datagram_process (rank=<optimized out>)
at mi_datagram.c:356
#4 0x00000000004eb68b in start_module_procs () at sr_module.c:797
#5 0x000000000041be8e in main_loop () at main.c:761
#6 main (argc=<optimized out>, argv=<optimized out>) at main.c:1439
(gdb)
#0 0x00007f10262dcbbd in mi_reload (root=<optimized out>,
param=<optimized out>) at sql_cacher.c:1064
#1 0x00007f102a809c05 in run_mi_cmd (cmd=0x7f103740de90, cmd=0x7f103740de90,
param=0x7ffce9143a80, f=<optimized out>, t=0x7f1037429fc8)
at ../../mi/mi.h:109
#2 mi_datagram_server (rx_sock=<optimized out>, tx_sock=<optimized out>)
at datagram_fnc.c:616
#3 0x00007f102a80bee3 in datagram_process (rank=<optimized out>)
at mi_datagram.c:356
#4 0x00000000004eb68b in start_module_procs () at sr_module.c:797
#5 0x000000000041be8e in main_loop () at main.c:761
#6 main (argc=<optimized out>, argv=<optimized out>) at main.c:1439
(gdb)
Describe the traffic that generated the bug
No traffic. Initial startup.
To Reproduce
This bug appeared in our Docker test environment. Opensips was running in a Docker container and exited when the PostgreSQL DB didn't have a VIEW created for the sql_cacher.
Configure PostgreSQL DB to cache DB tables and/or views
Have 1 missing table or view that is specified in the cache (In the config below, table5 does not exist in the DB)
Start OpenSIPS
Issue a opensips fifo sql_cacher_reload table5_cache command.
OpenSIPS core dump/crash.
Relevant System Logs
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:handle_sigs: SIGINT received, program terminates
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 7 [SIP receiver udp:10.10.10.10:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [313] INFO:core:sig_usr: signal 15 received
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [314] INFO:core:sig_usr: signal 15 received
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [315] INFO:core:sig_usr: signal 15 received
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [316] INFO:core:sig_usr: signal 15 received
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [317] INFO:core:sig_usr: signal 15 received
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [318] INFO:core:sig_usr: signal 15 received
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 8 [SIP receiver udp:203.0.113.2:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [319] DBG:core:ipc_handle_job: received job type 0[RPC] from process 0
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [319] DBG:core:rpc_process_terminate: Process 7 exiting with code 0...
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 9 [SIP receiver udp:203.0.113.2:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [320] DBG:core:ipc_handle_job: received job type 0[RPC] from process 0
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [320] DBG:core:rpc_process_terminate: Process 8 exiting with code 0...
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 10 [SIP receiver udp:203.0.113.2:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [321] DBG:core:ipc_handle_job: received job type 0[RPC] from process 0
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [321] DBG:core:rpc_process_terminate: Process 9 exiting with code 0...
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 11 [SIP receiver udp:203.0.113.2:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [322] DBG:core:ipc_handle_job: received job type 0[RPC] from process 0
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [322] DBG:core:rpc_process_terminate: Process 10 exiting with code 0...
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 12 [SIP receiver udp:203.0.113.2:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [323] DBG:core:ipc_handle_job: received job type 0[RPC] from process 0
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [323] DBG:core:rpc_process_terminate: Process 11 exiting with code 0...
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [312] DBG:core:shutdown_opensips: Asking process 13 [SIP receiver udp:203.0.113.2:5060 ] to terminate
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [324] DBG:core:ipc_handle_job: received job type 0[RPC] from process 0
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [324] DBG:core:rpc_process_terminate: Process 12 exiting with code 0...
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [336] DBG:core:io_wait_loop_epoll: [TCP_main] EPOLLHUP on IN ->connection closed by the remote peer!
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [336] DBG:core:receive_fd: EOF on 71
[2019-06-18T14:02:25.470Z] Container: Jun 18 14:02:24 [336] DBG:core:io_watch_del: [TCP_main] io_watch_del op on index 15 71 (0x95aa60, 71, 15, 0x0,0x1) fd_no=35 called
OS/environment information
Docker version 18.09.2, build 6247962
OpenSIPS version you are running
Crash Core Dump
Describe the traffic that generated the bug
No traffic. Initial startup.
To Reproduce
This bug appeared in our Docker test environment. Opensips was running in a Docker container and exited when the PostgreSQL DB didn't have a VIEW created for the sql_cacher.
opensips fifo sql_cacher_reload table5_cache
command.Relevant System Logs
OS/environment information
Docker version 18.09.2, build 6247962
Relevant parts of our config:
Additional context
The text was updated successfully, but these errors were encountered: