[osg-users] osgUtil issue with exiting program

Bric Rogers brogers at lite3d.com
Wed Nov 11 14:03:39 PST 2009


Full error:

Code:

*** glibc detected *** ./myprog: free(): invalid pointer: 0x000000000115b4f8 ***
======= Backtrace: =========
/lib64/libc.so.6[0x7f3553fad19d]
/lib64/libc.so.6(cfree+0x76)[0x7f3553faebe6]
../lib/libosg.so.55(_ZN3osg8StateSet5clearEv+0x7e)[0x7f35549fe79e]
../lib/libosg.so.55(_ZN3osg8StateSetD0Ev+0x24)[0x7f35549feb54]
../lib/libosgUtil.so.55(_ZN7osgUtil9RenderBinD0Ev+0x204)[0x7f3554590b54]
../lib/libosgUtil.so.55[0x7f355458fdda]
/lib64/libc.so.6(__cxa_finalize+0x94)[0x7f3553f6fe14]
../lib/libosgUtil.so.55[0x7f35545035c3]
======= Memory map: ========
00400000-00429000 r-xp 00000000 08:03 4261679                            /home/xolo/source/trunk/build/debug/bin/myprog_091111
00628000-00629000 r--p 00028000 08:03 4261679                            /home/xolo/source/trunk/build/debug/bin/myprog_091111
00629000-0062a000 rw-p 00029000 08:03 4261679                            /home/xolo/source/trunk/build/debug/bin/myprog_091111
0062a000-0062c000 rw-p 0062a000 00:00 0 
010cc000-013db000 rw-p 010cc000 00:00 0                                  [heap]
4004c000-4004d000 ---p 4004c000 00:00 0 
4004d000-4084d000 rwxp 4004d000 00:00 0 
40917000-40919000 rwxp 00000000 00:0f 2505                               /dev/zero
41d3d000-41d3e000 ---p 41d3d000 00:00 0 
41d3e000-4253e000 rwxp 41d3e000 00:00 0 
4253e000-4253f000 ---p 4253e000 00:00 0 
4253f000-42d3f000 rwxp 4253f000 00:00 0 
7f3548000000-7f35480c3000 rw-p 7f3548000000 00:00 0 
7f35480c3000-7f354c000000 ---p 7f35480c3000 00:00 0 
7f354e766000-7f354eb66000 rw-s 2ef937000 00:0f 8238                      /dev/nvidia0
7f354eb66000-7f354ec66000 rw-s 312c32000 00:0f 8238                      /dev/nvidia0
7f354ec66000-7f354eca6000 rw-s 3161f0000 00:0f 8238                      /dev/nvidia0
7f354eca6000-7f354ecc6000 rw-s 42288c000 00:0f 8238                      /dev/nvidia0
7f354ed9a000-7f354edce000 rw-p 7f354ed9a000 00:00 0 
7f354edce000-7f354edd3000 r-xp 00000000 08:03 3851712                    /usr/lib64/libXfixes.so.3.1.0
7f354edd3000-7f354efd2000 ---p 00005000 08:03 3851712                    /usr/lib64/libXfixes.so.3.1.0
7f354efd2000-7f354efd3000 r--p 00004000 08:03 3851712                    /usr/lib64/libXfixes.so.3.1.0
7f354efd3000-7f354efd4000 rw-p 00005000 08:03 3851712                    /usr/lib64/libXfixes.so.3.1.0
7f354efd4000-7f354efdd000 r-xp 00000000 08:03 3851669                    /usr/lib64/libXrender.so.1.3.0
7f354efdd000-7f354f1dc000 ---p 00009000 08:03 3851669                    /usr/lib64/libXrender.so.1.3.0
7f354f1dc000-7f354f1dd000 r--p 00008000 08:03 3851669                    /usr/lib64/libXrender.so.1.3.0
7f354f1dd000-7f354f1de000 rw-p 00009000 08:03 3851669                    /usr/lib64/libXrender.so.1.3.0
7f354f1de000-7f354f1e7000 r-xp 00000000 08:03 3941507                    /usr/lib64/libXcursor.so.1.0.2
7f354f1e7000-7f354f3e7000 ---p 00009000 08:03 3941507                    /usr/lib64/libXcursor.so.1.0.2
7f354f3e7000-7f354f3e8000 r--p 00009000 08:03 3941507                    /usr/lib64/libXcursor.so.1.0.2
7f354f3e8000-7f354f3e9000 rw-p 0000a000 08:03 3941507                    /usr/lib64/libXcursor.so.1.0.2
7f35507e7000-7f35507ec000 r-xp 00000000 08:03 3874872                    /usr/lib64/libXdmcp.so.6.0.0
7f35507ec000-7f35509eb000 ---p 00005000 08:03 3874872                    /usr/lib64/libXdmcp.so.6.0.0
7f35509eb000-7f35509ec000 r--p 00004000 08:03 3874872                    /usr/lib64/libXdmcp.so.6.0.0
7f35509ec000-7f35509ed000 rw-p 00005000 08:03 3874872                    /usr/lib64/libXdmcp.so.6.0.0
7f35509ed000-7f35509ef000 r-xp 00000000 08:03 3811477                    /usr/lib64/libXau.so.6.0.0
7f35509ef000-7f3550bee000 ---p 00002000 08:03 3811477                    /usr/lib64/libXau.so.6.0.0
7f3550bee000-7f3550bef000 r--p 00001000 08:03 3811477                    /usr/lib64/libXau.so.6.0.0
7f3550bef000-7f3550bf0000 rw-p 00002000 08:03 3811477                    /usr/lib64/libXau.so.6.0.0
7f3550bf0000-7f3550bf1000 r-xp 00000000 08:03 4284473                    /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.180.60
7f3550bf1000-7f3550cf1000 ---p 00001000 08:03 4284473                    /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.180.60
7f3550cf1000-7f3550cf2000 rw-p 00001000 08:03 4284473                    /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.180.60
7f3550cf2000-7f3551a94000 r-xp 00000000 08:03 4284459                    /usr/lib64/opengl/nvidia/lib/libGLcore.so.180.60
7f3551a94000-7f3551b93000 ---p 00da2000 08:03 4284459                    /usr/lib64/opengl/nvidia/lib/libGLcore.so.180.60
7f3551b93000-7f3551fca000 rwxp 00da1000 08:03 4284459                    /usr/lib64/opengl/nvidia/lib/libGLcore.so.180.60
7f3551fca000-7f3551fdc000 rwxp 7f3551fca000 00:00 0 
7f3551fdc000-7f3551fe3000 r-xp 00000000 08:03 9783102                    /usr/local/lib64/libOpenThreads.so.2.4.0
7f3551fe3000-7f35521e2000 ---p 00007000 08:03 9783102                    /usr/local/lib64/libOpenThreads.so.2.4.0
7f35521e2000-7f35521e3000 r--p 00006000 08:03 9783102                    /usr/local/lib64/libOpenThreads.so.2.4.0
7f35521e3000-7f35521e4000 rw-p 00007000 08:03 9783102                    /usr/local/lib64/libOpenThreads.so.2.4.0
7f35521e4000-7f35521f4000 r-xp 00000000 08:03 3884953                    /usr/lib64/libXext.so.6.4.0
7f35521f4000-7f35523f4000 ---p 00010000 08:03 3884953                    /usr/lib64/libXext.so.6.4.0
7f35523f4000-7f35523f5000 r--p 00010000 08:03 3884953                    /usr/lib64/libXext.so.6.4.0
7f35523f5000-7f35523f6000 rw-p 00011000 08:03 3884953                    /usr/lib64/libXext.so.6.4.0
7f35523f6000-7f35523fb000 r-xp 00000000 08:03 3811003                    /usr/lib64/libXxf86vm.so.1.0.0
7f35523fb000-7f35525fa000 ---p 00005000 08:03 3811003                    /usr/lib64/libXxf86vm.so.1.0.0
7f35525fa000-7f35525fb000 r--p 00004000 08:03 3811003                    /usr/lib64/libXxf86vm.so.1.0.0
7f35525fb000-7f35525fc000 rw-p 00005000 08:03 3811003                    /usr/lib64/libXxf86vm.so.1.0.0
7f35525fc000-7f3552668000 r-xp 00000000 08:03 4596169                    /usr/lib64/libGLU.so.1.3.070501
7f3552668000-7f3552867000 ---p 0006c000 08:03 4596169                    /usr/lib64/libGLU.so.1.3.070501
7f3552867000-7f3552869000 r--p 0006b000 08:03 4596169                    /usr/lib64/libGLU.so.1.3.070501
7f3552869000-7f355286a000 rw-p 0006d000 08:03 4596169                    /usr/lib64/libGLU.so.1.3.070501
7f355286a000-7f355296e000 r-xp 00000000 08:03 4589977                    /usr/lib64/libX11.so.6.2.0
7f355296e000-7f3552b6d000 ---p 00104000 08:03 4589977                    /usr/lib64/libX11.so.6.2.0
7f3552b6d000-7f3552b6f000 r--p 00103000 08:03 4589977                    /usr/lib64/libX11.so.6.2.0
7f3552b6f000-7f3552b74000 rw-p 00105000 08:03 4589977                    /usr/lib64/libX11.so.6.2.0
7f3552b74000-7f3552b8b000 r-xp 00000000 08:03 3851941                    /usr/lib64/libICE.so.6.3.0
7f3552b8b000-7f3552d8a000 ---p 00017000 08:03 3851941                    /usr/lib64/libICE.so.6.3.0
7f3552d8a000-7f3552d8b000 r--p 00016000 08:03 3851941                    /usr/lib64/libICE.so.6.3.0
7f3552d8b000-7f3552d8c000 rw-p 00017000 08:03 3851941                    /usr/lib64/libICE.so.6.3.0
7f3552d8c000-7f3552d90000 rw-p 7f3552d8c000 00:00 0 
7f3552d90000-7f3552d97000 r-xp 00000000 08:03 3851671                    /usr/lib64/libSM.so.6.0.0
7f3552d97000-7f3552f97000 ---p 00007000 08:03 3851671                    /usr/lib64/libSM.so.6.0.0
7f3552f97000-7f3552f98000 r--p 00007000 08:03 3851671                    /usr/lib64/libSM.so.6.0.0
7f3552f98000-7f3552f99000 rw-p 00008000 08:03 3851671                    /usr/lib64/libSM.so.6.0.0
7f3552f99000-7f3552f9b000 r-xp 00000000 08:03 4121078                    /lib64/libdl-2.8.so
7f3552f9b000-7f355319b000 ---p 00002000 08:03 4121078                    /lib64/libdl-2.8.so
7f355319b000-7f355319c000 r--p 00002000 08:03 4121078                    /lib64/libdl-2.8.so
7f355319c000-7f355319d000 rw-p 00003000 08:03 4121078                    /lib64/libdl-2.8.so
7f355319d000-7f35531a0000 r-xp 00000000 08:03 3819532                    /lib64/libuuid.so.1.2
7f35531a0000-7f35533a0000 ---p 00003000 08:03 3819532                    /lib64/libuuid.so.1.2
7f35533a0000-7f35533a1000 r--p 00003000 08:03 3819532                    /lib64/libuuid.so.1.2
7f35533a1000-7f35533a2000 rw-p 00004000 08:03 3819532                    /lib64/libuuid.so.1.2
7f35533a2000-7f35533a9000 r-xp 00000000 08:03 4121055                    /lib64/librt-2.8.so
7f35533a9000-7f35535a9000 ---p 00007000 08:03 4121055                    /lib64/librt-2.8.so
7f35535a9000-7f35535aa000 r--p 00007000 08:03 4121055                    /lib64/librt-2.8.run.sh: line 4: 18762 Aborted  




The backtrace from gdb:

Code:

#0  0x00007ff721852165 in raise () from /lib64/libc.so.6
#1  0x00007ff7218534de in abort () from /lib64/libc.so.6
#2  0x00007ff72188cf87 in ?? () from /lib64/libc.so.6
#3  0x00007ff72189219d in ?? () from /lib64/libc.so.6
#4  0x00007ff721893be6 in free () from /lib64/libc.so.6
#5  0x00007ff7222e379e in osg::StateSet::clear () from ../lib/libosg.so.55
#6  0x00007ff7222e3b54 in osg::StateSet::~StateSet () from ../lib/libosg.so.55
#7  0x00007ff721e75b54 in osgUtil::RenderBin::~RenderBin () from ../lib/libosgUtil.so.55
#8  0x00007ff721e74dda in __tcf_2 () from ../lib/libosgUtil.so.55
#9  0x00007ff721854e14 in __cxa_finalize () from /lib64/libc.so.6
#10 0x00007ff721de85c3 in ?? () from ../lib/libosgUtil.so.55
#11 0x00007fff2e4eba00 in ?? ()
#12 0x00007ff721ed1831 in _fini () from ../lib/libosgUtil.so.55
#13 0x0000000000000000 in ?? ()




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







More information about the osg-users mailing list