Skip to content

[CRASH] Crash in TLS #2284

@adigeo

Description

@adigeo

OpenSIPS version you are running

version: opensips 3.1.0-dev (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, 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: d879b36e9
main.c compiled on  with gcc 8

Crash Core Dump

Describe the traffic that generated the bug

Unclear what traffic caused this crash.

To Reproduce

Unclear how to reproduce this crash as it happened during live traffic.

Relevant System Logs

agp@sip-thor-node-01:/cores$ sudo gdb /usr/sbin/opensips core.13634.opensips.1602366266 
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Reading symbols from /usr/sbin/opensips...(no debugging symbols found)...done.
[New LWP 13634]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/opensips -w /run/opensips -P opensips.pid -a Q_MALLOC_DBG -m 1536'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7f643108e3 in CRYPTO_set_ex_data () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
(gdb) bt
#0  0x00007f7f643108e3 in CRYPTO_set_ex_data () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
#1  0x00007f7f64586918 in ?? () from /usr/lib/x86_64-linux-gnu/opensips/modules/proto_tls.so
#2  0x000055e4f4acc02b in ?? ()
#3  0x000055e4f4acdfb1 in tcp_worker_proc_loop ()
#4  0x000055e4f4ade2cb in tcp_start_processes ()
#5  0x000055e4f495c813 in main ()
(gdb) 

OS/environment information

  • Operating System: Debian Buster 10
  • OpenSIPS installation: git 3319120 / Thu Oct 1
  • other relevant information:

Additional context

Core dump file http://download.ag-projects.com/cores/core.13634.opensips.1602366266.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions