lua-users home
lua-l archive

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


Gang,

I'm getting an intermittent crash in Lua. Looking at the stack trace (below), I wonder - is this because I don't have large enough stack?

I'm using 5.0 (not 5.1 nor 5.2 - I'll get there but have other things to do first).

The interesting thing is that I can 99% of the time successfully execute this particular script (it gets called on mouse ups). Just every now and then, kabloowie!

Here is the stack trace:

Thread 0 Crashed:
0   Test Bed 32 Development   	0x005cea94 0x405000 + 0x1c9a94
1   Test Bed 32 Development   	0x005cf64c 0x405000 + 0x1ca64c
2   Test Bed 32 Development   	0x004fff70 luaM_realloc + 0x80
3   Test Bed 32 Development   	0x004f9e7c luaD_reallocstack + 0x3c
4   Test Bed 32 Development   	0x004f9ff8 luaD_growstack + 0x38
5 Test Bed 32 Development 0x004faf90 f_parser__FP9lua_StatePv + 0xd0
6   Test Bed 32 Development   	0x004f9bc4 luaD_rawrunprotected + 0x54
7   Test Bed 32 Development   	0x004fb044 luaD_protectedparser + 0x64
8   Test Bed 32 Development   	0x004f4f74 lua_load + 0x84
9 Test Bed 32 Development 0x004f1e08 InterpretText__9LuaEngineFPvUlPcP15ScriptParametersP12CustomNumber + 0x68

Can anyone give me some direction to help guide me in debugging this one?

Thx,
Ando

-----------------------
Ando Sonenblick
SpriTec Software
www.spritec.com