Memory chaos when scheduling a lua function

This bug can be reproduced consistently by this lua script: https://gist.github.com/3904880 .
I also submitted a bug report on github(https://github.com/cocos2d/cocos2d-x/issues/1468), i apologize if this post is a duplicate, but i’m not sure where this discussion should take place, and I’ve been annoyed by it for several days.
I’ve been looking into this, i’m not familiar with the memory management details about cocos2d-x and lua, it would be great if anyone can enlighten me on this.