Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 62069 invoked from network); 25 Oct 2007 00:33:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 00:33:49 -0000 Received: (qmail 99573 invoked by uid 500); 25 Oct 2007 00:33:36 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 99539 invoked by uid 500); 25 Oct 2007 00:33:36 -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 99476 invoked by uid 99); 25 Oct 2007 00:33:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 17:33:36 -0700 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; Thu, 25 Oct 2007 00:33:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E6170714238 for ; Wed, 24 Oct 2007 17:32:50 -0700 (PDT) Message-ID: <5200129.1193272370940.JavaMail.jira@brutus> Date: Wed, 24 Oct 2007 17:32:50 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-619) purify reports array bounds read error in 25.remove test In-Reply-To: <16643681.1193267814232.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-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Travis Vitek updated STDCXX-619: -------------------------------- Attachment: (was: stdcxx-619.patch) > purify reports array bounds read error in 25.remove test > -------------------------------------------------------- > > Key: STDCXX-619 > URL: https://issues.apache.org/jira/browse/STDCXX-619 > Project: C++ Standard Library > Issue Type: Improvement > Components: Tests > Affects Versions: 4.2 > Reporter: Travis Vitek > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.2.1 > > Attachments: stdcxx-619.patch > > > An rw_assert indexes past the end of an array if the preceeding for loop does not experience a failure. > **** Purify instrumented ./25.remove (pid 19671) **** > ABR: Array bounds read: > * This is occurring while in thread 19671: > test_remove, UserClass, EqualityPredicate >(int, char const*, char, unsigned, FwdIter, NoIterator, UserClass const*, UserClass const*, RemoveTag) [25.remove.cpp:213] > test_remove, NoIterator, UserClass, EqualityPredicate, RemoveTag >(FwdIter, UserClass, NoIterator const*, UserClass const*, EqualityPredicate) [25.remove.cpp:384] > test_remove, RemoveTag >(UserClass const*, EqualityPredicate const*, UserClass) [25.remove.cpp:440] > test_remove(UserClass const*) [25.remove.cpp:471] > run_test(int, char**) [25.remove.cpp:590] > *unknown func* [pc=0x81201a8] > * Reading 4 bytes from 0x81b88f8 in the heap. > * Address 0x81b88f8 is 5 bytes past end of a malloc'd block at 0x81b88c0 of 52 bytes. > * This block was allocated from thread -1207973632: > malloc [rtlib.o] > operator new(unsigned) [libstd15d.so] > operator new [](unsigned) [libstd15d.so] > UserClass* __rw_from_char(UserClass*, char const*, unsigned, bool) [value.cpp:485] > UserClass::from_char(char const*, unsigned, bool) [value.cpp:533] > test_remove, UserClass, EqualityPredicate >(int, char const*, char, unsigned, FwdIter, NoIterator, UserClass const*, UserClass const*, RemoveTag) [25.remove.cpp:153] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.