Lakelezz / audiopus_sys

Rust FFI-binding of Opus.
ISC License
14 stars 21 forks source link

Segmentation fault on alpine #9

Open SuperCuber opened 2 years ago

SuperCuber commented 2 years ago

Hey, I'm trying to run a discord bot using serenity and songbird on an alpine docker container. However when trying to join a voice channel it segfaults on this line

https://github.com/Lakelezz/audiopus/blob/701dbf9c07afba9f39e8944c9acdad46b5f921e1/src/coder/encoder.rs#L87

See https://github.com/serenity-rs/songbird/issues/120 for original issue.

Info about the system:

/app # ldd /usr/local/bin/my-binary
        /lib/ld-musl-x86_64.so.1 (0x7fcb47cea000)
        libopus.so.0 => /usr/lib/libopus.so.0 (0x7fcb458d1000)
        libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fcb47cea000)
/app # apk info opus
opus-1.3.1-r1 description:
Codec designed for interactive speech and audio transmission over the Internet

It may be relevant that the binary is created in a different docker build stage with only opus-dev installed - I don't think this should matter.