On Mon, Nov 5, 2012 at 9:32 AM, Reinhard Kotucha <reinhard.kotucha@web.de> wrote:
---------------------------------
#! /usr/bin/env texlua
--*- Lua -*-

s='abc def'; t=s.explode(' +')
s=' abc def'; t=s:explode(' +')
s='abc def '; t=s:explode(' +')
---------------------------------

Each of the tree lines results in a core dump with rev 4468.  They
don't crash in current TeX Live, though there are no complaints about
the syntax error in the first line (s is a string here, not a table).
Please try the simple patch attached.