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>
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/>.
Find the GDB manual and other documentation resources online at:
 <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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to