jagrosh / jagrosh/MusicBot

[Bug Report] Segfault on local mp3 playback

Open
#1,195 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug lavaplayer
Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

When trying to playback local mp3 files it crashes with the following segfault on different java versions 8 and 11.0.15

![image](https://user-images.githubusercontent.com/46815770/178807121-a35aa412-125e-4a0d-ae2f-45dae89c4e83.png)

`

[18:37:20] [INFO] [JMusicBot]: Loaded config from /home/music/JMusicBot/config.txt
--
Wed, Jul 13 2022 8:37:20 pm | [18:37:20] [WARN] [Settings]: Failed to load server settings (this is normal if no settings have been set yet): java.nio.file.NoSuchFileException: serversettings.json
Wed, Jul 13 2022 8:37:20 pm | [18:37:20] [INFO] [JDA]: Login Successful!
Wed, Jul 13 2022 8:37:20 pm | [18:37:20] [INFO] [WebSocketClient]: Connected to WebSocket
Wed, Jul 13 2022 8:37:20 pm | [18:37:20] [INFO] [JDA]: Finished Loading!
Wed, Jul 13 2022 8:37:25 pm | [18:37:25] [INFO] [NativeLibraryLoader]: Native library libmpg123-0: loading with filter com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader$Lambda$242/0x000000080035e840@7fbc6323
Wed, Jul 13 2022 8:37:25 pm | [18:37:25] [INFO] [NativeLibraryLoader]: Native library connector: loading with filter null
Wed, Jul 13 2022 8:37:25 pm | [18:37:25] [INFO] [NativeLibraryLoader]: Native library connector: successfully loaded.
Wed, Jul 13 2022 8:37:25 pm | #
Wed, Jul 13 2022 8:37:25 pm | # A fatal error has been detected by the Java Runtime Environment:
Wed, Jul 13 2022 8:37:25 pm | #
Wed, Jul 13 2022 8:37:25 pm | # SIGSEGV (0xb) at pc=0x00000000000072b6, pid=19, tid=59
Wed, Jul 13 2022 8:37:25 pm | #
Wed, Jul 13 2022 8:37:25 pm | # JRE version: OpenJDK Runtime Environment (11.0.15+10) (build 11.0.15+10-alpine-r1)
Wed, Jul 13 2022 8:37:25 pm | # Java VM: OpenJDK 64-Bit Server VM (11.0.15+10-alpine-r1, mixed mode, tiered, compressed oops, serial gc, linux-amd64)
Wed, Jul 13 2022 8:37:25 pm | # Problematic frame:
Wed, Jul 13 2022 8:37:25 pm | # C 0x00000000000072b6
Wed, Jul 13 2022 8:37:25 pm | #
Wed, Jul 13 2022 8:37:25 pm | # Core dump will be written. Default location: //core
Wed, Jul 13 2022 8:37:25 pm | #
Wed, Jul 13 2022 8:37:25 pm | # An error report file with more information is saved as:
Wed, Jul 13 2022 8:37:25 pm | # //hs_err_pid19.log
Wed, Jul 13 2022 8:37:25 pm | #
Wed, Jul 13 2022 8:37:25 pm | # If you would like to submit a bug report, please visit:
Wed, Jul 13 2022 8:37:25 pm | # https://gitlab.alpinelinux.org/alpine/aports/issues
Wed, Jul 13 2022 8:37:25 pm | # The crash happened outside the Java Virtual Machine in native code.
Wed, Jul 13 2022 8:37:25 pm | # See problematic frame for where to report the bug.

`

### Steps to Reproduce

use this docker image: https://hub.docker.com/r/joahtheron/lagerhacklerone
bind one volume to the mount point /Playlists

![image](https://user-images.githubusercontent.com/46815770/178807668-45d7a7e6-12c0-4b30-9752-eccfab4fff7a.png)

### Expected Result

Play the songs

### Debug Output

[hs_err_pid88.log](https://github.com/jagrosh/MusicBot/files/9105045/hs_err_pid88.log)
[hs_err_pid19.log](https://github.com/jagrosh/MusicBot/files/9105046/hs_err_pid19.log)

### Additional Info

_No response_

### Checklist

- [X] I have looked for information about this [within the documentation](https://jmusicbot.com/)
- [X] I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
- [X] I am running the latest version of the bot: ![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing hs_err_pid88.log and hs_err_pid19.log, then reproduce local MP3 playback with the linked Docker image, its /Playlists volume, and Java 8 or 11. Trace the native library loading reported in the logs; done means local songs play without a JVM-level SIGSEGV in the reported container setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.