View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013860VTK(No Category)public2013-02-04 06:262014-10-02 11:03
ReporterMassimiliano Martinelli 
Assigned ToChuck Atkins 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version5.10.1 
Target VersionFixed in Version6.2.0 
Summary0013860: the vtkXMLUnstructuredGridWriter crashes on MacOSX 10.6.8
DescriptionWhen I run the code in attachment on a MacOSX 10.6.8 the program crashes with the following message:

vtk_writer.exe(6943) malloc: *** error for object 0x7fff70e33500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap

The function that is causing the problem seems to be vtkXMLUnstructuredGridWriter::Write().

The vtk library is compiled from the MacPorts tree.

The same code works fine on linux.
Tagshackaton
ProjectKitware
Typecrash
Attached Filescpp file icon vtk_writer.cpp [^] (616 bytes) 2013-02-04 06:26

 Relationships
related to 0013295closedDave DeMarle vtkXMLUnstructuredGridReader cannot read vtu-files in ascii mode when a double data array contains INFINITE or MAX values 
related to 0013294closedCory Quammen string arrays may cause vtkXMLUnstructuredGridWriter to produce corrupt vtu-files, which are unreadable or cause crash 
related to 0013382closedT.J. Corona vtkXMLUnstructuredGridWriter: corrupted output for polyhedral cells in appended mode 

  Notes
(0030298)
Sean McBride (developer)
2013-02-04 10:46

Can you run in gdb and put a breakpoint on malloc_error_break and tell us what the backtrace is?

I would be somewhat surprised if this was a Mac-only issue... Perhaps it works on linux because free() does not do the same checks as on Mac... Could you perhaps try with valgrind on linux?
(0033457)
Chuck Atkins (developer)
2014-10-02 11:03

Tested on current master on OSX 10.9.2 + XCode 6.0.1 and on Fedora 20 + GCC 4.8.3. Also ran under valgrind and Intel Inspector. Bug is no longer reproducible

 Issue History
Date Modified Username Field Change
2013-02-04 06:26 Massimiliano Martinelli New Issue
2013-02-04 06:26 Massimiliano Martinelli File Added: vtk_writer.cpp
2013-02-04 10:46 Sean McBride Note Added: 0030298
2013-06-25 14:22 Dave DeMarle Relationship added related to 0013295
2013-06-25 14:22 Dave DeMarle Relationship added parent of 0013294
2013-06-25 14:22 Dave DeMarle Relationship deleted parent of 0013294
2013-06-25 14:22 Dave DeMarle Relationship added related to 0013294
2013-06-25 14:23 Dave DeMarle Relationship added related to 0013382
2014-10-01 17:15 Sean McBride Assigned To => Sean McBride
2014-10-01 17:15 Sean McBride Tag Attached: hackaton
2014-10-02 09:41 Chuck Atkins Assigned To Sean McBride => Chuck Atkins
2014-10-02 09:45 Chuck Atkins Status backlog => active development
2014-10-02 11:03 Chuck Atkins Note Added: 0033457
2014-10-02 11:03 Chuck Atkins Status active development => closed
2014-10-02 11:03 Chuck Atkins Resolution open => unable to reproduce
2014-10-02 11:03 Chuck Atkins Fixed in Version => 6.2.0


Copyright © 2000 - 2018 MantisBT Team