-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Signal 11 segmentation fault on Alpine but not macOS #21765
Comments
I added code to print the V version when the app runs. import v.util.version
println(version.v_version) If I run it locally on macOS I get the current version; even tried this with the new However, while running from the Docker container ( |
Can you try to run the build with the flag: '-cflags "-static"'? to put all of the required deps inside the binary |
And yes, all of the docker images are out-of-date, you need to run v up in the thevlang/vlang:latest stage |
Yep. After I added |
Describe the bug
I wrote a small app which connects to my AWS Postgres database to perform a few selects. This works fine on my Intel Mac mini macOS (14.5 23F79). However, it crashes towards the end when ran inside an Alpine Docker container.
Reproduction Steps
Expected Behavior
On macOS:
Current Behavior
On Alpine Docker container:
Possible Solution
I'm not sure what is causing the fault on Alpine, though it occurs somewhere in the last bit of code:
Additional Information/Context
Dockerfile:
V version
0.4.6 4a7c70c
Environment details (OS name and version, etc.)
Alpine:latest
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: