[vtkusers] segmentation fault in vtkPythonUtil.cxx, proposed patch

Henner Eisen (FI) eis at germanlloyd.org
Tue Mar 11 11:15:27 EST 2003


Hi,

 >Thanks for investigating this.  I wasn't able to use your patch file
 >because it is corrupted (it has some garbage in the middle).  Also
sorry!
 >the PyObject_Del and PyObject_New are not available in python-1.5.2,
 >and I'm not ready to drop support for 1.5.2 quite yet.
 >
 >Could you change the PyObject_Del and PyObject_New back to
 >PyMem_DEL and PyObject_NEW and then email me your fixed copy

Hope this will be uncorrupted now. Now uses DEL instead of Del.
Also passes the python tests with our customized python.

Henner



--- Common/vtkPythonUtil.cxx.old        2003-03-11 11:19:15.000000000 +0100
+++ Common/vtkPythonUtil.cxx    2003-03-11 16:50:53.000000000 +0100
@@ -381,7 +381,7 @@
    vtkPythonDeleteObjectFromHash((PyObject *)this->Self);
    Py_DECREF((PyObject *)this->Self->vtk_class);
    Py_DECREF(this->Self->vtk_dict);
-  PyMem_DEL(this->Self);
+  PyObject_DEL(this->Self);
  }

  //--------------------------------------------------------------------
@@ -393,7 +393,7 @@
    vtkPythonDeleteObjectFromHash((PyObject *)self);
    Py_DECREF((PyObject *)self->vtk_class);
    Py_DECREF(self->vtk_dict);
-  PyMem_DEL(self);
+  PyObject_DEL(self);
  }

  //--------------------------------------------------------------------
@@ -703,7 +703,7 @@
    Py_XDECREF(self->vtk_module);
    Py_XDECREF(self->vtk_doc);

-  PyMem_DEL(self);
+  PyObject_DEL(self);
  }

  //--------------------------------------------------------------------
@@ -1123,7 +1123,7 @@
    self->vtk_ptr = NULL;
    Py_XDECREF(self->vtk_name);
    Py_XDECREF(self->vtk_doc);
-  PyMem_DEL(self);
+  PyObject_DEL(self);
  }

  //--------------------------------------------------------------------


-- 

_______________________________________________________________________________
|                                        url    :  http://www.germanlloyd.org /
| Dipl.-Math. Henner Eisen        __     Address:                            /
| eis at germanlloyd.org          G /  \ L   Germanischer Lloyd                /
| phone:    +49-40-36149-985   -+----+-   Vorsetzen 32       P.O.Box 111606/
| fax  :    +49-40-36149-7320    \__/     20459 Hamburg      20416 Hamburg/
|                                         Germany                        /
|_______________________________________________________________________/
 
 
 
 
****************************************************
 
 
Beachten Sie:  Wir moechten Sie informieren, dass die E-Mail-Adresse des Germanischen Lloyd sowie unsere Web-Adresse mit Wirkung vom 1. Maerz 2003 auf den Namen gl-group.com umgestellt wurde.
 
 
Dies bedeutet, dass die bisherige Adresse Kurzzeichen at germanlloyd.org durch die neue Adresse Kurzzeichen at gl-group.com ersetzt wird. Die Homepage des GL ist kuenftig uber die Adresse 'http://www.gl-group.com' aufrufbar. Die bisher verwendeten Adressen bleiben fur eine Uebergangsfrist erreichbar.
 
 
**************************************************** 
 
Please notice: We would like to inform you that the e-mail address of Germanischer Lloyd as well as our internet address had been changed to  gl-group.com with effect from 1st March 2003.
 
 
This means that the previous address shortmark at germanlloyd.org will be replaced by shortmark at gl-group.com. From now on the GL homepage can be accessed at the address 'http://www.gl-group.com'. The old addresses remain valid for a transitional period.
 

 
 
****************************************************
 
 
 
 
This e-mail contains confidential information for the exclusive attention of the intended addressee. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail.  
 
GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc. 
 

 



More information about the vtkusers mailing list