Re: Segfaults in lj_snap_shrink

  • From: "Vyacheslav Egorov" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "vegorov" for DMARC)
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 30 Nov 2016 11:34:40 +0100

Are you running with default JIT parameters - or did you tweak any?

I have seen this sort of thing happen when things overflow uint16_t.

You can try running with:

if (((MSize)(uint16_t)(snap->mapofs + m)) != (snap->mapofs + m)) abort();

to check if this is the case.

Other related posts: