On 03/07/2018 06:49 PM, Lucian Cristian wrote: > testing r6395-6c194078db on a ramips Ralink RT5350 with 4.14 and GCC 7.3 > gives this error in luci > > daemon.err uhttpd[873]: /usr/bin/lua: /usr/lib/lua/luci/debug.lua:6: > attempt to call a number value > daemon.err uhttpd[873]: stack traceback: > daemon.err uhttpd[873]: /usr/lib/lua/luci/debug.lua:6: in main chunk > daemon.err uhttpd[873]: [C]: in function 'require' > daemon.err uhttpd[873]: /usr/lib/lua/luci/util.lua:8: in main chunk > daemon.err uhttpd[873]: [C]: in function 'require' > daemon.err uhttpd[873]: /usr/lib/lua/luci/config.lua:4: in main chunk > daemon.err uhttpd[873]: [C]: in function 'require' > daemon.err uhttpd[873]: /usr/lib/lua/luci/cacheloader.lua:5: in main chunk > daemon.err uhttpd[873]: [C]: in function 'require' > daemon.err uhttpd[873]: /www/cgi-bin/luci:2: in main chunk > daemon.err uhttpd[873]: [C]: ?
I was able to reproduce this on ar71xx. Minimal testcase: > s = 'foo' > print(s:sub(2)) fails, while > print(s.sub(s, 2)) works correctly, even though the former is only syntactic sugar for the latter. FWIW, type(s) correctly states that s is a string. Looking into it now. Matthias
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel