[vtkusers] Segmentation Fault

Tuhin Sinha tk.sinha at vanderbilt.edu
Tue Jan 14 11:37:04 EST 2003


> > Check your PATH (or under UNIX your LD_LIBRARY_PATH) to make
> > sure that it points to only one copy of your VTK DLLs/.so files.
>
> I am using linux. When check with which vtk, I get
> /data/VTK/bin/vtk
>
> Does not this enough telling me that PATH setting alright?

Type 'ldd /data/VTK/bin/vtk' and make sure the shared objects used by this
executable are correct. 

HTH,

Tuhin Sinha

On Tuesday 14 January 2003 10:39, Dingrong Yi wrote:
> Hi David,
> Thank you for your reply. Please continue reading.
>
> On Tue, 14 Jan 2003, David Gobbi wrote:
> > Hi Dingrong,
> >
> > The segmentation fault might be a result of having different
> > copies of VTK on your system, for example on Windows if you
> > have DLLs sitting around from an old build, this can cause
> > real problems.
> >
> > Check your PATH (or under UNIX your LD_LIBRARY_PATH) to make
> > sure that it points to only one copy of your VTK DLLs/.so files.
>
> I am using linux. When check with which vtk, I get
> /data/VTK/bin/vtk
>
> Does not this enough telling me that PATH setting alright?
>
> > Also, in future emails related to build problems please quote more
> > information about your system.  In particular you should defintely
> > give
> > 1) your platform (Windows, Linux, IRIX)
>
> Linux
>
> > 2) your compiler
>
> I have installed
> CMake1.4.6-x86-linux-static.tar.gz
> but when I rpm -q gcc I get
> gcc-2.96-110
>
> > 3) which versions of python and tcl you use
>
> python-1.5.2-38
>
> > 4) what CMake variables you have changed (e.g. for python
> >    builds you should BUILD_SHARED_LIBS on)
>
>  BUILD_EXAMPLES                   ON
>  BUILD_SHARED_LIBS                ON
>  BUILD_TESTING                    ON
>  CMAKE_CXX_FLAGS
>  CMAKE_C_FLAGS
>  CMAKE_INSTALL_PREFIX             /usr/local
>  DART_ROOT                        NOTFOUND
>  PYTHON_INCLUDE_PATH              /usr/include/python1.5
>  PYTHON_LIBRARY                   /usr/lib/python1.5/config/libpython1.5.a
>  TCL_INCLUDE_PATH                 /usr/include
>  TCL_LIBRARY                      /usr/lib/libtcl.so
>  TCL_LIBRARY_DEBUG                NOTFOUND
>  TCL_STUB_LIBRARY                 /usr/lib/libtclstub.a
>  TCL_STUB_LIBRARY_DEBUG           NOTFOUND
>  TCL_TCLSH                        /usr/bin/tclsh
>  TK_INCLUDE_PATH                  /usr/include
>  TK_LIBRARY                       /usr/lib/libtk.so
>  TK_LIBRARY_DEBUG                 NOTFOUND
>  TK_STUB_LIBRARY                  /usr/lib/libtkstub.a
>  TK_STUB_LIBRARY_DEBUG            NOTFOUND
>  TK_WISH                          /usr/bin/wish
>  VTK_DATA_ROOT                    /data/VTK
>  VTK_USE_ANSI_STDLIB              OFF
>  VTK_USE_HYBRID                   OFF
>  VTK_USE_PARALLEL                 OFF
>  VTK_USE_PATENTED                 ON
>  VTK_USE_RENDERING                ON
>  VTK_USE_VOLUMEPRO                OFF
>  VTK_WRAP_JAVA                    OFF
>  VTK_WRAP_PYTHON                  ON
>  VTK_WRAP_TCL                     ON
>
> > 5) anything else you think might be relevant
>
> When I installed Python & VTK4.n, I once forced installing
> Mesa-3.4-10.i386.rpm to upgrade a previous version. I followed
> the procedures "Installing Python & VTK  Linux RedHat 7.x"
> (found at http://www.imaging.robarts.ca/coders/)
> though my version is newer than 7.x.
>
> Thank you David.
>
> > Cheers,
> >   David
> >
> > --
> >   David Gobbi, MSc                dgobbi at imaging.robarts.ca
> >   Advanced Imaging Research Group
> >   Robarts Research Institute, University of Western Ontario
> >
> > On Tue, 14 Jan 2003, Dingrong Yi wrote:
> > > Dear VTK Users,
> > >
> > > I used to work on VTK (2.4) and  I upgraded to VTK4.0
> > > successfully. However, just before christmas, I upgraded further
> > >  to a nighly released version (in order to use some great
> > > python classes) which gave me  segmentation error whenever I run
> > >  a VTK example. When installed VTK4.n, I also installed some
> > > packages that for Python. Python worked, but VTK4.n  did not.
> > > What is worse  is that now I am NOT able to
> > > get VTK4.0 running. I can compile the sources successfully and
> > > have the library files in VTK/bin, but whenever I run the
> > > example files or  my own working code, both will give me
> > > segmentation  error.
> > >
> > > Is any one have similar experience or can  give me some
> > > suggestions?
> > >
> > > Thanks
> > >
> > > Dingrong
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > This is the private VTK discussion list.
> > > Please keep messages on-topic. Check the FAQ at:
> > > <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> > > subscribe/unsubscribe:
> > > http://public.kitware.com/mailman/listinfo/vtkusers
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> > subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

-- 
Graduate Research Assistant
Vanderbilt University, Dept of BME
615-343-8261



More information about the vtkusers mailing list