-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Unable to launch the Lua VM on some systems.
Function script_plugin_init_lua throws a segfault for lua_settable().
Logs attached
Badrak% tests/test1 tests/test1.pl
Hello Perl World!
Hello, John! You are 66 years old.
Hello, Paul! You are 64 years old.
Results were 66 and 64
Badrak% tests/test1 tests/test1.lua
zsh: segmentation fault (core dumped) tests/test1 tests/test1.lua
Badrak% gdb --args tests/test1 tests/test1.lua
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tests/test1...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/luca/foobar/libscript-gsoc/libsc/tests/test1 tests/test1.lua
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6cee6a1 in lua_settable () from /usr/lib/liblua.so.5.3
(gdb) backtrace
#0 0x00007ffff6cee6a1 in lua_settable () from /usr/lib/liblua.so.5.3
#1 0x00007ffff72255bb in script_plugin_init_lua (env=0x6021f0)
at src/libscript-lua.c:97
#2 0x00007ffff7bd6f17 in script_plugin_load (env=env@entry=0x6021f0,
id=id@entry=0x602770 "lua") at src/plugin.c:98
#3 0x00007ffff7bd692e in script_run_file (env=0x6021f0,
filename=<optimized out>) at src/libscript.c:109
#4 0x0000000000400b5d in main ()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels