Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79661 - [neovim] Crashes with SIGABORT due to `libuv` error

Attached to Project: Arch Linux
Opened by Ignacio Taranto (itaranto) - Monday, 11 September 2023, 20:13 GMT
Last edited by Toolybird (Toolybird) - Saturday, 07 October 2023, 00:41 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Neovim crashes when using the dynamically linked `libuv` library, this was evidenced when the CMake
option `USE_BUNDLED=OFF` was added recently.

See:
https://gitlab.archlinux.org/archlinux/packaging/packages/neovim/-/commit/ee29bbcd1baf0d0b5d883116254ca1f7b65923da

Additional info:
* package version(s): 0.9.2-1
* link to upstream bug report, if any: https://github.com/neovim/neovim/issues/25086

Steps to reproduce:
See the provided Github link for the reproduction steps.
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 07 October 2023, 00:41 GMT
Reason for closing:  Upstream
Additional comments about closing:  If it's a bug in libuv then please bisect and report upstream to libuv.
Comment by Ignacio Taranto (itaranto) - Monday, 11 September 2023, 20:19 GMT
I forgot to mention this happens with neovim 0.9.1-3 which was the precise time when the bundled libraries were removed.

0.9.1-2 doesn't have the issue.
Comment by Toolybird (Toolybird) - Monday, 11 September 2023, 22:37 GMT
IIUC, upstream can repro on non-Arch? Therefore this is *not* an Arch packaging issue. But it might be an upstream libuv issue. Please keep us posted.
Comment by Ignacio Taranto (itaranto) - Monday, 11 September 2023, 23:08 GMT
Yes, I wasn't saying it's an Arch issue, it's probably a `libuv` (or maybe Neovim) issue.

This issue happens with Neovim's AppImage too, but it doesn't happen when building Neovim with bundled libraries (Neovim's default).

My point is that you may want to revert to using Neovim bundled libraries or at least use `USE_BUNDLED_LIBUV=ON` due to this regression.

(I'm not aware of the reason why the Arch Linux package disables bundled libraries for Neovim).
Comment by Ignacio Taranto (itaranto) - Monday, 11 September 2023, 23:28 GMT
Changing the build command from:

make CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=/usr USE_BUNDLED=OFF USE_BUNDLED_TS_PARSERS=ON

to:

make CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=/usr

fixes the issue.

Strangely, using:

make CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=/usr USE_BUNDLED=OFF USE_BUNDLED_LIBUV=ON USE_BUNDLED_TS_PARSERS=ON

doesn't seem to be working (ldd still shows nvim linking to libuv).

Loading...