-
Notifications
You must be signed in to change notification settings - Fork 395
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
bug: time_t is the wrong size on i686-musl #1820
Comments
So your fix is to just disable the cpu time?? |
Not a fix, a "debugging patch" -- it seems that it's pointing at that block as being related to the problem. The |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Problem still exists. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.11.0-dev-1201+g0e2f92ed79
Operating system/version
Alpine Linux v3.14
Describe the bug
(Note: this reproduces on a wide variety of Neovim commits, and on later versions of Alpine and on Gentoo with a musl profile.)
lazy.nvim segfaults on i686-musl systems. It seems that this can be fixed with the following patch:
The
typedef long time_t;
is certainly incorrect here --long
isint32_t
on i686, buttime_t
isint64_t
.(This is insufficient to fix the segfault, but it's at least an easy thing to fix.)
FWIW, an example stack trace on segfault is:
How exactly we get to
gc_sweep
differs, but the trace always ends in those same frames#0-#3
.Steps To Reproduce
Be on an i686-musl platform. (The
muslcc/i686:i686-linux-musl
Docker container is sufficient.)Use the following
init.lua
:Open
nvim ~/.config/nvim/init.lua
(or another not-tiny file; if it doesn't repro, open another/larger file)Get a segfault
Expected Behavior
Don't segfault
Repro
The text was updated successfully, but these errors were encountered: