xdvipdfmx segfault

Hartmut Henkel hartmut_henkel at gmx.de
Mon Mar 4 22:06:00 CET 2024


Hello Jonathan,

On Mon, 4 Mar 2024, Jonathan Fine wrote:
> Well, maybe there's a gap in the test coverage. Your problem sounds
> like there's a missing smoke test. Adding that test would help narrow
> it down to a specific change and platform(s).

thanks a lot. The error appeared with the xdvipdfmx from Master/.
Meanwhile i did a full ./Build --debug in Build/ and now gdb tells a bit
more:

(CID:LMMono8-Regular)
pdf_font>> Type0 font "/usr/share/texmf/fonts/opentype/public/lm/lmmono8-regular.otf" cmap_id=<Identity-H,0> font_id=</usr/share/texmf/fonts/opentype/public/lm/lmmono8-regular.otf/0/H/65536/0/0,15>.
>][2
Program received signal SIGSEGV, Segmentation fault.
__strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse4_2.S:173
173	../sysdeps/x86_64/multiarch/strcmp-sse4_2.S: Datei oder Verzeichnis nicht gefunden.
(gdb) backtrace
#0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse4_2.S:173
#1  0x00005555555d19be in pdf_ximage_load_image (ident=0x0, filename=0x555557682800 "/home/hahe/texmf/tex/generic/logos/vhs/vhslogo1-cmyk.pdf", options=...)
    at ../../../texk/dvipdfm-x/pdfximage.c:418
#2  0x00005555555e7e4e in spc_handler_pdfm_image (spe=0x7fffffffd990, args=0x7fffffffd970) at ../../../texk/dvipdfm-x/spc_pdfm.c:1281
#3  0x00005555555f2875 in spc_exec_special (
    buffer=0x5555574de9aa "pdf:image matrix 1.0 0.0 0.0 1.0 0.0 0.0 page 0 pagebox cropbox (/home/hahe/texmf/tex/generic/logos/vhs/vhslogo1-cmyk.pdf)\216\216\357\npdf:etrans\216\216\216\216\216\216\216\215\215\215\222", size=122, x_user=1.5201782378580325e-05, y_user=17.231676379592155, mag=1, is_drawable=0x7fffffffda3c,
    rect=0x7fffffffda10) at ../../../texk/dvipdfm-x/specials.c:811
#4  0x0000555555593446 in dvi_do_special (buffer=0x5555574de9aa, size=122) at ../../../texk/dvipdfm-x/dvi.c:984
#5  0x0000555555595d47 in do_xxx (size=122) at ../../../texk/dvipdfm-x/dvi.c:1850
#6  0x0000555555596b2a in dvi_do_page (page_paper_height=841.88975342465756, hmargin=72, vmargin=72) at ../../../texk/dvipdfm-x/dvi.c:2274
#7  0x000055555559a5a2 in do_dvi_pages () at ../../../texk/dvipdfm-x/dvipdfmx.c:945
#8  0x000055555559b16d in main (argc=6, argv=0x7fffffffdf78) at ../../../texk/dvipdfm-x/dvipdfmx.c:1255
(gdb)

...and this seems to happen when a strcmp() function is called. I added
a #include string.h to file pdfximage.c, but the segfault persists.

Best Regards
Hartmut


More information about the tex-live mailing list.