MantisBT - ParaView
View Issue Details
0013599ParaView(No Category)public2012-11-02 05:402013-01-30 10:41
Sven Buijssen 
 
normalminorhave not tried
closedfixed 
 
3.98.1 
TBD
crash
0013599: [git/master] VisItBridge GMVReader: segfault while reading GMV file with broken fromfile reference
Load the attached file "foo.gmv" by means of the VisItBridge GMVReader in a nightly build.
=> segfault due to read attempt from NULL pointer with fscanf().

Reason behind is that the program logic in gmvread.c is in no way prepared to keep going in case of a broken fromfile reference. Originally, gmvread.c did a 'exit(0)' in that case, but that got commented out when adding to the VisIt source tree.

I have a patch to resolve this, but it requires other patches to gmvread.c to be applied first.
No tags attached.
? foo.gmv (117) 2012-11-02 05:50
https://www.vtk.org/Bug/file/9326/foo.gmv
Issue History
2012-11-02 05:40Sven BuijssenNew Issue
2012-11-02 05:50Sven BuijssenFile Added: foo.gmv
2012-11-30 13:56Sven BuijssenNote Added: 0029819
2012-11-30 13:56Sven BuijssenStatusbacklog => closed
2012-11-30 13:56Sven BuijssenResolutionopen => fixed
2012-11-30 13:56Sven BuijssenFixed in Version => git-master
2013-01-30 10:41Utkarsh AyachitFixed in Versiongit-master => 3.98.1

Notes
(0029819)
Sven Buijssen   
2012-11-30 13:56   
commit 0909dcb99dcdc008a937d22ec4fcb2d75e9b23bb
Author: Sven Buijssen <sven.buijssen@tu-dortmund.de>
Date: Fri Nov 2 12:17:53 2012 +0100

    BUG 0013599. Fixed segfault while reading file with broken fromfile reference
    
        gmvread.c traditionally used to 'exit(0)' if a file referred to in a GMV
        file did not exist. Simply commenting out the 'exit(0)' statement (the
        strategy pursued in VisIt currently) led subsequently to attempts of
        reading from NULL stream with fscanf() and fread().