[osg-users] OpenThread leak ?

Cedric Pinson mornifle at plopbyte.net
Mon Sep 24 08:02:59 PDT 2007

I have a leak but i don't know if it's justified or if it's a known 
issue, i googled a little on internet,  and i did not find anything.
So i ask on the mailing before searching deeper.
For information i call the cancel method at the end of my program.

==18164== 152 bytes in 1 blocks are definitely lost in loss record 3 of 4
==18164==    at 0x4020848: calloc (in 
==18164==    by 0x4010568: allocate_dtv (in /lib/ld-2.5.so)
==18164==    by 0x401060D: _dl_allocate_tls (in /lib/ld-2.5.so)
==18164==    by 0x4F88A98: pthread_create@@GLIBC_2.1 (in 
==18164==    by 0x4D4A704: OpenThreads::Thread::start() (PThread.c++:624)
==18164==    by 0x4D4A74A: OpenThreads::Thread::startThread() 
==18164==    by 0x8068C42: markneting::MarkNeting::update() 
==18164==    by 0x8057E39: 
==18164==    by 0x80588DE: 
const (test-MarkNeting.cpp:124)
==18164==    by 0x4D50FA3: UnitTest::Test::Run(UnitTest::TestResults&) 
const (in /usr/lib/libunittest++.so.0.0.0)
==18164==    by 0x4: ???
==18164==    by 0x4F7EFF3: (within /lib/libc-2.5.so)

I try with an osg example (osgtext), and it seems to have the same leak

==18217== 152 bytes in 1 blocks are possibly lost in loss record 20 of 33
==18217==    at 0x4020848: calloc (in 
==18217==    by 0x4010568: allocate_dtv (in /lib/ld-2.5.so)
==18217==    by 0x401060D: _dl_allocate_tls (in /lib/ld-2.5.so)
==18217==    by 0x450FA98: pthread_create@@GLIBC_2.1 (in 
==18217==    by 0x402834E: OpenThreads::Thread::start() (in 
==18217==    by 0x402839C: OpenThreads::Thread::startThread() (in 
==18217==    by 0x448D065: osgViewer::Viewer::startThreading() (in 
==18217==    by 0x448FED6: osgViewer::Viewer::setUpThreading() (in 

maybe it's just a valgrind mistake :) if someone has more informations

+33 (0) 6 63 20 03 56  Cedric Pinson mailto:mornifle at plopbyte.net http://www.plopbyte.net

More information about the osg-users mailing list