Re: lualatex segfaults with current TeXLive git

2026-07-19 Thread Werner LEMBERG


>> It still crashes, see below for gdb and valgrind output.
> 
> https://tug.org/pipermail/luatex/2025-April/008081.html
> isn't it the same ?

D'oh, how embarrassing!  I completely forgot.  Yes, it is, sorry for
the noise.


Werner


Re: lualatex segfaults with current TeXLive git

2026-07-19 Thread luigi scarso
On Sun, 19 Jul 2026 at 17:14, Werner LEMBERG  wrote:

>
> >> 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.
>
>

https://tug.org/pipermail/luatex/2025-April/008081.html
isn't it the same ?

--
luigi


Re: lualatex segfaults with current TeXLive git

2026-07-19 Thread Hans Hagen

On 7/19/2026 5:14 PM, Werner LEMBERG wrote:



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.


what if you wipe the cache ... maybe the bytecode is not compatible or bad

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


Re: lualatex segfaults with current TeXLive git

2026-07-19 Thread Werner LEMBERG


>> 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.
0x77a8d587 in freopen64 () from /lib64/libc.so.6
Missing separate debuginfos, use: zypper install 
glibc-debuginfo-2.40-16.6.1.x86_64 
libstdc++6-debuginfo-15.3.0+git11272-16.1.1.x86_64 
libgcc_s1-debuginfo-15.3.0+git11272-16.1.1.x86_64
(gdb) bt full
#0  0x77a8d587 in freopen64 () from /lib64/libc.so.6
No symbol table info available.
#1  0x77fbbda4 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=, stream=) at open-funs.c:291
retval = 
#2  0x77fbc02c 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 = 
stream = 
mode = 
flags = 
arg_list = {{gp_offset = 16, fp_offset = 0, overflow_arg_area = 
0x7fffa640, reg_save_area = 0x7fffa5d0}}
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 = 
absolute_path = 
file_should = 
return_value = 
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 = 0x7fffa640, 
  ignore_extensions = 0xe86140558f255400 , relative_trash_can = 0x3591f50 "\210$\255", 
, 
  relative_trash_system_root = 0x77bedff0 <_IO_file_jumps> "", 
unremovable_dirs = 0x0, 
  uncovered_dirs = 0x77a920b9 <_IO_doallocbuf+75> 
"\203\370\377u*H\213{8\213\003L\215\243\204", temporary_dirs = 0x3591f50 
"\210$\255", , 
  user_temporary_dirs = 0x3591f50 "\210$\255", , removable_media_mount_points = 0x77bedff0 <_IO_file_jumps> "", 
  exceptions = 0x77a8fbd3 <__GI__IO_file_underflow+341> 
"H\205\300~@H\213\223\220", ignore_re = 0x3591f50 "\210$\255", , 
  absolute_trash_can = 0x77bedff0 <_IO_file_jumps> "", 
absolute_trash_system_root = 0x0, home = 0x7fffd590 
"\004\333\377\377\377\177", 
  preserve_files_larger_than_limit = 140737354125312}
#3  0x77fbc459 in freopen64 (path=, mode=, stream=) at open-funs.c:135
retval = 
#4  0x007274c4 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  0x0047db00 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  0x0072e050 in luaD_precall (L=0x174da48, func=0x3bf7c30, 
nresults=1) at ../../../source/libs/lua53/lua53-src/src/ldo.c:434
n = 0
f = 0x47da3c 
ci = 0x369a390
#7  0x0074c5e6 in 

Re: lualatex segfaults with current TeXLive git

2026-07-19 Thread luigi scarso
On Fri, 17 Jul 2026 at 20:36, luigi scarso  wrote:

>
>
> On Fri, 17 Jul 2026 at 19:08, Werner LEMBERG  wrote:
>
>> >> > luahbtex --credits ?
>> >>
>> >> See below.
>> >
>> > On my
>> > Linux 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu
>> May  7
>> > 22:17:46 UTC  x86_64 x86_64 x86_64 GNU/Linux
>> > Ubuntu GLIBC 2.39-0ubuntu8.7
>> > and
>> > Linux 7.0.0-28-generic #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul  1
>> > 15:50:57 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
>> > Ubuntu GLIBC 2.35-0ubuntu3.13
>>
>> I have expected that – I guess I have to compile luahbtex by myself to
>> find out whether the problem is with the binary or with something
>> else.  [However, I don't know when I will be able to do it.]  What
>> instructions shall I follow to do that?
>>
>>
>>
> https://gitlab.lisn.upsaclay.fr/texlive/luatex
>
> I usually make a do.sh script like this one
>
> 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 ?

--
luigi


Re: lualatex segfaults with current TeXLive git

2026-07-17 Thread luigi scarso
On Fri, 17 Jul 2026 at 19:08, Werner LEMBERG  wrote:

> >> > luahbtex --credits ?
> >>
> >> See below.
> >
> > On my
> > Linux 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May
> 7
> > 22:17:46 UTC  x86_64 x86_64 x86_64 GNU/Linux
> > Ubuntu GLIBC 2.39-0ubuntu8.7
> > and
> > Linux 7.0.0-28-generic #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul  1
> > 15:50:57 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
> > Ubuntu GLIBC 2.35-0ubuntu3.13
>
> I have expected that – I guess I have to compile luahbtex by myself to
> find out whether the problem is with the binary or with something
> else.  [However, I don't know when I will be able to do it.]  What
> instructions shall I follow to do that?
>
>
>
https://gitlab.lisn.upsaclay.fr/texlive/luatex

I usually make a do.sh script like this one

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

--
luigi


Re: lualatex segfaults with current TeXLive git

2026-07-17 Thread Werner LEMBERG
>> > luahbtex --credits ?
>>
>> See below.
>
> On my
> Linux 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May  7
> 22:17:46 UTC  x86_64 x86_64 x86_64 GNU/Linux
> Ubuntu GLIBC 2.39-0ubuntu8.7
> and
> Linux 7.0.0-28-generic #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul  1
> 15:50:57 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
> Ubuntu GLIBC 2.35-0ubuntu3.13

I have expected that – I guess I have to compile luahbtex by myself to
find out whether the problem is with the binary or with something
else.  [However, I don't know when I will be able to do it.]  What
instructions shall I follow to do that?


Werner


Re: lualatex segfaults with current TeXLive git

2026-07-17 Thread luigi scarso
On Fri, 17 Jul 2026 at 13:50, Werner LEMBERG  wrote:

> >> Updating my system to openSUSE Leap 16.0 makes `lualatex` crash.
> >
> > luahbtex --credits ?
>
> See below.
>
>
>
On my
Linux 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May  7
22:17:46 UTC  x86_64 x86_64 x86_64 GNU/Linux
Ubuntu GLIBC 2.39-0ubuntu8.7
and
Linux 7.0.0-28-generic #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul  1
15:50:57 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu GLIBC 2.35-0ubuntu3.13

it's ok.

--
luigi


Re: lualatex segfaults with current TeXLive git

2026-07-17 Thread Werner LEMBERG
>> Updating my system to openSUSE Leap 16.0 makes `lualatex` crash.
> 
> luahbtex --credits ?

See below.


Werner


==


This is LuaHBTeX, Version 1.24.0 (TeX Live 2026)

The luatex project is a ConTeXt community project by
Hans Hagen, Hartmut Henkel, Taco Hoekwater and Luigi Scarso.
The current maintainers are Hans Hagen and Luigi Scarso.

LuaHBTeX merges and builds upon (parts of) the code from these projects:

tex   : Donald Knuth
etex  : Peter Breitenlohner, Phil Taylor and friends
omega : John Plaice and Yannis Haralambous
aleph : Giuseppe Bilotta
pdftex: Han The Thanh and friends
kpathsea  : Karl Berry, Olaf Weber and others
lua   : Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de 
Figueiredo
metapost  : John Hobby, Taco Hoekwater, Luigi Scarso, Hans Hagen and friends
pplib : Paweł Jackowski
fontforge : George Williams (partial)
luajit: Mike Pall (used in LuajitTeX)

Compiled with libharfbuzz 12.3.2; using 12.3.2
Compiled with libpng 1.6.55; using 1.6.55
Compiled with lua version 5.3.6
Compiled with mplib version 3.00
Compiled with zlib 1.3.2; using 1.3.2

Development id: 7724


Re: lualatex segfaults with current TeXLive git

2026-07-16 Thread luigi scarso
On Fri, 17 Jul 2026 at 06:51, Werner LEMBERG  wrote:

>
> [TeXLive fcced132872]
>
>
> Folks,
>
>
> Updating my system to openSUSE Leap 16.0 makes `lualatex` crash.  This
> simple document
>
> ```
> \documentclass{article}
>
> \begin{document}
> Hello
> \end{document}
> ```
>
> causes a segmentation fault of the `luahbtex` TeXLive binary in
> function `freopen64`; below you can find a `valgrind` report.
>
> The formats have been regenerated with `fmtutil-user --all` (which
> surprising succeeds); both `pdflatex` and `xelatex` work ok.
>
> Please advise.
>

luahbtex --credits ?

--
luigi