[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: and/or missbehaviour in embedded lua 5.1
- From: Kein-Hong Man <mkh@...>
- Date: Fri, 17 Mar 2006 19:42:41 +0800
Andreas Stenius wrote:
Kein-Hong Man skrev:
Without a debugger, peppering lcode.c with printfs should be fine.
Said and done :)
After a few hours of peppering, I got this log file:
Not inlined, due to it's quite long..
I've not looked at it myself yet, am about to do so now, just want to
get it out too, so you can have a look too.
Bingo. I've got a candidate:
Line 735, lcode.c:
e1->k = e2->k; e1->u.s.info = e2->u.s.info;
e1->u.s.aux = e2->u.s.aux; e1->t = e2->t;
Borks when int is 2 bytes and lua_Number is 8 bytes.
Looks like a bug.
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia