-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM segfaults on NetBSD 10 amd64 #8550
Comments
Update: I've compiled Erlang 26.2.5 from source and additionally compiled debug vm. I've changed Elixir script so that it executes I tried to run shell in gdb, so that I can execute
So it looks like it crashes upon opening compiled library. My current theory is that library does another |
Another update: I've isolated it to libvips version. Git version works okay, while latest stable release segfaults the VM. |
Upon further debug it turns out that the culprit is in how native code is linked: removing https://mail-index.netbsd.org/netbsd-bugs/2023/12/26/msg080904.html |
Seems like this is not an issue with Erlang/OTP so I'm closing this issue. |
Describe the bug
Trying to install vix (Elixir wrapper for libvips graphical library) crashes VM with segfault. This package uses native code, so there's compile/make phase involved, however crash occures after all native code is linked.
To Reproduce
This may be quite tedious, but in essence you'll need to spin up NetBSD 10 VM, and bootstrap pkgsrc. Erlang and Elixir are in the main tree, and libvips can be found at https://github.com/NetBSD/pkgsrc-wip/tree/master/libvips. I understand it sounds like too much, and can provide access to my VM by request or run some commands if needed.
Anyway, it goes like this.
This needed to indicate that target library is already provided by the system, otherwise vix script would try to compile it and fail on NetBSD:
Cloning latest version (doesn't really matter at this point):
Installing deps:
Compilation
Trying again, to ensure it's not connected to the native code:
Expected behavior
No crash
Affected versions
Erlang v26.2.5, Elixir v.1.14.5, Elixir v1.16.2
Additional context
I thought that maybe it crashes due to some unresolved native dependency, but .so looks alright:
I'm really puzzled regarding what goes wrong, because opening coredump yields nothing spectacular. I'm attaching coredump here for brevity:
coredump.tgz
The text was updated successfully, but these errors were encountered: