Skip to content

Native crash (SIGSEGV) on process shutdown #212

Description

@KF-Miyata

Describe the bug
Runtime behavior is fine during execution, but a native crash occurs on program exit.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f310ed1610d, pid=252732, tid=0x00007f3140569700
#
# JRE version: OpenJDK Runtime Environment (8.0_432-b06) (build 1.8.0_432-432-b06)
# Java VM: OpenJDK 64-Bit Server VM (25.432-b06 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libwebrtc-java-linux-x86_642121276466645068163.so+0x4d010d]  jni::JavaFactory<webrtc::RtpTransceiverInterface>::~JavaFactory()+0x2d
#
# 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:
# /home/dev/hs_err_pid252732.log

To Reproduce
Minimal code:

import dev.onvoid.webrtc.media.audio.AudioProcessing;

public class Repro {
    public static void main(String[] args) {
        AudioProcessing ap = new AudioProcessing();
        ap.dispose();
    }
}

Gradle dependencies:

implementation "dev.onvoid.webrtc:webrtc-java:0.14.0"
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.14.0", classifier: "linux-x86_64"

Expected behavior
Process should exit cleanly with no crash

Desktop (please complete the following information):

  • OS: AlmaLinux 8.10 (Cerulean Leopard)
  • Architecture: x86_64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions