View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012043ParaViewBugpublic2011-04-04 11:472011-05-02 20:13
ReporterSven Buijssen 
Assigned ToNathan Fabian 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionDevelopment 
Target VersionFixed in Version 
Summary0012043: vtkExodusIIWriter segfaults due to null pointer dereference for attached dataset
DescriptionLoad attached file "sample.vtu"
Save Data as "Exodus II File"

=> Crash in VTK/Parallel/vtkExodusIIWriter.cxx:1036

    for (int j = 0; j < fd->GetNumberOfArrays (); j ++)
      {
      const char *name = fd->GetArray (j)->GetName ();

due to fd->GetArray(j) returning a null pointer which is subsequently attempted to dereference.

Tested with Linux 64bit build using git master (VTK commit dec7dbc6976a1dc9297a5ac59bdc66f9ae461a35) and official 64bit Linux binary release of ParaView 3.10.0
TagsNo tags attached.
Project
Topic Name
Type
Attached Files? file icon sample.vtu [^] (2,050 bytes) 2011-04-04 11:47
patch file icon 0001-BUG-Fix-for-12043.-Detect-null-arrays-and-reports-er.patch [^] (2,063 bytes) 2011-04-13 04:35 [Show Content]

 Relationships

  Notes
(0026172)
Sven Buijssen (reporter)
2011-04-13 04:35

Suggested patch attached.
(0026259)
Nathan Fabian (developer)
2011-04-26 13:35

The patch looks correct from a defensive programming standpoint. I wonder why those arrays are coming in NULL. It seems to imply a problem further up the chain. I'm unable to apply the patch at the moment due to firewall issues. If someone has the capability to push that would be great, otherwise I'll push when I am able.
(0026262)
Nathan Fabian (developer)
2011-04-26 17:02

I was able to upload the patch.
(0026400)
Alan Scott (manager)
2011-05-02 20:13

Crash has been fixed. There is an output message that states the following:

Warning: In ..\..\..\..\src\ParaView3\VTK\Parallel\vtkExodusIIWriter.cxx, line 1043
vtkExodusIIWriter (09784F38): Array in input field data has Null name, cannot output it


Warning: In ..\..\..\..\src\ParaView3\VTK\Parallel\vtkExodusIIWriter.cxx, line 1043
vtkExodusIIWriter (09784F38): Array in input field data has Null name, cannot output it


Since the reporter provided this patch, the writer seems to work, and this error output could be a different bug, I am closing this one.

Tested Windows, trunk, local server.

 Issue History
Date Modified Username Field Change
2011-04-04 11:47 Sven Buijssen New Issue
2011-04-04 11:47 Sven Buijssen File Added: sample.vtu
2011-04-13 04:35 Sven Buijssen File Added: 0001-BUG-Fix-for-12043.-Detect-null-arrays-and-reports-er.patch
2011-04-13 04:35 Sven Buijssen Note Added: 0026172
2011-04-14 10:26 Sebastien Jourdain Assigned To => Nathan Fabian
2011-04-14 10:26 Sebastien Jourdain Status backlog => tabled
2011-04-26 13:35 Nathan Fabian Note Added: 0026259
2011-04-26 17:02 Nathan Fabian Note Added: 0026262
2011-04-26 17:02 Nathan Fabian Status tabled => @80@
2011-04-26 17:02 Nathan Fabian Resolution open => fixed
2011-05-02 20:13 Alan Scott Note Added: 0026400
2011-05-02 20:13 Alan Scott Status @80@ => closed


Copyright © 2000 - 2018 MantisBT Team