View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015704ParaView(No Category)public2015-09-07 03:462015-12-15 20:23
Reportermag 
Assigned ToDan Lipsa 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version5.0 
Summary0015704: segmentation fault when loading cgns file
DescriptionI used the Release Candidate 2 of 4.4 Linux-64bit on Ubuntu 14.10.
Paraview starts and behaves normally.
Then, when I try to load a cgns file paraview crashes saying "segementation fault".
I had this problem also in former version of the new CGNS plugin.
TagsNo tags attached.
ProjectTBD
Topic Name
Typecrash
Attached Filesdiff file icon vtkCGNSReader.cxx.diff [^] (1,850 bytes) 2015-10-13 04:48 [Show Content]

 Relationships

  Notes
(0035216)
mag (reporter)
2015-09-15 06:45

I found a workaround. The problems seems to be linked to the "CGNSLibraryVersion" node. When I change it from "3.21" to "2.54" it works.
(0035277)
Jim Eliot (reporter)
2015-10-13 04:49

I also ran into this issue with the ParaView CGNS reader and I did some investigating.

The problem occurred for me when moving from ParaView 4.3.1 to ParaView 4.4.0 due to the disabling of the VisIt CGNS reader.

Files fail to open in the CGNS reader which have a version number that is higher than the CGNS library version (3.1). The cause is some incorrect version checks in the CGNS reader.

For non-hdf5-based files, the file does not open. For hdf5-based files, the file does not open and then a segmentation fault occurs in the CanReadFile of vtkMPASReader. It looks like this is due to a strcpy on a null pointer.

I fixed the incorrect behavior in the CGNS reader which means that the file opens and therefore vtkMPASReader::CanReadFile is not reached and the segfault doesn't occur.

I have attached a file called vtkCGNSReader.cxx.diff which contains a git diff for the changes that I made to vtkCGNSReader.cxx.
(0035377)
Jim Eliot (reporter)
2015-10-22 08:59

An example file that will trigger the failure can be found on the main CGNS webpage. The url of the file is:

http://cgns.github.io/CGNSFiles/Chris/bump_hdf5.cgns.gz [^]
(0035378)
Dan Lipsa (developer)
2015-10-22 11:56

Thanks Jim for reporting the error and contributing the fix.
Here are the merge requests:

https://gitlab.kitware.com/vtk/vtk/merge_requests/809 [^]
https://gitlab.kitware.com/paraview/paraview/merge_requests/445 [^]
(0035567)
Alan Scott (manager)
2015-12-15 20:23

Closing untested. If there still is an issue, please reopen the bug. Alan

 Issue History
Date Modified Username Field Change
2015-09-07 03:46 mag New Issue
2015-09-07 03:46 mag Assigned To => Alan Scott
2015-09-08 15:46 Alan Scott Assigned To Alan Scott =>
2015-09-15 06:45 mag Note Added: 0035216
2015-10-13 04:48 Jim Eliot File Added: vtkCGNSReader.cxx.diff
2015-10-13 04:49 Jim Eliot Note Added: 0035277
2015-10-13 13:22 Alan Scott Project Sandia => TBD
2015-10-21 15:38 Dan Lipsa Assigned To => Dan Lipsa
2015-10-21 15:38 Dan Lipsa Status backlog => active development
2015-10-22 08:59 Jim Eliot Note Added: 0035377
2015-10-22 11:56 Dan Lipsa Note Added: 0035378
2015-11-04 13:53 Dan Lipsa Status active development => gatekeeper review
2015-12-11 14:58 Utkarsh Ayachit Status gatekeeper review => customer review
2015-12-11 14:58 Utkarsh Ayachit Resolution open => fixed
2015-12-11 14:58 Utkarsh Ayachit Fixed in Version => 5.0
2015-12-15 20:23 Alan Scott Note Added: 0035567
2015-12-15 20:23 Alan Scott Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team