Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 3712 invoked from network); 5 May 2008 16:36:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2008 16:36:28 -0000 Received: (qmail 65180 invoked by uid 500); 5 May 2008 16:36:30 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 65155 invoked by uid 500); 5 May 2008 16:36:30 -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 65143 invoked by uid 99); 5 May 2008 16:36:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 09:36:30 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Mon, 05 May 2008 16:35:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EE3AF234C107 for ; Mon, 5 May 2008 09:35:58 -0700 (PDT) Message-ID: <1511049465.1210005358974.JavaMail.jira@brutus> Date: Mon, 5 May 2008 09:35:58 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-845) [XLC++ 7,8,9] SEGV in 22.locale.messages.mt In-Reply-To: <837463692.1207761684341.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-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594264#action_12594264 ] Martin Sebor commented on STDCXX-845: ------------------------------------- Any reason not to use [{{__rw_once}}|http://fisheye6.cenqua.com/browse/stdcxx/tags/4.2.1/src/once.h?r=4.2.x#l137] to make the one-time initialization thread-safe? (Also, please check your line length and the placement of opening braces.) Btw., where does the [{{22.locale.messages.mt.cpp}}|http://svn.apache.org/repos/asf/stdcxx/tags/4.2.1/tests/localization/22.locale.messages.mt.cpp] exercise the cache? AFAICS, it uses a single global classic locale for all threads, no? > [XLC++ 7,8,9] SEGV in 22.locale.messages.mt > ------------------------------------------- > > Key: STDCXX-845 > URL: https://issues.apache.org/jira/browse/STDCXX-845 > Project: C++ Standard Library > Issue Type: Bug > Components: 22. Localization > Affects Versions: 4.2.1 > Environment: AIX 5.3 PowerPC IBM XLC++ 9.0 > AIX 5.3 PowerPC IBM XLC++ 8.0 > AIX 5.3 PowerPC IBM XLC++ 7.0 > Reporter: Travis Vitek > Assignee: Travis Vitek > Fix For: 4.2.2 > > Attachments: stdcxx-845.patch > > Original Estimate: 4h > Time Spent: 9h > Remaining Estimate: 0h > > On AIX, when compiled with XLC++ the test 22.locale.messages.mt fails with {{SIGSEGV}} or {{SIGABRT}}. > {{SIGSEGV}} on XLC++ 7.0 for 12a, 12d > {{SIGABRT}} on XLC++ 7.0 for 15a, 15s, 15S > {{SIGSEGV}} on XLC++ 8.0 for 12a, 12d, 12D, 15a, 15A > {{SIGABRT}} on XLC++ 8.0 for 15S > {{SIGSEGV}} on XLC++ 9.0 for 12a, 15a, 15A > {{SIGABRT}} on XLC++ 9.0 for 15s > Here is the output for a 12S build... > {noformat} > $ dbx 22.locale.messages.mt > # INFO (S1) (10 lines): > # TEXT: > # COMPILER: IBM VisualAge C++, __IBMCPP__ = 900 > # ENVIRONMENT: powerpc/LP64 running aix-5.3 > # FILE: 22.locale.messages.mt.cpp > # COMPILED: Apr 9 2008, 16:38:10 > # COMMENT: thread safety > ############################################################ > # CLAUSE: lib.locale.messages > # NOTE (S2) (5 lines): > # TEXT: executing "gencat rwstdmessages.cat rwstdmessages.msg" > # CLAUSE: lib.locale.messages > # FILE: process.cpp > # LINE: 279 > # INFO (S1) (3 lines): > # TEXT: testing std::messages with 8 threads, 100000 iterations each > # CLAUSE: lib.locale.messages > # INFO (S1) (3 lines): > # TEXT: exercising std::messages > # CLAUSE: lib.locale.messages > Segmentation fault (core dumped) > $ dbx 22.locale.messages.mt > Type 'help' for help. > [using memory image in core] > reading symbolic information ... > Segmentation fault in strchr.strchr at 0x900000000048ec0 ($t2) > 0x900000000048ec0 (strchr+0x140) 8d230001 lbzu r9,0x1(r3) > (dbx) where > strchr.strchr() at 0x900000000048ec0 > _C_get_std_facet(__rw::__rw_facet::_C_facet_type,__rw::__rw_facet*(*)(unsigned long,const char*)) const() at 0x100027970 > __rw_get_facet_by_id__4__rwFRCQ2_3std6localeRCQ2_4__rw13__rw_facet_idPCQ2_3std7codecvtXTcTcTPc_@AF18_13() at 0x100070e54 > do_get__Q2_3std8messagesXTc_CFiN21RCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__() at 0x1000373ec > get__Q2_3std8messagesXTc_CFiN21RCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__() at 0x100037178 > 22.locale.messages.mt.void test_get( \ > const std::messages&,int,int,int,const std::basic_string,std::allocator >&) \ > (msgs = &(...), cat = 0, set = 4, msgid = 4, dflt = &(...)), line 153 in "22.locale.messages.mt.cpp" > unnamed block in thread_func(void*)( = 0x0ffffffffffff2e0), line 189 in "22.locale.messages.mt.cpp" > thread_func(void*)( = 0x0ffffffffffff2e0), line 189 in "22.locale.messages.mt.cpp" > (dbx) quit > {noformat} > This is a new test for 4.2.1, so it is a regression. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.