Jitsi videobridge crash SIGSEGV after SCTP resource temporary unavailable

relate to https://github.com/jitsi/jitsi-sctp/issues/6

Currently, we are running jitsi-videobridge on

VM with 24vCPU, 48GB Memory 

JVM parameter:

-Djava.net.preferIPv4Stack=true -Duser.timezone=Asia/Bangkok -Xmx16g -Xms16g -Xmn8g -XX:MaxMetaspaceSize=512m -XX:MetaspaceSize=512m -Djava.security.egd=file:/dev/./urandom -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=videobridge

OS: Ubuntu 18 LTS

Kernel version
# uname -a
Linux prod-vroom2-vdo-bridge-0001 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

JVB version: Jitsi-videobridge 2.1
# dpkg -l | grep jitsi
ii  jitsi-videobridge2                    2.1-157-g389b69ff-1                             all          WebRTC compatible Selective Forwarding Unit (SFU)

We are running multiple conferences on this VM and JVM is crash randomly.

Log file jvb.log show below:

# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x00007f0163d1cb1f, pid=13174, tid=0x00007f0027fff700
# JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x18eb1f]
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
# An error report file with more information is saved as:
# /tmp/hs_err_pid13174.log

How to reproduce?

  • Can’t reproduce. It happen randomly.

We already check resources CPU, Memory everything look fine.

So we figured this out /tmp/hs_err_pid13174.log is using libjnisctp.so and we already check it is latest version of current code in this reposity.

Could someone help investigate the problem?