MantisBT - VTK
View Issue Details
0006204VTK(No Category)public2007-12-27 08:292012-12-12 11:56
Sören Gebbert 
David Gobbi 
lowminoralways
closedfixed 
Intel 32BitSuSE Linux9.2
 
 
0006204: vtkWrapPython produced a segfault while wrapping
vtkWrapPython produced a segfault while wrapping class vtkTriCubicHexahedron
(this class is not yet an official component of vtk, it's in the wish list).

Patch:

Index: vtkWrapPython.c
===================================================================
RCS file: /cvsroot/VTK/VTK/Wrapping/vtkWrapPython.c,v
retrieving revision 1.84
diff -u -r1.84 vtkWrapPython.c
--- vtkWrapPython.c 11 Apr 2007 18:11:10 -0000 1.84
+++ vtkWrapPython.c 27 Dec 2007 13:15:45 -0000
@@ -381,7 +381,8 @@

 char *get_format_string()
 {
- static char result[1024];
+ static char result[10240];//Soeren Gebbert 27.12.2007 this field must be enlarged to process the vtkTriCubicHexahedron class
+
   int currPos = 0;
   int argtype;
   int i, j;
@@ -501,7 +502,7 @@

 void get_python_signature()
 {
- static char result[1024];
+ static char result[10240]; //Soeren Gebbert 27.12.2007 this field must be enlarged to process the vtkTriCubicHexahedron class
   int currPos = 0;
   int argtype;
   int i, j;
In the build directory VTK_build_shared:

valgrind --tool=memcheck bin/vtkWrapPython /1/gebbert/VTK/Filtering/vtkTriCubicHexahedron.h /1/gebbert/VTK/Wrapping/hints 1 /1/gebbert/VTK_build_shared/Filtering/vtkTriCubicHexahedronPython.cxx
No tags attached.
patch vtkWrapPython.patch (809) 2007-12-27 08:31
https://www.vtk.org/Bug/file/6274/vtkWrapPython.patch
Issue History
2007-12-27 08:29Sören GebbertNew Issue
2007-12-27 08:31Sören GebbertFile Added: vtkWrapPython.patch
2008-08-29 16:31David ColeStatusbacklog => tabled
2008-08-29 16:31David ColeAssigned To => David Cole
2011-01-19 09:45David ColeAssigned ToDavid Cole => David Partyka
2011-02-16 15:47David GobbiAssigned ToDavid Partyka => David Gobbi
2011-02-26 09:42David GobbiStatustabled => @80@
2011-02-26 09:42David GobbiResolutionopen => fixed
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2012-12-12 11:56David GobbiNote Added: 0029873
2012-12-12 11:56David GobbiStatuscustomer review => closed

Notes
(0029873)
David Gobbi   
2012-12-12 11:56   
The format string array size has been doubled from 1024 to 2048. Eventually all static string storage in vtkWrapPython should be replaced by dynamic string storage.