Hello, My OpenSIPS crashed once in heavy load. I don't know the exact reason and it does not usually happen. can you please suggest what is wrong with it?
Please find gdb backtrace in attachment. Let me know If you need anything else. version: opensips 2.4.1 (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: 5d042cffc main.c compiled on 02:09:27 Feb 24 2020 with gcc 4.8.5 Thanks & Regards *Diptesh Patel* Software Developer Ecosmob Technologies Ltd, Ahmedabad Mo:*+919898962659* -- *Disclaimer* In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded. *Confidentiality* This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error. *Caution for viruses, malware etc.* This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems.
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/local/sbin/opensips...done. [New LWP 13167] [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/opensips.pid -f /usr/local/etc/op'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000462bbf in log_expiry (func_info=0x60fc5a "msg processing", tcp=0, dbg_len=1056, extra_dbg=0x89e5a0 <buf.8629> "INVITE sip:6042352637@216.123.235.115:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 209.91.94.6:5060;branch=z9hG4bKketago30306suciqkm90.1\r\nFrom: \"PRABHJOT KAUR\"<sip:6043025...@d.telusipt.com:5060;user=pho"..., expire=<optimized out>, time_diff=60635) at ut.h:1085 1085 LM_WARN("#%i is a module action : %s - %dus - line %d\n",i+1, Missing separate debuginfos, use: debuginfo-install MariaDB-shared-10.1.43-1.el7.centos.x86_64 glibc-2.17-292.el7.x86_64 gmp-6.0.0-15.el7.x86_64 gnutls-3.3.29-9.el7_6.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 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 libmicrohttpd-0.9.33-2.el7.x86_64 librabbitmq-0.8.0-2.el7.x86_64 libselinux-2.5-14.1.el7.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 nettle-2.7.1-8.el7.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 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-18.el7.x86_64 (gdb) bt full #0 0x0000000000462bbf in log_expiry (func_info=0x60fc5a "msg processing", tcp=0, dbg_len=1056, extra_dbg=0x89e5a0 <buf.8629> "INVITE sip:6042352637@216.123.235.115:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 209.91.94.6:5060;branch=z9hG4bKketago30306suciqkm90.1\r\nFrom: \"PRABHJOT KAUR\"<sip:6043025...@d.telusipt.com:5060;user=pho"..., expire=<optimized out>, time_diff=60635) at ut.h:1085 param = {s = 0x5f639328 <Address 0x5f639328 out of bounds>, len = 100387} list = <optimized out> i = 0 func_str = {s = 0x60fca1 "source", len = 6} time_str = {s = 0x63935d "time", len = 4} extra_str = {s = 0x61a8a6 "extra", len = 5} #1 receive_msg ( buf=0x89e5a0 <buf.8629> "INVITE sip:6042352637@216.123.235.115:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 209.91.94.6:5060;branch=z9hG4bKketago30306suciqkm90.1\r\nFrom: \"PRABHJOT KAUR\"<sip:6043025...@d.telusipt.com:5060;user=pho"..., len=<optimized out>, rcv_info=rcv_info@entry=0x7ffeb7285fa0, existing_context=existing_context@entry=0x0, flags=flags@entry=0) at receive.c:277 ctx = 0x7f9aa2580f18 msg = 0x7f9aa2581320 start = {tv_sec = 1600361256, tv_usec = 39752} rc = <optimized out> in_buff = { s = 0x89e5a0 <buf.8629> "INVITE sip:6042352637@216.123.235.115:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 209.91.94.6:5060;branch=z9hG4bKketago30306suciqkm90.1\r\nFrom: \"PRABHJOT KAUR\"<sip:6043025...@d.telusipt.com:5060;user=pho"..., len = 1056} __FUNCTION__ = "receive_msg" #2 0x00000000005e4b09 in udp_read_req (si=<optimized out>, bytes_read=<optimized out>) at net/proto_udp/proto_udp.c:181 ri = {src_ip = {af = 2, len = 4, u = {addrl = {106847185, 0}, addr32 = {106847185, 0, 0, 0}, addr16 = {23505, 1630, 0, 0, 0, 0, 0, 0}, addr = "\321[^\006", '\000' <repeats 11 times>}}, dst_ip = {af = 2, len = 4, u = {addrl = {1944812504, 0}, addr32 = {1944812504, 0, 0, 0}, addr16 = {31704, 29675, 0, 0, 0, 0, 0, 0}, addr = "\330{\353s", '\000' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\023\304\321[^\006\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = { s_addr = 106847185}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 106847185, sin6_addr = {__in6_u = {__u6_addr8 = "\000\000\000\000\000\000\000\000\377\377\377\377\000\000\000", __u6_addr16 = {0, 0, 0, 0, 65535, 65535, 0, 0}, __u6_addr32 = {0, 0, 4294967295, 0}}}, sin6_scope_id = 0}}, bind_address = 0x7f9aa239aa80} len = <optimized out> buf = "INVITE sip:6042352637@216.123.235.115:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 209.91.94.6:5060;branch=z9hG4bKketago30306suciqkm90.1\r\nFrom: \"PRABHJOT KAUR\"<sip:6043025...@d.telusipt.com:5060;user=pho"... fromlen = 16 p = <optimized out> msg = { s = 0x89e5a0 <buf.8629> "INVITE sip:6042352637@216.123.235.115:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 209.91.94.6:5060;branch=z9hG4bKketago30306suciqkm90.1\r\nFrom: \"PRABHJOT KAUR\"<sip:6043025...@d.telusipt.com:5060;user=pho"..., len = 1056} __FUNCTION__ = "udp_read_req" ---Type <return> to continue, or q <return> to quit--- #3 0x00000000005c916d in handle_io (idx=<optimized out>, event_type=2, fm=<optimized out>) at net/net_udp.c:261 n = 0 read = 662603292 #4 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>, repeat=<optimized out>) at net/../io_wait_loop.h:284 ep_event = {events = 0, data = {ptr = 0x3139a39800000000, fd = 0, u32 = 0, u64 = 3547046054761332736}} ret = <optimized out> n = 1 r = 0 e = <optimized out> fd = <optimized out> i = <optimized out> #5 udp_start_processes (chd_rank=chd_rank@entry=0x88a710 <chd_rank.11754>, startup_done=startup_done@entry=0x7f98317bb548) at net/net_udp.c:389 si = <optimized out> pid = <optimized out> i = <optimized out> __FUNCTION__ = "udp_start_processes" #6 0x000000000041b5d3 in main_loop () at main.c:771 startup_done = 0x7f98317bb548 chd_rank = 60 #7 main (argc=<optimized out>, argv=<optimized out>) at main.c:1417 cfg_stream = <optimized out> c = <optimized out> r = <optimized out> tmp = 0x7ffeb7287f0c "" tmp_len = <optimized out> port = <optimized out> proto = <optimized out> protos_no = <optimized out> options = 0x61f228 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:P:G:W:o:" ret = -1 seed = 1330704692 rfd = <optimized out> __FUNCTION__ = "main"
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users