Crashing when printing anything other than numbers and strings

Create issue
Issue #91 resolved
Xpol Wan created an issue

when print(table), e.g.:

print({})

Will cause program quit.

And if print(string, table) e.g.

print("", {})

will cause Fatal signal 11 (SIGSEGV)

11-25 17:52:53.398: A/libc(8974): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 9609 (SDLThread)

Comments (4)

  1. Martin Felis repo owner

    Fixed as of 013df025d0. The Lua Manual states that in other cases lua_tostring(L, i) returns NULL, which caused the crash.

    Resolved by emulating the output that is seen on the desktop version of LÖVE (i.e. <type>: <pointer>).

  2. Log in to comment