[osg-users] std::vector instances from osg::geode derived class error

Thorsten Werner ThorstenWerner at gmx.net
Thu Nov 12 08:47:41 PST 2009


Hi,

OK, so I cleaned up my code and changed the instaciation to  use the ref_ptr. When i start my Program now the Segmentation Fault is gone. Instead this output is shown

*** glibc detected *** ./thyrgon: free(): invalid pointer: 0x00000000012677c8 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f8a71e7cdd6]
/lib/libc.so.6(cfree+0x6c)[0x7f8a71e8170c]
/usr/lib/libosg.so.56(_ZN3osg4NodeD2Ev+0x441)[0x7f8a72faa2d1]
./thyrgon[0x40ebc0]
/usr/lib/libosg.so.56(_ZN3osg5GroupD2Ev+0xe2)[0x7f8a72f67812]
/usr/lib/libosg.so.56(_ZN3osg15MatrixTransformD0Ev+0x17)[0x7f8a72fa4fb7]
/usr/lib/libosg.so.56(_ZN3osg5GroupD2Ev+0xe2)[0x7f8a72f67812]
/usr/lib/libosg.so.56(_ZN3osg10ProjectionD0Ev+0x17)[0x7f8a72fc6e57]
/usr/lib/libosg.so.56(_ZN3osg5GroupD0Ev+0xea)[0x7f8a72f6708a]
./thyrgon[0x40f793]
./thyrgon[0x40f9da]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f8a71e25abd]
./thyrgon[0x408e89]

especially the invalid pointer seems to be interesting.

Thank you!

Cheers,
Thorsten

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=19571#19571







More information about the osg-users mailing list