Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 93266 invoked from network); 12 Nov 2007 14:43:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 14:43:15 -0000 Received: (qmail 36891 invoked by uid 500); 12 Nov 2007 14:43:02 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 36874 invoked by uid 500); 12 Nov 2007 14:43:02 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 36863 invoked by uid 99); 12 Nov 2007 14:43:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 06:43:02 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 14:43:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 463E8714231 for ; Mon, 12 Nov 2007 06:42:51 -0800 (PST) Message-ID: <3163973.1194878571284.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 06:42:51 -0800 (PST) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-587) purify reports memory leak from __rw_tmpbuf in 20.temp.buffer.mt In-Reply-To: <17668305.1192146290780.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov closed STDCXX-587. -------------------------------- > purify reports memory leak from __rw_tmpbuf in 20.temp.buffer.mt > ---------------------------------------------------------------- > > Key: STDCXX-587 > URL: https://issues.apache.org/jira/browse/STDCXX-587 > Project: C++ Standard Library > Issue Type: Improvement > Components: Tests > Affects Versions: 4.2.0 > Reporter: Travis Vitek > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.2.1 > > Attachments: stdcxx-587.patch > > > Each test thread iterates some number of times switching on a counter. If the last iteration runs one of the allocation functions, the temporary buffer will not be deallocated when the thread exits. > Purify: Searching for all memory leaks... > Memory leaked: 42 bytes (6.98%); potentially leaked: 0 bytes (0%) > MLK: 24 bytes leaked at 0x81089d0 > * This memory was allocated from: > malloc [rtlib.o] > operator new(unsigned) [libstd15d.so] > __rw::__rw_allocate(unsigned, int) [memory.cpp:53] > __rw_tmpbuf [tmpbuf.cpp:115] > std::pair std::get_temporary_buffer(int, long long*) [_rawiter.h:138] > std::pair std::get_temporary_buffer(int) [_rawiter.h:153] > MLK: 18 bytes leaked at 0x8108a38 > * This memory was allocated from: > malloc [rtlib.o] > operator new(unsigned) [libstd15d.so] > __rw::__rw_allocate(unsigned, int) [memory.cpp:53] > __rw_tmpbuf [tmpbuf.cpp:115] > std::pair std::get_temporary_buffer(int, short*) [_rawiter.h:138] > std::pair std::get_temporary_buffer(int) [_rawiter.h:153] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.