Re: [Boost-bugs] [Boost C++ Libraries] #3296: Small leak using boost::shared_mutex

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3296: Small leak using boost::shared_mutex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-28 20:19:26


#3296: Small leak using boost::shared_mutex
--------------------------------------------+-------------------------------
 Reporter: p.minervini@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: thread
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: shared_mutex mutex thread leak |
--------------------------------------------+-------------------------------

Comment(by anonymous):

 I'm on Debian Squeeze, and this is Valgrind's output:

 pasquale_at_dell:~/gsoc/test$ valgrind --leak-check=full --show-reachable=yes
 ./test
 ==19839== Memcheck, a memory error detector.
 ==19839== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
 ==19839== Using LibVEX rev 1884, a library for dynamic binary translation.
 ==19839== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
 ==19839== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation
 framework.
 ==19839== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
 ==19839== For more details, rerun with: -v
 ==19839==
 ==19839==
 ==19839== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 23 from 1)
 ==19839== malloc/free: in use at exit: 8 bytes in 1 blocks.
 ==19839== malloc/free: 2 allocs, 1 frees, 12 bytes allocated.
 ==19839== For counts of detected errors, rerun with: -v
 ==19839== searching for pointers to 1 not-freed blocks.
 ==19839== checked 122,096 bytes.
 ==19839==
 ==19839== 8 bytes in 1 blocks are still reachable in loss record 1 of 1
 ==19839== at 0x402601E: malloc (vg_replace_malloc.c:207)
 ==19839== by 0x4078E7B: boost::detail::get_once_per_thread_epoch()
 (once.cpp:43)
 ==19839== by 0x4075153: void boost::call_once<void
 (*)()>(boost::once_flag&, void (*)()) (once.hpp:50)
 ==19839== by 0x4071EF9: boost::detail::get_current_thread_data()
 (thread.cpp:108)
 ==19839== by 0x4072166: boost::this_thread::interruption_enabled()
 (thread.cpp:488)
 ==19839== by 0x4072196:
 boost::this_thread::disable_interruption::disable_interruption()
 (thread.cpp:507)
 ==19839== by 0x8049CF2: boost::shared_mutex::lock_upgrade() (in
 /home/pasquale/gsoc/test/test)
 ==19839== by 0x8049E33:
 boost::upgrade_lock<boost::shared_mutex>::lock() (in
 /home/pasquale/gsoc/test/test)
 ==19839== by 0x8049E61:
 boost::upgrade_lock<boost::shared_mutex>::upgrade_lock(boost::shared_mutex&)
 (in /home/pasquale/gsoc/test/test)
 ==19839== by 0x8049354: Test::Instance() (in
 /home/pasquale/gsoc/test/test)
 ==19839== by 0x804940F: main (in /home/pasquale/gsoc/test/test)
 ==19839==
 ==19839== LEAK SUMMARY:
 ==19839== definitely lost: 0 bytes in 0 blocks.
 ==19839== possibly lost: 0 bytes in 0 blocks.
 ==19839== still reachable: 8 bytes in 1 blocks.
 ==19839== suppressed: 0 bytes in 0 blocks.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3296#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC