Re: segfault

  • From: Justin Cormack <justin@xxxxxxxxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 4 Aug 2012 18:49:28 +0100

On Fri, Aug 3, 2012 at 10:03 PM, Justin Cormack
<justin@xxxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, Aug 3, 2012 at 9:28 AM, Mike Pall <mike-1208@xxxxxxxxxx> wrote:
>> Well, the backtrace shows it assumes some type is an enum there.
>> But that doesn't match your description. Can you try to recompile
>> with assertions turned on and derive a minimal test case?

Here is a test case that fails on luajit head with assertions enabled
(it doesnt actually crash without assertions, unlike the original
code).

https://gist.github.com/3258916

If I cut it down any further it starts to succeed, suggestion that
there is something gc related going on.

Justin

Other related posts: