From stdcxx-dev-return-5435-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Thu Oct 11 01:31:49 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 12279 invoked from network); 11 Oct 2007 01:31:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 01:31:49 -0000 Received: (qmail 19122 invoked by uid 500); 11 Oct 2007 01:31:36 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 19113 invoked by uid 500); 11 Oct 2007 01:31: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 19101 invoked by uid 99); 11 Oct 2007 01:31:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 18:31: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, 11 Oct 2007 01:31:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B01C67141FD for ; Wed, 10 Oct 2007 18:30:50 -0700 (PDT) Message-ID: <1480811.1192066250718.JavaMail.jira@brutus> Date: Wed, 10 Oct 2007 18:30:50 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-523) data race in std::locale::classic() In-Reply-To: <3813083.1187307690789.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-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-523: -------------------------------- Fix Version/s: (was: 4.2) 4.2.1 In 4.2.0 we don't have time to work around the Thread Checker bug that causes it to issue the diagnostic. We might want to revisit it in 4.2.1. Rescheduled. > data race in std::locale::classic() > ----------------------------------- > > Key: STDCXX-523 > URL: https://issues.apache.org/jira/browse/STDCXX-523 > Project: C++ Standard Library > Issue Type: Bug > Components: 22. Localization > Affects Versions: 4.1.3 > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Minor > Fix For: 4.2.1 > > Attachments: 22.locale.statics.mt.566892.html, 22.locale.statics.mt.html, 22.locale.statics.mt.html > > > Intel Thread Checker reports the following data race in std::locale::classic(): > $ tcheck_cl ./22.locale.statics.mt --no-global --nthreads=2 > Intel(R) Thread Checker 3.1 command line instrumentation driver (24400) > Copyright (c) 2007 Intel Corporation. All rights reserved. > Building project > Running: /build/sebor/stdcxx-trunk-gcc-3.4.6_3-15D/tests/22.locale.statics.mt --no-global --nthreads=2 > # INFO (S1) (10 lines): > # TEXT: > # COMPILER: gcc 3.4.6, __VERSION__ = "3.4.6 20060404 (Red Hat 3.4.6-3)" > # ENVIRONMENT: x86_64/LP64 running linux-elf (Red Hat Enterprise Linux AS release 4 (Nahant Update 4)) with glibc 2.3 > # FILE: 22.locale.statics.mt.cpp > # COMPILED: Aug 16 2007, 19:32:08 > # COMMENT: thread safety > ############################################################ > # CLAUSE: lib.locale.statics > # INFO (S1) (3 lines): > # TEXT: testing std::locale::classic() with 2 threads > # CLAUSE: lib.locale.statics > # NOTE (S2) (4 lines): > # TEXT: std::locale::global(const std::locale&) test disabled > # CLAUSE: lib.locale.statics > # LINE: 129 > # +-----------------------+----------+----------+----------+ > # | DIAGNOSTIC | ACTIVE | TOTAL | INACTIVE | > # +-----------------------+----------+----------+----------+ > # | (S1) INFO | 2 | 2 | 0% | > # | (S2) NOTE | 1 | 2 | 50% | > # +-----------------------+----------+----------+----------+ > Application finished > _______________________________________________________________________________ > |ID|Short De|Seve|C|Context|Description |1st Acc|2nd Acce| > | |scriptio|rity|o|[Best] | |ess[Bes|ss[Best]| > | |n |Name|u| | |t] | | > | | | |n| | | | | > | | | |t| | | | | > _______________________________________________________________________________ > |1 |Write ->|Erro|3|"22.loc|Memory read at |"_mutex|"22.loca| > | |Read dat|r |6|ale.sta|"22.locale.statics.mt.cpp":78 |.h":580|le.stati| > | |a-race | | |tics.mt|conflicts with a prior memory | |cs.mt.cp| > | | | | |.cpp":6|write at "_mutex.h":580 (flow | |p":78 | > | | | | |9 |dependence) | | | > _______________________________________________________________________________ > |2 |Read -> |Erro|1|[libstd|Memory write at [libstd15D.so, |"locale|[libstd1| > | |Write da|r | |15D.so,|0xb646b] conflicts with a prior |_classi|5D.so, | > | |ta-race | | |0xb6460|memory read at |c.cpp":|0xb646b]| > | | | | |] |"locale_classic.cpp":45 (anti |45 | | > | | | | | |dependence) | | | > _______________________________________________________________________________ > |3 |Read -> |Erro|1|[libstd|Memory write at [libstd15D.so, |"locale|[libstd1| > | |Write da|r | |15D.so,|0xb646b] conflicts with a prior |_classi|5D.so, | > | |ta-race | | |0xb6460|memory read at |c.cpp":|0xb646b]| > | | | | |] |"locale_classic.cpp":55 (anti |55 | | > | | | | | |dependence) | | | > _______________________________________________________________________________ > |4 |Thread t|Info|1|Whole |Thread termination at |"thread|"thread.| > | |erminati|rmat| |Program|"thread.cpp":84 - includes stack |.cpp":8|cpp":84 | > | |on |ion | |1 |allocation of 10.004 MB and use |4 | | > | | | | | |of 10.203 KB | | | > _______________________________________________________________________________ > |5 |Thread t|Info|1|Whole |Thread termination at |"thread|"thread.| > | |erminati|rmat| |Program|"thread.cpp":84 - includes stack |.cpp":8|cpp":84 | > | |on |ion | |2 |allocation of 10.004 MB and use |4 | | > | | | | | |of 10.188 KB | | | > _______________________________________________________________________________ > |6 |Thread t|Info|1|Whole |Thread termination at |"22.loc|"22.loca| > | |erminati|rmat| |Program|"22.locale.statics.mt.cpp":171 - |ale.sta|le.stati| > | |on |ion | |3 |includes stack allocation of 10 |tics.mt|cs.mt.cp| > | | | | | |MB and use of 8.094 KB |.cpp":1|p":171 | > | | | | | | |71 | | > _______________________________________________________________________________ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.