bee.lua
bee.lua copied to clipboard
Tests fail on FreeBSD with SIGBUS
I've tried to run the tests on FreeBSD but they fail since they are killed by SIGBUS. There seems to be a problem with creating the file watcher from Lua. This is the line which triggers the SIGBUS: https://github.com/actboy168/bee.lua/blob/a73df876cd6418496fa2d7f423e403487b2d115a/binding/lua_filewatch.cpp#L132
I've also added some debug code to the constructor but it seems like the constructor is never executed.
Usually I wouldn't mind about the tests failing but lua-language-server uses bee's filewatcher and is killed by the same SIGBUS, so this issue is actually the root cause.
I don't have a solution for this problem so I'm creating this issue in the hope that someone else has an idea :) Maybe a Lua bug? I tried to update the bundled Lua to 5.4.6 but it still fails.
EDIT: Seems to be related to https://github.com/actboy168/luamake/issues/33