-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CRASH] opensips crashes on timer route while firing curl request #2195
Comments
@imdrpn , are you sure the crash is related to the curl lookup ? according to the backtrace the crash happens in the nathelper pinger...could you doublecheck ? |
@bogdan-iancu Yes you are right , here i am placing another core and related logs for the same which was generated before two days :opensips log :
|
What is your configuration for the |
Nathelper moduleloadmodule "nathelper.so" USeR LOCation moduleloadmodule "usrloc.so" |
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days. |
@bogdan-iancu any update here ? :) |
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days. |
Marking as closed due to lack of progress for more than 30 days. If this issue is still relevant, please re-open it with additional details. |
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days. |
Marking as closed due to lack of progress for more than 30 days. If this issue is still relevant, please re-open it with additional details. |
@imdrpn , is this crash still happening with the latest 2.4 ? if so, we can re-open and continue with the investigation |
opensips version :
version: opensips 2.4.7 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 9e1fcc9
main.c compiled on 10:27:49 Feb 3 2020 with gcc 4.8.5
usage : i have used timer route which is executing every second and in this timer route i am firing curl request , using rest_post as below :
(from api side i have developed function for call scheduling and if any call hangup time is current time or less than current time then i am sending request to hangup current call by call_id using dlg_end_dlg xmlrpc command . )
rest_client.so
loadmodule "rest_client.so"
modparam("rest_client", "curl_timeout", 60)
modparam("rest_client", "connection_timeout", 60)
timer_route[call_schedule_hangup,1] {
$avp(current_time)=$Ts;
xlog("L_INFO"," [TIMER_ROUTE] CURRENT TIME IS : $Ts $time(%Y-%m-%d %H:%M:%S) <<<<====");
$var(body_type)="application/x-www-form-urlencoded";
}
CORE : 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/local/sbin/opensips...done.
[New LWP 4989]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid -f /usr/local/etc/opensips/op'.
Program terminated with signal 11, Segmentation fault.
#0 __list_del (next=0x100100, prev=0x200200) at ../usrloc/../../lib/list.h:96
96 next->prev = prev;
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-23.el7.x86_64 glibc-2.17-222.el7.x86_64 gmp-6.0.0-15.el7.x86_64 gnutls-3.3.26-9.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-37.el7_7.2.x86_64 libcom_err-1.42.9-16.el7.x86_64 libcurl-7.29.0-54.el7.x86_64 libffi-3.0.13-18.el7.x86_64 libgcc-4.8.5-39.el7.x86_64 libgcrypt-1.5.3-14.el7.x86_64 libgpg-error-1.12-3.el7.x86_64 libidn-1.28-4.el7.x86_64 libmicrohttpd-0.9.33-2.el7.x86_64 librabbitmq-0.8.0-2.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64 libstdc++-4.8.5-39.el7.x86_64 libtasn1-4.10-1.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 mariadb-libs-5.5.64-1.el7.x86_64 nettle-2.7.1-8.el7.x86_64 nspr-4.19.0-1.el7_5.x86_64 nss-3.36.0-5.el7_5.x86_64 nss-pem-1.0.3-7.el7.x86_64 nss-softokn-3.36.0-5.el7_5.x86_64 nss-softokn-freebl-3.36.0-5.el7_5.x86_64 nss-sysinit-3.36.0-5.el7_5.x86_64 nss-util-3.36.0-1.el7_5.x86_64 openldap-2.4.44-21.el7_6.x86_64 openssl-libs-1.0.2k-19.el7.x86_64 p11-kit-0.23.5-3.el7.x86_64 pcre-8.32-17.el7.x86_64 sqlite-3.7.17-8.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-18.el7.x86_64
(gdb) bt
#0 __list_del (next=0x100100, prev=0x200200) at ../usrloc/../../lib/list.h:96
#1 list_del (entry=0x7fb043da64c0) at ../usrloc/../../lib/list.h:108
#2 ping_checker_timer (ticks=, timer_idx=) at nathelper.c:1714
#3 0x00000000004b3a2f in handle_timer_job () at timer.c:731
#4 0x00000000005cb64d in handle_io (idx=, event_type=2, fm=0x7fb0458f8248) at net/net_udp.c:265
#5 io_wait_loop_epoll (h=, t=, repeat=) at net/../io_wait_loop.h:284
#6 udp_start_processes (chd_rank=chd_rank@entry=0x93d730 <chd_rank.11790>, startup_done=startup_done@entry=0x7fb043d49ae8) at net/net_udp.c:389
#7 0x000000000041b533 in main_loop () at main.c:784
#8 main (argc=, argv=) at main.c:1442
(gdb) bt full
#0 __list_del (next=0x100100, prev=0x200200) at ../usrloc/../../lib/list.h:96
No locals.
#1 list_del (entry=0x7fb043da64c0) at ../usrloc/../../lib/list.h:108
No locals.
#2 ping_checker_timer (ticks=, timer_idx=) at nathelper.c:1714
ctime = 1596479571
ct_coords =
it = 0x7fb043da64c0
itx = 0x100100
_d =
table = 0x7fb043b71068
cell = 0x7fb043da6478
FUNCTION = "ping_checker_timer"
#3 0x00000000004b3a2f in handle_timer_job () at timer.c:731
t = 0x7fb043cf10a8
l =
FUNCTION = "handle_timer_job"
#4 0x00000000005cb64d in handle_io (idx=, event_type=2, fm=0x7fb0458f8248) at net/net_udp.c:265
n = 0
read = 0
#5 io_wait_loop_epoll (h=, t=, repeat=) at net/../io_wait_loop.h:284
ep_event = {events = 0, data = {ptr = 0x4384739800000000, fd = 0, u32 = 0, u64 = 4865140594139201536}}
ret =
n = 2
r = 3
e = 0x7fb0458f8248
fd =
i =
#6 udp_start_processes (chd_rank=chd_rank@entry=0x93d730 <chd_rank.11790>, startup_done=startup_done@entry=0x7fb043d49ae8) at net/net_udp.c:389
si =
pid =
i =
FUNCTION = "udp_start_processes"
#7 0x000000000041b533 in main_loop () at main.c:784
startup_done = 0x7fb043d49ae8
chd_rank = 8
rc =
#8 main (argc=, argv=) at main.c:1442
cfg_stream =
c =
r =
tmp = 0x1 <Address 0x1 out of bounds>
---Type to continue, or q to quit---
OPENSIPS LOGS :
[timer_route][call_schedule_hangup] content type header of response IS : text/html <<<==
opensips.log-04082020:Aug 3 20:32:50 CentOS7 /usr/local/sbin/opensips[4994]: [timer_route][call_schedule_hangup] STATUS CODE OF HTTP RESPONSE : 502 <<<==
opensips.log-04082020:Aug 3 20:32:50 CentOS7 /usr/local/sbin/opensips[4994]: [timer_route][call_schedule_hangup]rest_post() rcode=502
opensips.log-04082020:Aug 3 20:32:50 CentOS7 /usr/local/sbin/opensips[4994]: WARNING:core:handle_timer_job: timer job <timer_route> has a 385218160000 us delay in execution
opensips.log-04082020:Aug 3 20:32:50 CentOS7 /usr/local/sbin/opensips[4994]: [TIMER_ROUTE] CURRENT TIME IS : 1596479570 2020-08-03 20:32:50 <<<<====
opensips.log-04082020:Aug 3 20:32:50 CentOS7 /usr/local/sbin/opensips[4981]: WARNING:core:utimer_ticker: utimer task already scheduled for 385217390 ms (now 385218190 ms), it may overlap..
opensips.log-04082020:Aug 3 20:32:50 CentOS7 /usr/local/sbin/opensips[4981]: WARNING:core:utimer_ticker: utimer task already scheduled for 385217390 ms (now 385218290 ms), it may overlap..
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4981]: WARNING:core:utimer_ticker: utimer task already scheduled for 385217390 ms (now 385218380 ms), it may overlap..
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: [timer_route][call_schedule_hangup] HTTP BODY RESPONSE IS : #12#012#012 #12 <title>The page is temporarily unavailable</title>#12 #12 <style type="text/css">#12 //#12 </style>#12 #12#012 #12
nginx error!
#12#012The page you are looking for is temporarily unavailable. Please try again later.
#12#012Website Administrator
#12Something has triggered an error on your#012 website. This is the default error page for#012 nginx that is distributed with#012 Fedora. It is located#012 /usr/share/nginx/html/50x.html
#12#012You should customize this error page for your own#012 site or edit the error_page directive in#012 the nginx configuration file#012 /etc/nginx/nginx.conf.
#12#012opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: [timer_route][call_schedule_hangup] content type header of response IS : text/html <<<==
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: [timer_route][call_schedule_hangup] STATUS CODE OF HTTP RESPONSE : 502 <<<==
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: [timer_route][call_schedule_hangup]rest_post() rcode=502
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: WARNING:nathelper:parse_branch: received ping response for a removed contact
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: WARNING:core:handle_timer_job: timer job has a 264420000 us delay in execution
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: WARNING:nathelper:parse_branch: received ping response for a removed contact
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: WARNING:core:handle_timer_job: timer job has a 264420000 us delay in execution
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: WARNING:core:handle_timer_job: timer job has a 264420000 us delay in execution
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4989]: CRITICAL:core:sig_usr: segfault in process pid: 4989, id: 14
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: Empty content for node [string]
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: Empty content for node [string]
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: Empty content for node [string]
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: Empty content for node [string]
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: Empty content for node [string]
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4981]: WARNING:core:utimer_ticker: utimer task already scheduled for 385217390 ms (now 385218480 ms), it may overlap..
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: Empty content for node [string]
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4981]: WARNING:core:utimer_ticker: utimer task already scheduled for 385217390 ms (now 385218580 ms), it may overlap..
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4999]: CRITICAL:core:handle_worker: dead child 14 (EOF received), pid 4989
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:handle_sigs: child process 4989 exited by a signal 11
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:handle_sigs: core was generated
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:handle_sigs: terminating due to SIGCHLD
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4976]: INFO:core:sig_usr: signal 15 received
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4977]: INFO:core:sig_usr: signal 15 received
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4981]: INFO:core:sig_usr: signal 15 received
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4978]: INFO:core:sig_usr: signal 15 received
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4979]: INFO:core:sig_usr: signal 15 received
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4980]: INFO:core:sig_usr: signal 15 received
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 24(4999) [TCP main] terminated, still waiting for 22 more
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 3(4978) [event-route handler] terminated, still waiting for 21 more
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 4(4979) [MI FIFO] terminated, still waiting for 20 more
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 5(4980) [time_keeper] terminated, still waiting for 19 more
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 6(4981) [timer] terminated, still waiting for 18 more
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 2(4977) [RabbitMQ sender] terminated, still waiting for 17 more
opensips.log-04082020:Aug 3 20:32:51 CentOS7 /usr/local/sbin/opensips[4974]: INFO:core:shutdown_opensips: process 1(4976) [HTTPD 172.16.1.5:8889] terminated, still waiting for 16 more
The text was updated successfully, but these errors were encountered: