[tlbuild] dvi test?
Bruno Voisin
bvoisin at icloud.com
Sun Jan 30 20:23:32 CET 2022
> Le 30 janv. 2022 à 19:27, luigi scarso <luigi.scarso at gmail.com> a écrit :
>
> what about the two tests with
> xdvi -debug -1 -noghostscript test-dick.dvi
> ?
Here's this output (attached). test-dick.dvi is Dick's test file with % after "el", leading xdvi to crash upon reload on recent macOS, and test-dick-alt.dvi is the same file with % after "e", yielding no crash.
This does tell us that the crash seems triggered by process_preamble in lines 781-785 of dvi-init.c:
if (get_byte(fp) != PRE) {
*errflag = NOT_A_DVI_FILE;
TRACE_FILES((stderr, "process_preamble: fp = %p, errflag = %d, returning False", (void *)fp, *errflag));
return False;
}
Specifically, after the reload we have:
- test-dick on Monterey (crash)
../../../texk/xdvik/dvi-init.c:1816: FILES: load_dvi_file: going to read 0x2125a1150
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x2125a1150, errflag = 0
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x2125a1150, errflag = 0, returning True
../../../texk/xdvik/dvi-init.c:821: FILES: find_postamble on fp: 0x2125a1150
../../../texk/xdvik/dvi-init.c:855: FILES: find_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:946: FILES: read_postamble: reading 0x2125a1150 (1)
xdvi: Define font "cmcsc10" scale=655360 design=655360 number=28
xdvi: Define font "cmr10" scale=655360 design=655360 number=19
../../../texk/xdvik/dvi-init.c:1064: FILES: read_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:1360: FILES: internal_open_dvi for |/Users/brunovoisin/Desktop/Temp/TeX/test-dick.dvi|
kdebug:fclose(0x2125a1150) => 0
../../../texk/xdvik/dvi-init.c:1234: FILES: file_exists_p for |/Users/brunovoisin/Desktop/Temp/TeX/test-dick.dvi|
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/TeX/test-dick.dvi, r) => 0x2125a1150
../../../texk/xdvik/dvi-init.c:1241: FILES: m_dvi_fp for |/Users/brunovoisin/Desktop/Temp/TeX/test-dick.dvi| = 0x2125a1150
../../../texk/xdvik/dvi-init.c:1286: FILES: internal_init_dvi, globals.dvi_file.bak_fp = 0x2125a1280
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x2125a1280, errflag = 14
../../../texk/xdvik/dvi-init.c:783: FILES: process_preamble: fp = 0x2125a1280, errflag = 3, returning False
- test-dick-alt on Monterey (no crash)
../../../texk/xdvik/dvi-init.c:1816: FILES: load_dvi_file: going to read 0x2125a1150
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x2125a1150, errflag = 0
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x2125a1150, errflag = 0, returning True
../../../texk/xdvik/dvi-init.c:821: FILES: find_postamble on fp: 0x2125a1150
../../../texk/xdvik/dvi-init.c:855: FILES: find_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:946: FILES: read_postamble: reading 0x2125a1150 (1)
xdvi: Define font "cmcsc10" scale=655360 design=655360 number=28
xdvi: Define font "cmr10" scale=655360 design=655360 number=19
../../../texk/xdvik/dvi-init.c:1064: FILES: read_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:1360: FILES: internal_open_dvi for |/Users/brunovoisin/Desktop/Temp/TeX/test-dick-alt.dvi|
kdebug:fclose(0x2125a1150) => 0
../../../texk/xdvik/dvi-init.c:1234: FILES: file_exists_p for |/Users/brunovoisin/Desktop/Temp/TeX/test-dick-alt.dvi|
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/TeX/test-dick-alt.dvi, r) => 0x2125a1150
../../../texk/xdvik/dvi-init.c:1241: FILES: m_dvi_fp for |/Users/brunovoisin/Desktop/Temp/TeX/test-dick-alt.dvi| = 0x2125a1150
../../../texk/xdvik/dvi-init.c:1286: FILES: internal_init_dvi, globals.dvi_file.bak_fp = 0x2125a1280
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x2125a1280, errflag = 14
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x2125a1280, errflag = 14, returning True
- test-dick on High Sierra (no crash)
../../../texk/xdvik/dvi-init.c:1816: FILES: load_dvi_file: going to read 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x7fff88b78030, errflag = 0
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x7fff88b78030, errflag = 0, returning True
../../../texk/xdvik/dvi-init.c:821: FILES: find_postamble on fp: 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:855: FILES: find_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:946: FILES: read_postamble: reading 0x7fff88b78030 (1)
xdvi: Define font "cmcsc10" scale=655360 design=655360 number=28
xdvi: Define font "cmr10" scale=655360 design=655360 number=19
../../../texk/xdvik/dvi-init.c:1064: FILES: read_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:1360: FILES: internal_open_dvi for |/Users/brunovoisin/Desktop/Temp/More test/test-dick.dvi|
kdebug:fclose(0x7fff88b78030) => 0
../../../texk/xdvik/dvi-init.c:1234: FILES: file_exists_p for |/Users/brunovoisin/Desktop/Temp/More test/test-dick.dvi|
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/More test/test-dick.dvi, r) => 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:1241: FILES: m_dvi_fp for |/Users/brunovoisin/Desktop/Temp/More test/test-dick.dvi| = 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:1286: FILES: internal_init_dvi, globals.dvi_file.bak_fp = 0x7fff88b78160
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x7fff88b78160, errflag = 14
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x7fff88b78160, errflag = 14, returning True
- test-dick-alt on High Sierra (no crash)
../../../texk/xdvik/dvi-init.c:1816: FILES: load_dvi_file: going to read 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x7fff88b78030, errflag = 0
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x7fff88b78030, errflag = 0, returning True
../../../texk/xdvik/dvi-init.c:821: FILES: find_postamble on fp: 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:855: FILES: find_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:946: FILES: read_postamble: reading 0x7fff88b78030 (1)
xdvi: Define font "cmcsc10" scale=655360 design=655360 number=28
xdvi: Define font "cmr10" scale=655360 design=655360 number=19
../../../texk/xdvik/dvi-init.c:1064: FILES: read_postamble: returning TRUE
../../../texk/xdvik/dvi-init.c:1360: FILES: internal_open_dvi for |/Users/brunovoisin/Desktop/Temp/More test/test-dick-alt.dvi|
kdebug:fclose(0x7fff88b78030) => 0
../../../texk/xdvik/dvi-init.c:1234: FILES: file_exists_p for |/Users/brunovoisin/Desktop/Temp/More test/test-dick-alt.dvi|
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/More test/test-dick-alt.dvi, r) => 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:1241: FILES: m_dvi_fp for |/Users/brunovoisin/Desktop/Temp/More test/test-dick-alt.dvi| = 0x7fff88b78030
../../../texk/xdvik/dvi-init.c:1286: FILES: internal_init_dvi, globals.dvi_file.bak_fp = 0x7fff88b78160
../../../texk/xdvik/dvi-init.c:779: FILES: process_preamble: fp = 0x7fff88b78160, errflag = 14
../../../texk/xdvik/dvi-init.c:802: FILES: process_preamble: fp = 0x7fff88b78160, errflag = 14, returning True
What makes it so that, for the same file test-dick.dvi, get_byte(fp) != PRE on Monterey but not High Sierra, I have no idea.
If you look at the attached console output closely, you'll notice that I used MacTeX 2020 on High Sierra and 2021 on Monterey. I realized this after performing the tests, and I didn't feel like going through the whole procedure again (reinstall MacTeX 2020 on my main machine, test, transfer files between computers, etc.), which is somewhat time-consuming. In my earlier tests this didn't matter, the same output was obtained on Monterey with MacTeX 2020 and 2021.
Hope this helps,
Bruno
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macOS-10.13-High-Sierra-test-dick-alt.txt
URL: <https://tug.org/pipermail/tlbuild/attachments/20220130/430459cf/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macOS-10.13-High-Sierra-test-dick.txt
URL: <https://tug.org/pipermail/tlbuild/attachments/20220130/430459cf/attachment-0005.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macOS-12-Monterey-test-dick-alt.txt
URL: <https://tug.org/pipermail/tlbuild/attachments/20220130/430459cf/attachment-0006.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macOS-12-Monterey-test-dick.txt
URL: <https://tug.org/pipermail/tlbuild/attachments/20220130/430459cf/attachment-0007.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-dick-alt.dvi
Type: application/octet-stream
Size: 2176 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20220130/430459cf/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-dick.dvi
Type: application/octet-stream
Size: 2180 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20220130/430459cf/attachment-0003.obj>
-------------- next part --------------
More information about the tlbuild
mailing list.