[OpenSIPS-Users] Opensips 2.4.8 SEGFAULT

James opensips at jfive.net
Sat Jul 11 01:10:39 EST 2020


I made a little more progress. This is what I have now.

Message: Process 18626 (opensips) of user 993 dumped core.

Stack trace of thread 18626:
#0 0x00007fe49e05b9e0 t_should_relay_response (tm.so)
#1 0x00007fe49e05daa3 relay_reply (tm.so)
#2 0x00007fe49e060905 reply_received (tm.so)
#3 0x000000000044a4f8 forward_reply (opensips)
#4 0x0000000000434248 receive_msg (opensips)
#5 0x000000000055c5e6 udp_read_req (opensips)
#6 0x00000000005413bf udp_start_processes (opensips)
#7 0x0000000000417fb5 main (opensips)
#8 0x00007feade6fa873 __libc_start_main (libc.so.6)
#9 0x000000000041882e _start (opensips)

(gdb) bt full
#0 0x00007fe49e05b9e0 in t_should_relay_response () from /usr/lib64/opensips/modules/tm.so
No symbol table info available.
#1 0x00007fe49e05daa3 in relay_reply () from /usr/lib64/opensips/modules/tm.so
No symbol table info available.
#2 0x00007fe49e060905 in reply_received () from /usr/lib64/opensips/modules/tm.so
No symbol table info available.
#3 0x000000000044a4f8 in forward_reply ()
No symbol table info available.
#4 0x0000000000434248 in receive_msg ()
No symbol table info available.
#5 0x000000000055c5e6 in udp_read_req ()
No symbol table info available.
#6 0x00000000005413bf in udp_start_processes ()
No symbol table info available.
#7 0x0000000000417fb5 in main ()
No symbol table info available.

I am using force_send_socket(udp:1.2.3.4:5060) with mhomed=1. Would this be an issue?

July 10, 2020 1:02 PM, "James via Users" <users at lists.opensips.org (mailto:users at lists.opensips.org?to=%22James%20via%20Users%22%20<users at lists.opensips.org>)> wrote:
Hello! I am having an issue with opensips crashing. I have reviewed the guide on how to generate a core dump. My current problem is when I try to use gdb.

Here is what I am doing:

gdb /usr/sbin/opensips core.opensips.993.b6ac8a71177a49cd8238e22ba265c6e9.16129.1594410164000000.lz4

GNU gdb (GDB) Red Hat Enterprise Linux 8.2-11.el8
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html (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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs (http://www.gnu.org/software/gdb/bugs/)>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation (http://www.gnu.org/software/gdb/documentation/)>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/opensips...Reading symbols from .gnu_debugdata for /usr/sbin/opensips...(no debugging symbols found)...done.
(no debugging symbols found)...done.
"/var/lib/systemd/coredump/core.opensips.993.b6ac8a71177a49cd8238e22ba265c6e9.16129.1594410164000000.lz4" is not a core dump: file format not recognized
Missing separate debuginfos, use: yum debuginfo-install opensips-2.4.8-1.el8.x86_64

I am running Centos 8. I installed opensips using the RPM from the opensips download site. The dump file is generated from systemd. I added the -w flag the service to put the dump file in the opensips directory but that did not change the location of the dump file.

Here is the information from the crash in the logs.

/usr/sbin/opensips[16129]: CRITICAL:core:sig_usr: segfault in process pid: 16129, id: 7
kernel: opensips[16129]: segfault at 0 ip 00000000004c4363 sp 00007ffcdf449470 error 6 in opensips[400000+212000]
kernel: Code: c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 48 c1 e8 03 89 c2 e9 8c fb ff ff 0f 1f 44 00 00 48 89 c2 <48> 89 37 48 c1 ea 03 48 c1 e2 04 48 01 ea 48 8b 4a 58 48 83 e9 01
systemd[1]: Started Process Core Dump (PID 16147/UID 0).
Opensips info

version: opensips 2.4.8 (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.
main.c compiled on 19:27:39 Jun 30 2020 with gcc 8

My opensips start command
/usr/sbin/opensips -P /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 20480 -M 5120 -w /etc/opensips/dump
What am I missing in order to get a gdb core dump?

Thanks,

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200711/65ff9208/attachment.html>


More information about the Users mailing list