Skip to content

Opensips is crashing #2250

@AnjanIpc

Description

@AnjanIpc
sometimes opensips is crashing.

OpenSIPS version you are running

opensips -V
**version: opensips 2.4.4 (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: a42226ccb
main.c compiled on 21:56:57 May  1 2020 with gcc 4.4.7


Crash Core Dump

Describe the traffic that generated the bug

To Reproduce

Relevant System Logs

OS/environment information

  • Operating System: Red Hat Enterprise Linux Server release 6.9 (Santiago)
  • other relevant information:

Additional context
when i look at the log, I can see the below logs.

2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:build_res_buf_from_sip_res: copied size: orig:159, new: 387, rest: 329 msg=
SIP/2.0 200 OK
To: sip:10.203.250.2:5061;tag=0d69e290
Via: SIP/2.0/TCP 127.0.0.1:5061;received=10.203.87.41;rport=33404
Record-Route: sip:10.203.250.2:5066;r2=on;lr
Record-Route: sip:10.203.250.2:5061;transport=tls;r2=on;lr
CSeq: 1 OPTIONS
Content-Length: 0
Accept: application/sdp
Supported: 100rel
Call-ID: 1234
Accept-Encoding: identity
From: sip:127.0.0.1:5061

2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:tcp_conn_get: con found in state 0
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:tcp_conn_get: tcp connection found (0x7f0f79bf71e0), acquiring fd
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:tcp_conn_get: c= 0x7f0f79bf71e0, n=16, Usock=39
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159659]: DBG:core:handle_worker: read response= 7f0f79bf71e0, 1, fd -1 from 5 (159653)
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:tcp_conn_get: after receive_fd: c= 0x7f0f79bf71e0 n=8 fd=5
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:proto_tcp_send: sending via fd 5...
2020-09-15T16:19:34.000-04:00 [local2] [crit] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: CRITICAL:core:sig_usr: segfault in process pid: 159653, id: 5
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:restore_segv_handler: restoring SIGSEGV handler...
2020-09-15T16:19:34.000-04:00 [local2] [debug] ny5-cp-ipcac-01.corp.schonfeld.com /usr/sbin/opensipsExternal[159653]: DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler

I had attached the log for your reference.

Thanks,
Anjan

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions