From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686)
xdvi makes a segmentation fault after it has read a DVI-file unsuccesfully
and the xdvi window has been focused two times. An unsuccesful read appear
when latex is compiling a tex-file to a DVI-file (xdvi reports it as "DVI
Steps to Reproduce:
1. latex largefile.tex
2. xdvi largefile.dvi
3. latex largefile.tex
4. (while latex is running) Mouse focus in xdvi -> "DVI file corrupted"
5. Mouse unfocus xdvi
6. Mouse focus in xdvi -> "segmentation fault"
Actual Results: xdvi core dumps
Expected Results: xdvi should stay open (not crash). Reporting "DVI file
corrupted" is expected.
Not a problem with Redhat 7.0 and 6.2
I expect that this is sensitive to the exact stage of processing the file.
Can you supply a partially-generated DVI file that exhibits this behaviour?
The .dvi file is empty while latex is running.
$ xdvi some.dvi &
$ > some.dvi
Two clicks on "Reread" and xdvi crashes with a "segmentation fault".
It works fine for me here. Perhaps it depends on the original DVI file
'some.dvi'. (I used the printconf test page DVI file.)
I have this problem with all DVI files.
$ rpm -qf `which xdvi.bin`
$ cp /usr/share/printconf/tests/testpage.dvi .
$ xdvi.bin testpage.dvi &
# Everything works fine.
$ > testpage.dvi
# First click on "Reread" -> "Not a DVI file."
# Second click on "Reread" -> "segmentation fault"
Okay, I can reproduce this with tetex-1.0.7-15. This seems to be already
fixed in tetex-1.0.7-32, but I'm not sure which change fixed it.