Skip to content
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

Illegal instruction (core dumped) error when running LuaJIT on qemu-system-s390x #227

Open
wojiushixiaobai opened this issue May 3, 2024 · 1 comment

Comments

@wojiushixiaobai
Copy link

As the title suggests, I'm encountering an Illegal instruction (core dumped) error when running LuaJIT on qemu-system-s390x. Here are the steps to reproduce the issue:

docker run --privileged --rm tonistiigi/binfmt --install all
docker run --platform linux/s390x --rm -it openresty/openresty:1.25.3.1-3-bionic-s390x bash
luarocks --help

This issue only occurs on the linux/s390x platform. The same code does not produce this error when built on other architectures. Any help or guidance on this issue would be greatly appreciated.

@lysliu
Copy link

lysliu commented May 6, 2024

this works well on a s390x host, so it seems a bug on the qemu-system-s390x

root@e7cbf590f0b9:/# uname -a
Linux e7cbf590f0b9 4.18.0-477.27.1.el8_8.s390x #1 SMP Thu Aug 31 10:47:02 EDT 2023 s390x s390x s390x GNU/Linux
root@e7cbf590f0b9:/# luarocks --help
Usage: luarocks [-h] [--version] [--dev] [--server <server>]
       [--only-server <server>] [--only-sources <url>]
       [--namespace <namespace>] [--lua-dir <prefix>]
       [--lua-version <ver>] [--tree <tree>] [--local] [--global]
       [--no-project] [--force-lock] [--verbose] [--timeout <seconds>]
       [<command>] ...

LuaRocks 3.11.0, the Lua package manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants