lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello folks,

We use Lua, 5.4.6 via Fennel, to power "the brains" of our Android apps
at Egghead Games.  Everything works well, but recently, we have gotten
some crash reports about 'luaD_precall' triggering 'luaB_assert'.

Looking at 'ldo.c', the only assertion in 'luaD_precall' is:

  lua_assert(ci->top.p <= L->stack_last.p);

What would be some common reasons for triggering this assertion?  We
have never seen it trigger during development, only in production.
Could the problem be indicative of a bug in Lua itself?

The crash logs from Android include the following trace:

  #00  pc 0x0000000000052654
   /apex/com.android.runtime/lib64/bionic/libc.so
   (abort+168)
  #01  pc 0x0000000000136510
   /data/app/ ... !libappcore.so
   (luaD_throw)
  #02  pc 0x000000000013ee98
   /data/app/ ... !libappcore.so
   (luaG_errormsg)
  #03  pc 0x000000000013ede4
   /data/app/ ... !libappcore.so
   (lua_error+52)
  #04  pc 0x000000000016a830
   /data/app/ ... !libappcore.so
   (luaB_error)
  #05  pc 0x0000000000169850
   /data/app/ ... !libappcore.so
   (luaB_assert)
  #06  pc 0x00000000001548f8
   /data/app/ ... !libappcore.so
   (luaD_precall)
  #07  pc 0x000000000014d858
   /data/app/ ... !libappcore.so
   (luaV_execute)
  #08  pc 0x000000000013dbd8
   /data/app/ ... !libappcore.so
   (lua_callk+144)

Rudy
-- 
"If you're thinking without writing, you only think you're thinking."
--- Leslie Lamport

Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia