[tlbuild] Repeated Mac arm64 crashes of xdvi-xaw with "set_no_char: attempt to set character of unknown font, offset 42"

luigi scarso luigi.scarso at gmail.com
Wed Jan 26 10:40:54 CET 2022


On Wed, Jan 26, 2022 at 12:28 AM John Hawkinson <jhawk at alum.mit.edu> wrote:

>
> And here is the UBSAN:
>
> jhawk at loud-room xdvik % TEXMFROOT=/usr/local/texlive/2021
> TEXMFCNF=$TEXMFROOT/texmf-dist/web2c  ./xdvi-ubsan   t2a
> ../../../texk/xdvik/dvi-draw.c:458:9: runtime error: left shift of
> negative value -3
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> ../../../texk/xdvik/dvi-draw.c:458:9 in
> /Users/jhawk/src/xdvik-22.87.05/libs/freetype2/freetype-src/src/base/ftgloadr.c:149:40:
> runtime error: applying zero offset to null pointer
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> /Users/jhawk/src/xdvik-22.87.05/libs/freetype2/freetype-src/src/base/ftgloadr.c:149:40
> in
> /Users/jhawk/src/xdvik-22.87.05/libs/freetype2/freetype-src/src/base/ftgloadr.c:150:40:
> runtime error: applying zero offset to null pointer
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> /Users/jhawk/src/xdvik-22.87.05/libs/freetype2/freetype-src/src/base/ftgloadr.c:150:40
> in
> /Users/jhawk/src/xdvik-22.87.05/libs/freetype2/freetype-src/src/base/ftgloadr.c:192:42:
> runtime error: applying zero offset to null pointer
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> /Users/jhawk/src/xdvik-22.87.05/libs/freetype2/freetype-src/src/base/ftgloadr.c:192:42
> in
> ../../../texk/xdvik/ft.c:184:35: runtime error: left shift of 255 by 24
> places cannot be represented in type 'int'
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> ../../../texk/xdvik/ft.c:184:35 in
> xdvi-ubsan: set_no_char: attempt to set character of unknown font, offset
> 42
> xdvi-ubsan 22.87.05 (Xaw toolkit): ../../../texk/xdvik/dvi-draw.c:488:
> Shouldn't happen: I'll abort now, to help you debugging this.
>
>
>
this  looks like  the NULL pointer  as in [tlbuild] dvi test on mac


I also built Valgrind on my older x86_64 Mac (which does *not* see the xdvi
> crash) and it reports some concerns, but I think they are perhaps not
> meaningful (I'm not experienced with valgrind). Output below:
>
> :
:

> ==76741==
> --76741:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
> xdvi-bin: Warning: Could not find graphics file "l3backend-dvips.pro"
>

weird, here I have
kdebug:fopen(/opt/luatex/texlive/2021/texmf-dist/dvips/l3backend/
l3backend-dvips.pro, r) => 0x3a13b00


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20220126/b6235726/attachment.html>


More information about the tlbuild mailing list.