Menu

Segmentation fault when vtk_init() is called

Help
Jared
2006-11-29
2013-04-22
  • Jared

    Jared - 2006-11-29

    I'm using octave 2.1.73, with vtk 5.0, and octaviz 0.4.5.  When I try to run any of the included examples, octave displays the following and exits

    panic: Segmentation fault -- stopping myself...
    attempting to save variables to `octave-core'...
    save to `octave-core' complete
    Segmentation fault

    I've narrowed it down to when vtk_init() is being called, the segmentation fault occurs.  Has anyone else had this problem, or have any ideas about how to solve it?

    Thanks,
    Jared

     
    • Jonathan Stickel

      See the forum thread "octaviz makes octave 2.9.8 segfault".  I found I had a segfault problem when a previously installed liboctaviz.so file had not been properly deleted.

       
    • Jared

      Jared - 2006-12-04

      I removed the liboctaviz.so and did a "make install", and I still have the same problem.  I've ran it through the debugger and the segfault is occuring with the following stack trace:

      in vtksys::SystemTools::ConvertToUnixSlashes (path=@0x7fff50287290) at /home/meadows/tools/octavis/vtk/VTK/Utilities/kwsys/SystemTools.cxx:1299
      in vtksys::SystemTools::AddTranslationPath (a=0x315fbf2df8 "", b=0x315fbf2df8 "") at /home/meadows/tools/octavis/vtk/VTK/Utilities/kwsys/SystemTools.cxx:2208
      in vtksys::SystemTools::ClassInitialize () at /home/meadows/tools/octavis/vtk/VTK/Utilities/kwsys/SystemTools.cxx:3703
      in SystemToolsManager (this=0x2aaab119e868) at /home/meadows/tools/octavis/vtk/VTK/Utilities/kwsys/SystemTools.cxx:3642
      in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /home/meadows/tools/octavis/vtk/VTK_build/Utilities/vtksys/SystemTools.hxx:70
      in global constructors keyed to _ZN6vtksys11SystemTools7GetTimeEv () at /home/meadows/tools/octavis/vtk/VTK/Utilities/kwsys/SystemTools.cxx:3744
      in __do_global_ctors_aux () from /usr/local/lib/libvtksys.so.5.0
      in _init () from /usr/local/lib/libvtksys.so.5.0
      in ?? () from /usr/local/libexec/octave/2.1.73/site/oct/x86_64-unknown-linux-gnu/octaviz/vtk_init.oct

      There is some pointer arithmetic occuring in ConvertToUnixSlashes, using very large numbers (these are coming from a string that is passed in with no text but the size is very large).  I'm not sure what is causing this, but I have run the examples that come with VTK itself, and those work so I'm still stuck.

      Jared

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.