>> export CFLAGS=... ## my CFLAGS
>> export CXXFLAGS=... # my CXXFLAGS
>> ./build.sh --jit --jithb --luahb --lua53 --nostrip --debug
>> --buildtag=build-gnu23-16.1 2>&1 | tee out-gnu23-16.1-linux
> 
> Any news ?

It still crashes, see below for gdb and valgrind output.


     Werner


======================================================================


This is LuaHBTeX, Version 1.26.4 (TeX Live 2027/dev) 
 restricted system commands enabled.
(./hello.tex
LaTeX2e <2026-06-01>
L3 programming layer <2026-06-18>
 (/usr/local/git/texlive/Master/texmf-dist/tex/latex/base/article.cls
Document Class: article 2025/01/22 v1.4n Standard LaTeX document class
(/usr/local/git/texlive/Master/texmf-dist/tex/latex/base/size10.clo
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a8d587 in freopen64 () from /lib64/libc.so.6
Missing separate debuginfos, use: zypper install 
glibc-debuginfo-2.40-160000.6.1.x86_64 
libstdc++6-debuginfo-15.3.0+git11272-160000.1.1.x86_64 
libgcc_s1-debuginfo-15.3.0+git11272-160000.1.1.x86_64
(gdb) bt full
#0  0x00007ffff7a8d587 in freopen64 () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ffff7fbbda4 in return_real_function (function=function@entry=6, 
    path=path@entry=0x7061d08 
"/home/wl/.texlive2026/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc",
 mode=mode@entry=0, mode_str=mode_str@entry=0xcf3644 "rb", 
    flags=<optimized out>, stream=<optimized out>) at open-funs.c:291
        retval = <optimized out>
#2  0x00007ffff7fbc02c in do_fopen_or_freopen_or_open 
(function=function@entry=6, path=0x7061d08 
"/home/wl/.texlive2026/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc")
    at open-funs.c:569
        mode_str = <optimized out>
        stream = <optimized out>
        mode = <optimized out>
        flags = <optimized out>
        arg_list = {{gp_offset = 16, fp_offset = 0, overflow_arg_area = 
0x7fffffffa640, reg_save_area = 0x7fffffffa5d0}}
        file_stat = {st_dev = 0, st_ino = 0, st_nlink = 18812168, st_mode = 
4155154122, st_uid = 32767, st_gid = 85, __pad0 = 0, st_rdev = 56172368, 
st_size = 4096, st_blksize = 0, 
          st_blocks = 140737488344464, st_atim = {tv_sec = 140737348379926, 
tv_nsec = 65027}, st_mtim = {tv_sec = 136103825, tv_nsec = 1}, st_ctim = 
{tv_sec = 4294967329188, 
            tv_nsec = 1000}, __glibc_reserved = {0, 127333, 4096}}
        error = <optimized out>
        absolute_path = <optimized out>
        file_should = <optimized out>
        return_value = <optimized out>
        cfg = {in_case_of_failure = 256, global_protection = 0, should_warn = 
1784473592, ignore_hidden = 0, ignore_editor_backup = 243519089, 
ignore_editor_temporary = 0, 
          protect_trash = 1770962487, libtrash_config_file_unremovable = 0, 
libtrash_off = 857315877, general_failure = 0, intercept_unlink = 1783627209, 
intercept_rename = 0, 
          intercept_fopen = 74850215, intercept_freopen = 0, intercept_open = 
0, real_unlink = 0x0, real_rename = 0x0, real_fopen = 0x7fffffffa640, 
          ignore_extensions = 0xe86140558f255400 <error: Cannot access memory 
at address 0xe86140558f255400>, relative_trash_can = 0x3591f50 "\210$\255", 
<incomplete sequence \373>, 
          relative_trash_system_root = 0x7ffff7bedff0 <_IO_file_jumps> "", 
unremovable_dirs = 0x0, 
          uncovered_dirs = 0x7ffff7a920b9 <_IO_doallocbuf+75> 
"\203\370\377u*H\213{8\213\003L\215\243\204", temporary_dirs = 0x3591f50 
"\210$\255", <incomplete sequence \373>, 
          user_temporary_dirs = 0x3591f50 "\210$\255", <incomplete sequence 
\373>, removable_media_mount_points = 0x7ffff7bedff0 <_IO_file_jumps> "", 
          exceptions = 0x7ffff7a8fbd3 <__GI__IO_file_underflow+341> 
"H\205\300~@H\213\223\220", ignore_re = 0x3591f50 "\210$\255", <incomplete 
sequence \373>, 
          absolute_trash_can = 0x7ffff7bedff0 <_IO_file_jumps> "", 
absolute_trash_system_root = 0x0, home = 0x7fffffffd590 
"\004\333\377\377\377\177", 
          preserve_files_larger_than_limit = 140737354125312}
#3  0x00007ffff7fbc459 in freopen64 (path=<optimized out>, mode=<optimized 
out>, stream=<optimized out>) at open-funs.c:135
        retval = <optimized out>
#4  0x00000000007274c4 in luaL_loadfilex (L=0x174da48, filename=0x7061d08 
"/home/wl/.texlive2026/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc",
 mode=0x0)
    at ../../../source/libs/lua53/lua53-src/src/lauxlib.c:721
        lf = {n = 0, f = 0x3591f50, 
          buff = 
"\200\200\213\200\000\000\313@\001\000\000\000\000\000\000\000\300\246\377\377\377\177\000\000\000
 
\000\000\000\000\000\000P\000\000\000\000\000\000\000H\332t\001\000\000\000\000/home/wl/.texlive2026/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regularlar.otf
 @ normal:abvm=true+blwm=true+calt=true+ccmp=true+clig=true+curs="...}
        status = 13587008
        readstatus = 2
        c = 27
        fnameindex = 2
#5  0x000000000047db00 in luatex_loadfile (L=0x174da48) at luastuff-hb.c:240
        status = 0
        fname = 0x7061d08 
"/home/wl/.texlive2026/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc"
        mode = 0x0
        env = 0
#6  0x000000000072e050 in luaD_precall (L=0x174da48, func=0x3bf7c30, 
nresults=1) at ../../../source/libs/lua53/lua53-src/src/ldo.c:434
        n = 0
        f = 0x47da3c <luatex_loadfile>
        ci = 0x369a390
#7  0x000000000074c5e6 in luaV_execute (L=0x174da48) at 
../../../source/libs/lua53/lua53-src/src/lvm.c:1134
        b = 2
        nresults = 1
        i = 16810724
#8  0x000000000072e3d4 in luaD_call (L=0x174da48, func=0x3bf78a0, nResults=1) 
at ../../../source/libs/lua53/lua53-src/src/ldo.c:499
No locals.
#9  0x000000000072e432 in luaD_callnoyield (L=0x174da48, func=0x3bf78a0, 
nResults=1) at ../../../source/libs/lua53/lua53-src/src/ldo.c:509
No locals.
#10 0x0000000000724bce in f_call (L=0x174da48, ud=0x7fffffffcfc0) at 
../../../source/libs/lua53/lua53-src/src/lapi.c:943
        c = 0x7fffffffcfc0
#11 0x000000000072d433 in luaD_rawrunprotected (L=0x174da48, f=0x724b99 
<f_call>, ud=0x7fffffffcfc0) at 
../../../source/libs/lua53/lua53-src/src/ldo.c:142
        oldnCcalls = 0
        lj = {previous = 0x0, b = {{__jmpbuf = {140737488344440, 
-7934598257178494350, 0, 140737488344464, 140737354125312, 18812168, 
-7934598257144939918, 7934599233090697842}, 
              __mask_was_saved = 0, __saved_mask = {__val = {21474823824, 
24435272, 63596160, 24435480, 140737488342768, 7595586, 140737488342752, 
21116387949, 26, 24435272, 0, 63596160, 
                  63596160, 51, 140737488342848, 7596228}}}}, status = 0}
#12 0x000000000072ebe1 in luaD_pcall (L=0x174da48, func=0x724b99 <f_call>, 
u=0x7fffffffcfc0, old_top=704, ef=0) at 
../../../source/libs/lua53/lua53-src/src/ldo.c:729
        status = 0
        old_ci = 0x174daa8
        old_allowhooks = 1 '\001'
        old_nny = 1
        old_errfunc = 0
#13 0x0000000000724c94 in lua_pcallk (L=0x174da48, nargs=3, nresults=1, 
errfunc=0, ctx=0, k=0x0) at ../../../source/libs/lua53/lua53-src/src/lapi.c:969
        c = {func = 0x3bf78a0, nresults = 1}
        status = 0
        func = 0
#14 0x00000000004a632a in do_run_callback (special=1, values=0xca7a21 "", 
vl=0x7fffffffd0c0) at 
../../../source/texk/web2c/luatexdir/lua/lcallbacklib.c:348
        i = 0
        ret = 0
        len = 0
        narg = 3
        nres = 1
        s = 0x3cac940 "[lmroman10-regular]:+tlig;"
        lstr = 0xffffffffffffd090
        cs = 0 '\000'
        bufloc = 0x7fffffffd080
        ss = 0x0
        retval = 0
#15 0x00000000004a5a85 in run_and_save_callback (i=35, values=0xca7a1c "Sdd->") 
at ../../../source/texk/web2c/luatexdir/lua/lcallbacklib.c:250
        args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 
0x7fffffffd1a0, reg_save_area = 0x7fffffffd0e0}}
        ret = 0
        stacktop = 42
#16 0x00000000005b8388 in do_define_font (f=15, cnom=0x3ca9e80 
"[lmroman10-regular]:+tlig;", s=655360, natural_dir=-1) at 
../../../source/texk/web2c/luatexdir/font/dofont.c:55
        res = 0
        cnam = 0x3cac940 "[lmroman10-regular]:+tlig;"
        r = 15
        t = 8
        callback_id = 35
#17 0x00000000005b8630 in read_font_info (u=595057, cnom=0x3ca9e80 
"[lmroman10-regular]:+tlig;", s=655360, natural_dir=-1) at 
../../../source/texk/web2c/luatexdir/font/dofont.c:117
        f = 15
        msg = 0x0
...








Document Class: article 2025/01/22 v1.4n Standard LaTeX document class
(/usr/local/git/texlive/Master/texmf-dist/tex/latex/base/size10.clo==390724== 
Invalid read of size 4
==390724==    at 0x4C82587: freopen64 (freopen64.c:43)
==390724==    by 0x485EDA3: return_real_function (open-funs.c:291)
==390724==    by 0x485F02B: do_fopen_or_freopen_or_open (open-funs.c:569)
==390724==    by 0x485F458: freopen64 (open-funs.c:135)
==390724==    by 0x7274C3: luaL_loadfilex (lauxlib.c:721)
==390724==    by 0x47DAFF: luatex_loadfile (luastuff-hb.c:240)
==390724==    by 0x72E04F: luaD_precall (ldo.c:434)
==390724==    by 0x74C5E5: luaV_execute (lvm.c:1134)
==390724==    by 0x72E3D3: luaD_call (ldo.c:499)
==390724==    by 0x72E431: luaD_callnoyield (ldo.c:509)
==390724==    by 0x724BCD: f_call (lapi.c:943)
==390724==    by 0x72D432: luaD_rawrunprotected (ldo.c:142)
==390724==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Reply via email to