-
Notifications
You must be signed in to change notification settings - Fork 333
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
Segmentation fault on Connection::open
#879
Comments
It being Alpine Linux I'm guessing this has to do with incompatible libcs or something... Hrm. |
I've also encountered this problem on alpine. It happens when calling The compilation flags used to build sqlite3 on alpine [0] may be incompatible with the use of those bindings. Should I find the motivation I'll post which flag is problematic. In the mean time, using the [0] https://git.alpinelinux.org/aports/tree/main/sqlite/APKBUILD#n49 |
I've ran into this issue. I sadly don't have anything of importance to add, but can confirm that using the |
I've run into the same issue when building arti : https://gitlab.torproject.org/tpo/core/arti/-/issues/571 Any update on this issue? |
It's most likely an issue with your build, often because you're linking and running against different libcs (or the same libc in different configurations, as with alpine). |
Yeah you're using alpine too. In general you can't use either of the the standard You might be able to make it work by using Another way to get it to work is to not use alpine -- sadly using dynamically linked musl is weird enough that it's not 100% supported out of the box. If there's something I can do on my end to make it work better I'll do it (if there aren't major drawbacks), but I'm not sure there is until rustc decouples the assumptions about static linking from its musl targets. |
Just tried it, |
Good to know. Glad to hear that it's as simple as passing some build options, and that they're build options that make sense to fix this. I think there's nothing rusqlite can do to fix this then, since it's an issue with how things were built, so is more of a rustc/cargo thing (and making the situation on dynamic musl systems like alpine better is something that the rust project hopes to do, IIRC). |
With the latest version(0.24.2), Segment error in docker
Segmentation fault is bound to occur whether or not the db file exists.
Everything is fine on the host, but inside docker there is a segment error.
sqlite-libs (3.32.1-r0)
sqlite-dev (3.32.1-r0)
Alpine Linux in docker
host : x86_64
The text was updated successfully, but these errors were encountered: