Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 81183 invoked from network); 17 Apr 2008 11:04:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 11:04:42 -0000 Received: (qmail 10761 invoked by uid 500); 17 Apr 2008 11:04:43 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 10741 invoked by uid 500); 17 Apr 2008 11:04:43 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 10731 invoked by uid 99); 17 Apr 2008 11:04:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 04:04:43 -0700 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 11:03:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B329234C0D6 for ; Thu, 17 Apr 2008 04:01:21 -0700 (PDT) Message-ID: <369531984.1208430081634.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 04:01:21 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-597) purify reports uninitialized memory read in _rw_get_char 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-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589954#action_12589954 ] Farid Zaripov commented on STDCXX-597: -------------------------------------- See also this thread: http://www.mail-archive.com/stdcxx-dev@incubator.apache.org/msg01654.html > purify reports uninitialized memory read in _rw_get_char > --------------------------------------------------------- > > Key: STDCXX-597 > URL: https://issues.apache.org/jira/browse/STDCXX-597 > Project: C++ Standard Library > Issue Type: Improvement > Components: Test Driver > Affects Versions: 4.2.0 > Reporter: Travis Vitek > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.3 > > Original Estimate: 2h > Time Spent: 4h > Remaining Estimate: 4h > > {noformat} > **** Purify instrumented ./21.string.access (pid 2878) **** > UMR: Uninitialized memory read: > * This is occurring while in thread 2878: > _rw_get_char(char const*, char const**, unsigned*) [char.cpp:562] > rw_match(char const*, char const*, unsigned) [char.cpp:816] > test_access, std::allocator >(char, std::char_traits*, char*, StringFunc const&, StringTestCase const&) [21.string.access.cpp:274] > test_access(StringFunc const&, StringTestCase const&) [21.string.access.cpp:317] > _rw_test_case(StringFunc const&, StringTestCase const&, (*)(StringFunc const&, StringTestCase const&)) [21.strings.cpp:1298] > _rw_run_cases(StringFunc const&, StringTest const&) [21.strings.cpp:1353] > * Reading 1 byte from 0x8182256 in the heap. > * Address 0x8182256 is 14 bytes into a malloc'd block at 0x8182248 of 46 bytes. > * This block was allocated from thread -1207973632: > malloc [rtlib.o] > operator new(unsigned) [libstd15d.so] > __rw::__rw_allocate(unsigned, int) [memory.cpp:53] > std::allocator::allocate(unsigned, const*) [_allocator.h:144] > std::string, std::allocator>::_C_get_rep(unsigned, unsigned) [string.cc:102] > std::string, std::allocator>::string, std::allocator>[not-in-charge](char const*, unsigned, std::allocator const&) [string.cc:180] > **** Purify instrumented ./21.string.access (pid 2878) **** > UMR: Uninitialized memory read: > * This is occurring while in thread 2878: > _rw_get_char(char const*, char const**, unsigned*) [char.cpp:562] > rw_match(char const*, char const*, unsigned) [char.cpp:816] > test_access, std::allocator >(char, UserTraits*, char*, StringFunc const&, StringTestCase const&) [21.string.access.cpp:274] > test_access(StringFunc const&, StringTestCase const&) [21.string.access.cpp:317] > _rw_test_case(StringFunc const&, StringTestCase const&, (*)(StringFunc const&, StringTestCase const&)) [21.strings.cpp:1298] > _rw_run_cases(StringFunc const&, StringTest const&) [21.strings.cpp:1353] > * Reading 1 byte from 0x818d5a6 in the heap. > * Address 0x818d5a6 is 14 bytes into a malloc'd block at 0x818d598 of 46 bytes. > * This block was allocated from thread -1207973632: > malloc [rtlib.o] > operator new(unsigned) [libstd15d.so] > __rw::__rw_allocate(unsigned, int) [memory.cpp:53] > std::allocator::allocate(unsigned, const*) [_allocator.h:144] > std::basic_string, std::allocator>, std::allocator >::_C_get_rep(unsigned, unsigned) [string.cc:102] > std::basic_string, std::allocator>, std::allocator >::basic_string, std::allocator>[not-in-charge](char const*, unsigned, std::allocator const&) [string.cc:180] > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.