Skip to content

Segfault when using Alpine #36

@tolmasky

Description

@tolmasky

In Alpine, you must first install gcompat to get past the Could not find wrtc binary on any of the paths error others have reported [1]:

apk add gcompat

This is because the try/catch in bindings.js swallows the error (assuming it is a .node file not found) and hides the true error:

Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory

Alpine doesn't include ld-linux-aarch64.so.1, but you can get it through gcompat as shown above. It may be worthwhile to put this in the README.

However, after doing this, wrtc is still not usable, as loading build-linux-x64/wrtc.node immediately segfaults. This is not uncommon, and not necessarily difficult to fix as there are a ton of people trying to make things compatible with alpine. However, this is as far as I could take it without needing to start doing an actual build to debug further. For now I am switching to bookworm linux, but it would be nice to use this on alpine instead. Hopefully this helps a bit to get it there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions