Bug 38609

Summary: xdvi core dumps when reading dvi-file while latex is compiling
Product: [Retired] Red Hat Linux Reporter: Finn Aarup Nielsen <fnielsen>
Component: tetexAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: meidlidl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-30 22:32:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Finn Aarup Nielsen 2001-05-01 17:40:05 UTC
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
file corrupted").

Reproducible: Always
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"
(normal behavior)
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

Comment 1 Tim Waugh 2001-09-26 13:06:17 UTC
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?


Comment 2 Need Real Name 2001-09-27 23:08:37 UTC
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".

Comment 3 Tim Waugh 2001-09-30 21:11:10 UTC
It works fine for me here.  Perhaps it depends on the original DVI file 
'some.dvi'. (I used the printconf test page DVI file.)


Comment 4 Need Real Name 2001-09-30 22:32:34 UTC
I have this problem with all DVI files.

$ rpm -qf `which xdvi.bin`
tetex-xdvi-1.0.7-15
$ 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"


Comment 5 Tim Waugh 2001-10-01 09:38:35 UTC
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.