Skip to content

[CRASH] segfault in dialog.so when use event_route #1890

@suharik71

Description

@suharik71

OpenSIPS version you are running

opensips -V
version: opensips 3.0.1 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_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: 3d2bd5318
main.c compiled on 02:53:35 Nov  7 2019 with gcc 4.8.5

Crash Core Dump
https://drive.google.com/file/d/1lEC8vDvEY-qIQ9FqgrHKtnskc-cJ3eH2/view?usp=sharing

Describe the traffic that generated the bug

when the get_dialogs_by_profile function is executed in event_route for a dialog that no longer exists opensips falls into error

To Reproduce

1. Start OpenSIPS
2. Start traffic
3. Check OpenSIPS crashed

Relevant System Logs

segfault at 90 ip 00007fe212482d64 sp 00007ffef48c34b0 error 4 in dialog.so[7fe21243c000+77000]

OS/environment information

  • Operating System: Centos 7
  • OpenSIPS installation: opensips-yum-nightly repo
  • other relevant information:

Additional context
an example of a config can be seen in the user email list
http://lists.opensips.org/pipermail/users/2019-November/041870.html

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions