[luatex] luatex segfault on mips64el hardware

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Mar 11 02:51:46 CET 2012


On Mon, Dec 26, 2011 at 04:12, Kip Warner wrote:
> Hey folks,
>
> I am witnessing a segfault in luatex when it attempts to compile my book
> on mips64el hardware. Compiling a trivial hello world, however, is fine.
> I don't think it is an endian issue since this hardware is little endian
> which.

Here's a minimal example that generates the problem:

\definetextbackground[CodeExampleFrame]
    [location=paragraph]
\definetyping
    [CodeExample]
    [before=\startCodeExampleFrame,
     after=\stopCodeExampleFrame]
\starttext
\startCodeExample
hello
\stopCodeExample
\stoptext

Compiled with ConTeXt MKIV 2011.11.23 18:58 and LuaTeX
beta-0.71.0-2011122518 (rev 4358), but even though ConTeXt is old,
LuaTeX should not segfault. I get more or less the same backtrace - it
breaks during hyphenation (replacing "hello" with dots won't generate
a problem). The example compiles fine on my Mac, but I didn't try that
exact version of ConTeXt yet.

Mojca
-------------- next part --------------
Program received signal SIGSEGV, Segmentation fault.
hnj_hyphenation (head=<value optimized out>, tail=<value optimized out>) at ../../../source/texk/web2c/luatexdir/lang/texlang.w:904
904	            if (lang->exceptions != 0 &&
(gdb) bt full
#0  hnj_hyphenation (head=<value optimized out>, tail=<value optimized out>) at ../../../source/texk/web2c/luatexdir/lang/texlang.w:904
        clang = -1
        end_word = 805
        lhmin = 2
        rhmin = 3
        hyf_font = 44
        lchar = <value optimized out>
        i = <value optimized out>
        lang = 0x3
        langdata = {pre_hyphen_char = -1, post_hyphen_char = -1, pre_exhyphen_char = 0, post_exhyphen_char = 16}
        utf8word = "someveryveryveryveryery", '\000' <repeats 1001 times>
        wordlen = 23
        hy = 0x7fff28bb ""
        replacement = 0x2c <Address 0x2c out of bounds>
        explicit_hyphen = 0
        s = <value optimized out>
        r = 464
        save_tail = 0
        left = <value optimized out>
        right = <value optimized out>
        __PRETTY_FUNCTION__ = "hnj_hyphenation"
#1  0x004d2af0 in do_lang_hyphenate (L=0xc34118) at ../../../source/texk/web2c/luatexdir/lua/llanglib.c:217
        h = 0xfb48f0
        tt = 10265812
#2  0x00685ee8 in luaD_precall (L=0xc34118, func=<value optimized out>, nresults=1) at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:319
        ci = <value optimized out>
        n = <value optimized out>
        funcr = <value optimized out>
#3  0x0069a24c in luaV_execute (L=0xc34118, nexeccalls=3) at ../../../source/texk/web2c/luatexdir/lua51/lvm.c:587
        nresults = 1
        i = <value optimized out>
        ra = 0x3
        base = 0x3
        k = 0x0
        pc = 0xfc51b4
#4  0x006864bc in luaD_call (L=0xc34118, func=0x221b310, nResults=<value optimized out>) at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:377
No locals.
#5  0x00685888 in luaD_rawrunprotected (L=0xc34118, f=0x67c7a0 <f_call>, ud=0x7fff33e0) at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:116
        lj = {previous = 0x0, b = {{__jmpbuf = {{__pc = 0x685868, __sp = 0x7fff3260, __regs = {12796184, 0, 1, 0, 19928352, 19928352, 9306676, 9950748}, __fp = 0x97d754, __gp = 0x2aeed960, 
                  __fpc_csr = 4, __fpregs = {-nan(0xfffffffffffff), -nan(0xfffffffffffff), -nan(0xfffffffffffff), -nan(0xfffffffffffff), -nan(0xfffffffffffff), -nan(0xfffffffffffff)}}}, 
              __mask_was_saved = 0, __saved_mask = {__val = {28, 720296288, 6864, 720296288, 720296288, 12796184, 12796304, 28, 12796184, 0, 240, 13269400, 4552380, 9951060, 6841532, 
                  4294967295, 4294967295, 9969568, 9950748, 0, 28, 2, 6855844, 9953480, 0, 0, 5571244, 9969568, 24, 9950760, 9951176, 9969568}}}}, status = 0}
#6  0x006858ec in luaD_pcall (L=0x9ca4d4, func=0x7fff0203, u=0x7fff0203, old_top=<value optimized out>, ef=0) at ../../../source/texk/web2c/luatexdir/lua51/ldo.c:457
        status = <value optimized out>
        oldnCcalls = 0
        old_allowhooks = 1 '\001'
---Type <return> to continue, or q <return> to quit---
        old_errfunc = 0
#7  0x0067c534 in lua_pcall (L=0xc34118, nargs=<value optimized out>, nresults=1, errfunc=<value optimized out>) at ../../../source/texk/web2c/luatexdir/lua51/lapi.c:816
        c = {func = 0x221b310, nresults = 1}
        status = 10265808
        func = 10265808
#8  0x005354e0 in lua_node_filter (filterid=<value optimized out>, xextrainfo=2147418627, head_node=30, tail_node=0xca7998) at ../../../source/texk/web2c/luatexdir/lua/luanode.w:105
        ret = <value optimized out>
        a = <value optimized out>
        L = 0xc34118
        s_top = 23
        extrainfo = 0x8e0234 ""
        callback_id = <value optimized out>
#9  0x005582e8 in line_break (d=0, line_break_context=0) at ../../../source/texk/web2c/luatexdir/tex/linebreak.w:134
        paragraph_dir = <value optimized out>
        final_par_glue = 1174
        start_of_par = 12788316
        callback_id = <value optimized out>
        __PRETTY_FUNCTION__ = "line_break"
#10 0x0047dd78 in end_graf (line_break_context=<value optimized out>) at ../../../source/texk/web2c/luatexdir/tex/maincontrol.w:1523
No locals.
#11 0x0047e078 in run_par_end_hmode () at ../../../source/texk/web2c/luatexdir/tex/maincontrol.w:504
No locals.
#12 0x00483bd0 in main_control () at ../../../source/texk/web2c/luatexdir/tex/maincontrol.w:905
No locals.
#13 0x004782e4 in main_body () at ../../../source/texk/web2c/luatexdir/tex/mainbody.w:469
        pdftex_map = "pdftex.map"
#14 0x0044a788 in main (ac=<value optimized out>, av=<value optimized out>) at ../../../source/texk/web2c/luatexdir/luatex.c:460
No locals.


More information about the luatex mailing list