Hi,
does anyone know what a Segmentation fault in "std::_List_node_base::hook ()"
means? I was executing these statements:
viewer->setSceneData(scene);
viewer->realize();
viewer->getEventHandlerList().push_front(new PickHandler(viewer)); <<==
Segmentation here
and then:
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaaaddc113 in std::_List_node_base::hook ()
from /usr/lib64/libstdc++.so.6
(gdb) where
#0 0x00002aaaaaddc113 in std::_List_node_base::hook ()
from /usr/lib64/libstdc++.so.6
#1 0x000000000041ad88 in std::list<osg::ref_ptr<osgGA::GUIEventHandler>,
std::allocator<osg::ref_ptr<osgGA::GUIEventHandler> > >::_M_insert
(this=0x1d03de8,
__position={_M_node = 0x1d06310}, [EMAIL PROTECTED]) at stl_list.h:1152
#2 0x000000000041adb8 in std::list<osg::ref_ptr<osgGA::GUIEventHandler>,
std::allocator<osg::ref_ptr<osgGA::GUIEventHandler> > >::push_front
(this=0x1d03de8,
[EMAIL PROTECTED]) at stl_list.h:743
#3 0x0000000000417be7 in terrain_init (
terrain_db=0x482a90 "flatTerrain.osg")
at terrain.cpp:141
#4 0x00000000004067ff in main (argc=1, argv=0x7fffffe923b8) at kast.c:168
Thank you,
Linh
PS The exact same code doesn't segmentation fault in one application
but when I link it in another application, it segmentation fault and
I can't figure out what's the difference between them. I know it's
not any memory corruption because it's the first routine executed in
the "main". Thanks.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/