Skip to content

Instantly share code, notes, and snippets.

@agladysh
Created February 17, 2012 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agladysh/1850707 to your computer and use it in GitHub Desktop.
Save agladysh/1850707 to your computer and use it in GitHub Desktop.
Weird Lua crash with Adobe Alchemy
https://github.com/lua-alchemy/lua-alchemy/compare/ag/150/weird-bugs...ag/150/debug-output
[SWF] LuaAlchemyiOSTest.swf - 4,676,970 bytes after decompression
initializing 6...
0010 -- BEGIN
0020
0030
0040
0050
0051 -- luaL_openlibs BEGIN 1
0052
0053
0053.1 name L 0x110000 lib 0x10cf70 func 0x1b9
0054
0055
0056
0057.1.0010 -- base_open BEGIN
0057.1.0020
0057.1.0021 L 0x110000 top type table globalsindex -10002
0057.1.0022
0057.1.0030.1.0072.0140.0050.0010 -- luaV_settable BEGIN
0057.1.0030.1.0072.0140.0050.0020
0057.1.0030.1.0072.0140.0050.0030
0057.1.0030.1.0072.0140.0050.0040
0057.1.0030.1.0072.0140.0050.0040.0010 -- luaH_set BEGIN
0057.1.0030.1.0072.0140.0050.0040.0020
0057.1.0030.1.0072.0140.0050.0040.0030
0057.1.0030.1.0072.0140.0050.0040.0050
0057.1.0030.1.0072.0140.0050.0040.0090 -- luaH_set END
0057.1.0030.1.0072.0140.0050.0040.0090.0010 -- newkey BEGIN
0057.1.0030.1.0072.0140.0050.0040.0090.0020
0057.1.0030.1.0072.0140.0050.0040.0090.0240
0057.1.0030.1.0072.0140.0050.0040.0090.0250
0057.1.0030.1.0072.0140.0050.0040.0090.0260
0057.1.0030.1.0072.0140.0050.0040.0090.0270
0057.1.0030.1.0072.0140.0050.0040.0090.0280 -- newkey END
0057.1.0030.1.0072.0140.0050.0050
0057.1.0030.1.0072.0140.0050.0060
0057.1.0030.1.0072.0140.0050.0070
0057.1.0030.1.0072.0140.0050.0080 -- luaV_settable END.1
0057.1.0023
0057.1.0024
0057.1.0025 L 0x110000 top type nil
0057.1.0026
0057.1.0030
0057.1.0030.1.0010 -- luaI_openlib BEGIN
0057.1.0030.1.0020
0057.1.0030.1.0030
0057.1.0030.1.0072.0010 -- luaL_findtable BEGIN
0057.1.0030.1.0072.0020
0057.1.0030.1.0072.0030
0057.1.0030.1.0072.0040
0057.1.0030.1.0072.0050
0057.1.0030.1.0072.0060
0057.1.0030.1.0072.0070
0057.1.0030.1.0072.0080
0057.1.0030.1.0072.0090
0057.1.0030.1.0072.0100
0057.1.0030.1.0072.0110
0057.1.0030.1.0072.0120
0057.1.0030.1.0072.0130
0057.1.0030.1.0072.0140
0057.1.0030.1.0072.0140.0010 -- lua_settable BEGIN
0057.1.0030.1.0072.0140.0020
0057.1.0030.1.0072.0140.0030
0057.1.0030.1.0072.0140.0040
0057.1.0030.1.0072.0140.0050
0057.1.0030.1.0072.0140.0050.0010 -- luaV_settable BEGIN
0057.1.0030.1.0072.0140.0050.0020
0057.1.0030.1.0072.0140.0050.0030
0057.1.0030.1.0072.0140.0050.0040
0057.1.0030.1.0072.0140.0050.0040.0010 -- luaH_set BEGIN
0057.1.0030.1.0072.0140.0050.0040.0020
0057.1.0030.1.0072.0140.0050.0040.0030
0057.1.0030.1.0072.0140.0050.0040.0050
0057.1.0030.1.0072.0140.0050.0040.0090 -- luaH_set END
0057.1.0030.1.0072.0140.0050.0040.0090.0010 -- newkey BEGIN
0057.1.0030.1.0072.0140.0050.0040.0090.0020
0057.1.0030.1.0072.0140.0050.0040.0090.0240
0057.1.0030.1.0072.0140.0050.0040.0090.0250
0057.1.0030.1.0072.0140.0050.0040.0090.0260
0057.1.0030.1.0072.0140.0050.0040.0090.0270
0057.1.0030.1.0072.0140.0050.0040.0090.0280 -- newkey END
0057.1.0030.1.0072.0140.0050.0050
0057.1.0030.1.0072.0140.0050.0060
0057.1.0030.1.0072.0140.0050.0070
0057.1.0030.1.0072.0140.0050.0080 -- luaV_settable END.1
0057.1.0030.1.0072.0140.0060
0057.1.0030.1.0072.0140.0070
0057.1.0030.1.0072.0140.0080 -- lua_settable END
0057.1.0030.1.0072.0150
0057.1.0030.1.0072.0180
0057.1.0030.1.0072.0190
0057.1.0030.1.0072.0200
0057.1.0030.1.0072.0210 -- luaL_findtable END
0057.1.0030.1.0040
0057.1.0030.1.0050
0057.1.0030.1.0060
0057.1.0030.1.0070
0057.1.0030.1.0071 L 0x110000 libname _G size 24 globalsindex -10002
0057.1.0030.1.0072
0057.1.0030.1.0072.0010 -- luaL_findtable BEGIN
0057.1.0030.1.0072.0020
0057.1.0030.1.0072.0030
0057.1.0030.1.0072.0040
0057.1.0030.1.0072.0050
0057.1.0030.1.0072.0060
0057.1.0030.1.0072.0070
0057.1.0030.1.0072.0080
0057.1.0030.1.0072.0090
0057.1.0030.1.0072.0100
0057.1.0030.1.0072.0110
0057.1.0030.1.0072.0120
0057.1.0030.1.0072.0130
0057.1.0030.1.0072.0140
0057.1.0030.1.0072.0140.0010 -- lua_settable BEGIN
0057.1.0030.1.0072.0140.0020
0057.1.0030.1.0072.0140.0030
0057.1.0030.1.0072.0140.0040
0057.1.0030.1.0072.0140.0050
0057.1.0030.1.0072.0140.0050.0010 -- luaV_settable BEGIN
0057.1.0030.1.0072.0140.0050.0020
0057.1.0030.1.0072.0140.0050.0030
0057.1.0030.1.0072.0140.0050.0040
0057.1.0030.1.0072.0140.0050.0040.0010 -- luaH_set BEGIN
0057.1.0030.1.0072.0140.0050.0040.0020
0057.1.0030.1.0072.0140.0050.0040.0030
0057.1.0030.1.0072.0140.0050.0040.0050
0057.1.0030.1.0072.0140.0050.0040.0090 -- luaH_set END
0057.1.0030.1.0072.0140.0050.0040.0090.0010 -- newkey BEGIN
0057.1.0030.1.0072.0140.0050.0040.0090.0020
0057.1.0030.1.0072.0140.0050.0040.0090.0030
0057.1.0030.1.0072.0140.0050.0040.0090.0040
0057.1.0030.1.0072.0140.0050.0040.0090.0040.0010 -- getfreepos BEGIN
0057.1.0030.1.0072.0140.0050.0040.0090.0040.0020
0057.1.0030.1.0072.0140.0050.0040.0090.0040.0021 t: 0x0
0057.1.0030.1.0072.0140.0050.0040.0090.0040.0022
0057.1.0030.1.0072.0140.0050.0040.0090.0040.0023 t->lastfree: 0xffffffe8
0057.1.0030.1.0072.0140.0050.0040.0090.0040.0024
RangeError: Error #1506: The specified range is invalid.
at cmodule.lua_wrapper::FSM_newkey/work()
at Function/<anonymous>()
at Function/<anonymous>()
at luaAlchemy::lua_wrapper$/luaInitializeState()[/Users/agladysh/projects/lua-alchemy/alchemy/wrapper/bin/src/luaAlchemy/lua_wrapper.as:7]
at LuaAlchemyiOSTest/onCreationComplete()[/Users/agladysh/Documents/Adobe Flash Builder 4.6/LuaAlchemyiOSTest/src/LuaAlchemyiOSTest.mxml:14]
at LuaAlchemyiOSTest/___LuaAlchemyiOSTest_Application1_creationComplete()[/Users/agladysh/Documents/Adobe Flash Builder 4.6/LuaAlchemyiOSTest/src/LuaAlchemyiOSTest.mxml:4]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at mx.core::UIComponent/set initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:842]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment