Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 94683 invoked from network); 12 Nov 2007 14:45:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 14:45:12 -0000 Received: (qmail 41765 invoked by uid 500); 12 Nov 2007 14:44:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 41753 invoked by uid 500); 12 Nov 2007 14:44:59 -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 41742 invoked by uid 99); 12 Nov 2007 14:44:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 06:44:59 -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:45:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 20E93714209 for ; Mon, 12 Nov 2007 06:44:51 -0800 (PST) Message-ID: <33061754.1194878691131.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 06:44:51 -0800 (PST) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-584) purify reports memory leak from __rw_vfmtwhat in 18.exception test In-Reply-To: <15427199.1192055870658.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-584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov closed STDCXX-584. -------------------------------- > purify reports memory leak from __rw_vfmtwhat in 18.exception test > ------------------------------------------------------------------ > > Key: STDCXX-584 > URL: https://issues.apache.org/jira/browse/STDCXX-584 > Project: C++ Standard Library > Issue Type: Improvement > Components: Tests > Affects Versions: 4.2.0 > Reporter: Travis Vitek > Assignee: Travis Vitek > Priority: Trivial > Fix For: 4.2.1 > > Attachments: stdcxx-584.patch > > > The library uses a system of functions for platforms that don't support exceptions. The __rw_throw function calls __rw_vfmtwhat() to get a string describing the exception that has occured. Under some conditions the string is allocated from the heap as an array of characters. Eventually __rw_throw invokes a function via pointer (__rw_throw_proc) that is supposed to process the exception (possibly by throwing a real exception object). Unfortunately the test does not deallocate the string that was allocated by __rw_vfmtwhat(). > Purify: Searching for all memory leaks... > Memory leaked: 3072 bytes (25.6%); potentially leaked: 0 bytes (0%) > wLK: 3072 bytes leaked in 12 blocks > * This memory was allocated from: > malloc [rtlib.o] > operator new(unsigned) [libstd15d.so] > operator new [](unsigned) [libstd15d.so] > __rw::__rw_vfmtwhat(char*, unsigned, char const*, char*) [exception.cpp:479] > __rw::__rw_throw(int, ...) [exception.cpp:825] > test_rw_throw() [18.exception.cpp:527] > * Block of 256 bytes (12 times); last block at 0x8118de0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.