[vtk-developers] vtkContainer.cxx checkin last night

Blezek, Daniel J (Research) blezek at crd.ge.com
Wed Nov 20 08:56:00 EST 2002


Andy,

  Some code you checked in last night is causing the python bindings to segfault under Linux.  This
happens while importing the vtk module.  I reverted to v1.7 of vtkContainer.cxx and things loaded
correctly.  See GDB output below.

vtkContainer.cxx

revision 1.8
date: 2002/11/19 19:37:16;  author: andy;  state: Exp;  lines: +14 -7
Remove the use of vtkString...
----------------------------



Starting program: /home/blezek/Linux/bin/python2 
[New Thread 1024 (LWP 13100)]
Python 2.2.1 (#1, Sep 27 2002, 17:07:32) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 13100)]
__pthread_mutex_lock (mutex=0xf0453d10) at mutex.c:99
99	mutex.c: No such file or directory.
	in mutex.c
(gdb) up
#1  0x400f3be8 in __libc_free (mem=0x4034c641) at malloc.c:3152
3152	malloc.c: No such file or directory.
	in malloc.c
(gdb) 
#2  0x406941f6 in __builtin_delete (ptr=0x4034c641)
   from /usr/lib/libstdc++-libc6.2-2.so.3
Current language:  auto; currently c++
(gdb) 
#3  0x4069421f in __builtin_vec_delete (ptr=0x4034c641)
   from /usr/lib/libstdc++-libc6.2-2.so.3
(gdb) 
#4  0x40345b47 in void vtkContainerDeleteMethod<char const *, _object *> (
    item=@0x8128040) at /home/blezek/src/VTK/Common/vtkContainer.h:165
165	{ char *ch = const_cast<char*>(d1); delete [] ch; } 
(gdb) 
#5  0x40347005 in vtkVector<vtkAbstractMapItem<char const *, _object *> >::~vtkVector
(this=0x8167148, __in_chrg=3)
    at /home/blezek/src/VTK/Common/vtkVector.txx:314
314	      vtkContainerDeleteMethod(this->Array[cc]);
(gdb) 
#6  0x4052585e in vtkObjectBase::UnRegister (this=0x8167148, o=0x0)
    at /home/blezek/src/VTK/Common/vtkObjectBase.cxx:160
160	    delete this;
(gdb) The program is running.  Exit anyway? (y or n) y

--
Daniel Blezek, Ph.D.
blezek at crd.ge.com
Visualization and Computer Vision Lab, Imaging Technologies
GE Global Research Center




More information about the vtk-developers mailing list