Hi Roman, The valgrind results say "possibly loss", which doesn't necessarily mean that is an actual leak, just that something may be happening that might be leak.
I'm not aware of any leaks in OpenThreads's pthread in terms of what it manages itself, if you can spot something from code reivew/testing please pass on the details. If pthreads that it's using is leaking then there might not be anything we can do about it. However, there is perfectly possible for valgrind to simply be generating a false positive. To further look into the issue the best thing to do would be to create a very small example that creates an OpenThreads::Thread object and see if valgrind reports anything for it. Then start the thread then check again. If this does report leaks then review the code that the OpenThreads::Thread to see if you can spot a possible leak. Another refinement would be to create a pthread directly and see if that reports any leaks. Until there is more evidence that there is real leak I'll assume that it's false positive. Robert. On 19 November 2013 07:44, Roman Grigoriev <grigor...@gosniias.ru> wrote: > Hi, > I use Openthreads and valgrind give me this errors under Ubuntu 13.10 > > Code: > > ==3658== 160 bytes in 1 blocks are possibly lost in loss record 1 of 2 > ==3658== at 0x482D4B8: calloc (vg_replace_malloc.c:593) > ==3658== by 0x400C99D: allocate_dtv (dl-tls.c:296) > ==3658== by 0x400CE4B: _dl_allocate_tls (dl-tls.c:460) > ==3658== by 0x48544E9: pthread_create@@GLIBC_2.4 (allocatestack.c:579) > ==3658== by 0x48D14FB: OpenThreads::Thread::start() (in > /usr/local/lib/libOpenThreads.so.3.3.0) > > > > Thank you! > > Cheers, > Roman > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=57290#57290 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org