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

make[1]: *** [errhangtest] Segmentation fault: 11 #197

Closed
TT-SW opened this issue Apr 9, 2021 · 1 comment
Closed

make[1]: *** [errhangtest] Segmentation fault: 11 #197

TT-SW opened this issue Apr 9, 2021 · 1 comment

Comments

@TT-SW
Copy link

TT-SW commented Apr 9, 2021

I have fixed this issue, there is a problem with my download package. and my colleague uses luarocks to install lanes, this problem is not occur. I copied his installed version lane.lua and lanes/ core.so, this problem is solved. thanks

Originally posted by @TT-SW in #193 (comment)

This issue can be reappeared by this way,
Enviroment: Lua5.1 Mac os 10.14.5

  1. git clone Lanes code
  2. cd Lanes
  3. make test
    It will report the error as follow:

➜ lanes-3.11 make test
/Library/Developer/CommandLineTools/usr/bin/make errhangtest
cd src && /Library/Developer/CommandLineTools/usr/bin/make LUA=/usr/local/bin/lua5.1
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -Wall -Werror -O2 -I/usr/local/include/luajit-2.0 -c -o lanes.o lanes.c
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -Wall -Werror -O2 -I/usr/local/include/luajit-2.0 -c -o compat.o compat.c
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -Wall -Werror -O2 -I/usr/local/include/luajit-2.0 -c -o threading.o threading.c
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -Wall -Werror -O2 -I/usr/local/include/luajit-2.0 -c -o tools.o tools.c
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -Wall -Werror -O2 -I/usr/local/include/luajit-2.0 -c -o deep.o deep.c
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -Wall -Werror -O2 -I/usr/local/include/luajit-2.0 -c -o keeper.o keeper.c
mkdir -p lanes
MACOSX_DEPLOYMENT_TARGET=10.3 gcc -bundle -undefined dynamic_lookup lanes.o compat.o threading.o tools.o deep.o keeper.o -L/usr/local/lib -lluajit-5.1 -L/usr/local/lib -lluajit-5.1 -o lanes/core.so
ld: warning: object file (/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/bundle1.o) was built for newer OSX version (10.4) than being linked (10.3)
LUA_CPATH="./src/?.so" LUA_PATH="./src/?.lua;./tests/?.lua" /usr/local/bin/lua5.1 tests/errhangtest.lua
make[1]: *** [errhangtest] Segmentation fault: 11
make: *** [test] Error 2
➜ lanes-3.11

@benoit-germain
Copy link
Member

Unfortunately I have no access to macos, so I can't help you. Not sure if it worth keeping that issue open, so I'll close it until someone wants to reopen along with a pull request that fixes it.

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