[osg-users] osgUtil issue with exiting program

Alberto Luaces aluaces at udc.es
Thu Nov 12 01:07:27 PST 2009


Hi Bric,

Can you go to that #6 and #5 frames through the core dump and see why an
already free pointer is released? Then you can know which node is
causing that. You will need the debugging information from OSG.

Regards,

Alberto

"Bric Rogers" writes:

> 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]

[...]

> 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 ?? ()


More information about the osg-users mailing list