[Dev-luatex] os.execute() crashes with segmentation fault

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu Apr 14 19:30:05 CEST 2011


since some time LuaTeX os.execute() crashes with segmentation fault:

% luatex -ini
\csname @@end\endcsname\end

Results of beta-0.66.0 (rev 4141):

Program received signal SIGSEGV, Segmentation fault.
0x400ce243 in strlen () from /lib/i686/libc.so.6

#0  0x400ce243 in strlen () from /lib/i686/libc.so.6
#1  0x0809059b in shell_cmd_is_allowed (cmd=0xbfffed70, safecmd=0xbfffed74, 
    cmdname=0xbfffed78) at ../../../source/texk/web2c/luatexdir/luatex.c:224
#2  0x080f0a1a in os_execute (L=0x876c0a0)
    at ../../../source/texk/web2c/luatexdir/lua/loslibext.c:986
#3  0x082194e1 in luaD_precall (L=0x876c0a0, func=0x0, nresults=0)
    at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:319
#4  0x0822758f in luaV_execute (L=0x876c0a0, nexeccalls=1)
    at ../../../source/texk/web2c/luatexdir/lua51/lvm.c:587
#5  0x08219780 in luaD_call (L=0x876c0a0, func=0x87a09d4, nResults=0)
    at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:377
#6  0x082137e9 in f_call (L=0x876c0a0, ud=0x0)
    at ../../../source/texk/web2c/luatexdir/lua51/lapi.c:795
#7  0x08218d5f in luaD_rawrunprotected (L=0x876c0a0, f=0x82137d0 <f_call>, 
    ud=0xbffff010) at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:121
#8  0x08219a2c in luaD_pcall (L=0x876c0a0, func=0x82137d0 <f_call>, 
    u=0xbffff010, old_top=142000288, ef=0)
    at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:457
#9  0x08213838 in lua_pcall (L=0x876c0a0, nargs=0, nresults=0, errfunc=0)
    at ../../../source/texk/web2c/luatexdir/lua51/lapi.c:816
#10 0x08099dea in luatokencall (p=8, nameptr=24) at luastuff.w:457
#11 0x080d1301 in conv_toks () at textoken.w:1899
#12 0x080a67f5 in expand () at expand.w:230
#13 0x080a6e25 in get_x_token () at expand.w:391
#14 0x08132d35 in main_control () at maincontrol.w:892
#15 0x080c310f in main_body () at mainbody.w:469
#16 0x080908dc in main (ac=3, av=0xbffff1a4)
    at ../../../source/texk/web2c/luatexdir/luatex.c:461

0.60.2 (rev 3736) (TL 2010): segmentation fault

0.40.6 works.

Yours sincerely
  Heiko Oberdiek

More information about the dev-luatex mailing list