Closed wmasilva closed 1 year ago
Since you tried some different versions of the code, I think you should start by checking whether you are running and loading the proper versions. Please, add a line like the following: print(_VERSION, luasql._VERSION, luasql._CLIENTVERSION)
Regards, Tomás
I've added the line:
print(_VERSION, driver._VERSION, driver._CLIENTVERSION)
The output now:
TEST LUA SQL ODBC localhost_tel_app
Lua 5.2 LuaSQL 2.6.0 (for Lua 5.2) nil
*** stack smashing detected ***: terminated
Aborted (core dumped)
i've also test to execute with different lua versions:
Lua 5.1
TEST LUA SQL ODBC localhost_tel_app
Lua 5.1 LuaSQL 2.6.0 (for Lua 5.1) nil
*** stack smashing detected ***: terminated
Aborted (core dumped)
Lua 5.3
TEST LUA SQL ODBC localhost_tel_app
Lua 5.3 LuaSQL 2.6.0 (for Lua 5.3) nil
*** stack smashing detected ***: terminated
Aborted (core dumped)
Lua 5.4
TEST LUA SQL ODBC localhost_tel_app
Lua 5.4 LuaSQL 2.6.0 (for Lua 5.4) nil
*** stack smashing detected ***: terminated
Aborted (core dumped)
if is relevant, I'm using unixodbc version 2.3.11. Tag version v2.4.0 (don't know why it prints LuaSQL 2.3.5!!) it works ok.
TEST LUA SQL ODBC localhost_tel_app
Lua 5.2 LuaSQL 2.3.5 (for Lua 5.2) nil
SUCCESS
Regards.
Just test with master version and its ok. issue is only present when downloading the tag version.
TEST LUA SQL ODBC localhost_tel_app
Lua 5.2 LuaSQL 2.6.0 (for Lua 5.2) nil
SUCCESS
Closing the issue.
I'm using debian buster, lua version 5.2.4, the lua-sql version in debian buster 2.3.1 is ok.
But recently update luasql to version 2.6.0 and got error when executing. I download and compile the tag versions, since version 2.5.0 it fails the last version that is ok is version v2.4.0
my test script:
Running the script:
From the core dump: