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

bind fails with an error #375

Open
Tieske opened this issue Apr 15, 2022 · 3 comments
Open

bind fails with an error #375

Tieske opened this issue Apr 15, 2022 · 3 comments
Labels

Comments

@Tieske
Copy link
Member

Tieske commented Apr 15, 2022

Tieskes-MBP:copas thijs$ lua -v -e "require('socket').bind('*', 20000)"
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2020 Mike Pall. https://luajit.org/
lua: ...esty@1.19.3.2/1.19.3.2/luarocks/share/lua/5.1/socket.lua:35: attempt to call field 'tcp4' (a nil value)
stack traceback:
        ...esty@1.19.3.2/1.19.3.2/luarocks/share/lua/5.1/socket.lua:35: in function 'bind'
        (command line):1: in main chunk
        [C]: at 0x081a6fd9
Tieskes-MBP:copas thijs$

This is with LuaSocket 3.0.0.

There seem to be more issues, I will revert Copas to the RC, see lunarmodules/copas#114

Copas CI just hangs, see this run: https://github.com/lunarmodules/copas/actions/runs/2167022261

@alerque
Copy link
Member

alerque commented Apr 15, 2022

This appears to be a Lua 5.1/LuaJIT specific problem, I can replicate this on LuaJIT but it works fire on vanilla Lua >= 5.2.

@alerque alerque added the bug label Apr 15, 2022
@alerque
Copy link
Member

alerque commented Apr 15, 2022

I take back my last comment. My testing environment for 5.1 had other issues. I rebuilt luasocket using the correct Lua 5.1 headers and now it works for me both on vanilla Lua 5.1 and LuaJIT.

@alerque
Copy link
Member

alerque commented Apr 15, 2022

I've poked at this a bit more and can't come up with any sort of verification that there is an issue at all. Can you review your test case MWE? I'm not saying there is no problem, but I can't help track it down much if I can't get my hands on something that's failing.

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

No branches or pull requests

2 participants