Re: segfault

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

On Sat, Aug 4, 2012 at 7:38 PM, William Adams <william_a_adams@xxxxxxx> wrote:
> if type(tp) == "string" and tp == "address" then
>    tp = S.addrtype[af]
>   end
>
> When does S.addrtype ever get initialized?

That code is never executed in this test case, which is cut down from
real code... and it was just a Lua table in the original so would not
cause a crash.

It might be a gc issue, but I haven't found anything (oddly it fails
to error under valgrind).

Justin

Other related posts: