FS#70213 - [hexchat] fails to start with lua 5.4.3
Attached to Project:
Community Packages
Opened by Andreas Radke (AndyRTR) - Tuesday, 30 March 2021, 05:52 GMT
Last edited by Daurnimator (daurnimator) - Tuesday, 01 February 2022, 15:15 GMT
Opened by Andreas Radke (AndyRTR) - Tuesday, 30 March 2021, 05:52 GMT
Last edited by Daurnimator (daurnimator) - Tuesday, 01 February 2022, 15:15 GMT
|
Details
hexchat fails to start with testing lua 5.4.3-1 giving a
segfault:
andyrtr@workstation64:[/tmp/hexchat/trunk]$ LANG=C hexchat ** (hexchat:12503): WARNING **: 07:46:14.919: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory ** (hexchat:12503): WARNING **: 07:46:14.921: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory ** (hexchat:12503): WARNING **: 07:46:14.987: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory ** (hexchat:12503): WARNING **: 07:46:14.987: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory PANIC: unprotected error in call to Lua API (attempt to call a nil value) Abgebrochen (Speicherabzug geschrieben) Looks like upstream is not yet aware of it. If you can confirm it I will can open an isses at: https://github.com/hexchat/hexchat/issues?q=is%3Aissue+is%3Aopen+lua (a simple rebuild doesn't fix it) BTW: I don't know why it fails over lua. I don't know it would load any plugin using lua. I don't remember that I had configured it to do so. So maybe lua isn't an optional dependency. |
This task depends upon
However I can confirm that it fails with "PANIC: unprotected error in call to Lua API (attempt to call a nil value)" if lua is installed.
It starts fine if lua is not installed, so this definitely is an optional dependency.
That comes from optional dependencies for spell checking etc.
I can also confirm that it segfaults. Will submit an upstream issue.
As a workaround, one can use "hexchat -n" to disable the plugins.
EDIT: reported here: https://github.com/hexchat/hexchat/issues/2558, though I doubt it will be fixed upstream, as project doesn't seem to be maintained really.
I also cannot reproduce it inside Docker, using
```
docker run -it --rm archlinux sh -c 'pacman -Sy --noconfirm hexchat lua && hexchat-text'
```
-Dwith-lua='lua' \
replaced with the line
-Dwith-lua='false' \
But of course, this will have the side effect of preventing you from using lua plugins in Hexchat.
So if it is confirmed that the reason for this crash is broken compatibility then there are 2 choices:
- fix hexchat and make it compatible with 5.4
- compile hexchat with lua 5.3 https://archlinux.org/packages/extra/x86_64/lua53/
I created https://github.com/hexchat/hexchat/pull/2559 for hexchat, I wonder if we can add it as a patch for hexchat for now, as I guess getting it upstream will take a while.