[vtk-developers] VTK + Python + AMD64 = broken

David Cole david.cole at kitware.com
Mon Jun 16 13:18:12 EDT 2008


merged to VTK-5-2 :
    /cvsroot/VTK/VTK/Wrapping/Python/vtk/__init__.py,v  <--
Wrapping/Python/vtk/__init__.py
    new revision: 1.13.6.1; previous revision: 1.13


On Fri, May 2, 2008 at 1:15 PM, David Cole <david.cole at kitware.com> wrote:

> Most VTK-5-2 merges are being held until we have some dashboards set up
> against the branch, but it should be relatively soon...
>
>
>
> On Fri, May 2, 2008 at 12:19 PM, Mathieu Malaterre <
> mathieu.malaterre at gmail.com> wrote:
>
>> done:
>>
>> $ cvs ci -m"BUG: RTLD_GLOBAL is still required on AMD64 platform,
>> since dl module is missing, use an API equivalent one intead: DLFCN"
>> __init__.py
>> /cvsroot/VTK/VTK/Wrapping/Python/vtk/__init__.py,v  <--  __init__.py
>> new revision: 1.14; previous revision: 1.13
>>
>> this bug is really nasty, I wish I knew a way to reproduce it easily
>> instead of segfaulting in some random part of the C++ code...
>>
>> Thanks
>> -M
>>
>> On Fri, May 2, 2008 at 6:13 PM, David Cole <david.cole at kitware.com>
>> wrote:
>> > If you commit the changes to CVS HEAD, (and nobody objects to the
>> > changes...) I will merge them to the VTK-5-2 branch...
>> >
>> >
>> >
>> >
>> > On Fri, May 2, 2008 at 12:08 PM, Mathieu Malaterre
>> > <mathieu.malaterre at gmail.com> wrote:
>> >
>> > >
>> > >
>> > >
>> > > I have just spent yet-another hour trying to figure out why the exact
>> > > same code would seg fault when called from the python-wrapped layer
>> > > and not the C++ layer. This is yet again the famous dlopen +
>> > > RTLD_GLOBAL that still need to be loaded (well at least on my debian
>> > > linux system).
>> > >
>> > > For some obscure reason the 'dl' python module has been removed on
>> > > AMD64, but the API can be found in the equivalent 'DLFCN' module.
>> > > Therefore I use the following approach in python: try first to load dl
>> > > then DLFCN:
>> > >
>> > >
>> >
>> http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Utilities/VTK/vtkgdcm.py?view=markup
>> > >
>> > > ...
>> > >
>> > >  try:
>> > >    import dl
>> > >  except ImportError:
>> > >    # are we on AMD64 ?
>> > >    try:
>> > >      import DLFCN as dl
>> > >    except ImportError:
>> > >      dl = None
>> > > ...
>> > >
>> > > Could this be fixed in VTK 5.2 ?
>> > >
>> > > Thanks,
>> > > --
>> > > Mathieu
>> > > _______________________________________________
>> > > vtk-developers mailing list
>> > > vtk-developers at vtk.org
>> > > http://www.vtk.org/mailman/listinfo/vtk-developers
>> > >
>> >
>> >
>>
>>
>>
>> --
>> Mathieu
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20080616/1c425b1a/attachment.html>


More information about the vtk-developers mailing list