Return-Path: X-Original-To: apmail-stdcxx-issues-archive@minotaur.apache.org Delivered-To: apmail-stdcxx-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EEFE1DF91 for ; Tue, 4 Sep 2012 04:15:08 +0000 (UTC) Received: (qmail 5143 invoked by uid 500); 4 Sep 2012 04:15:08 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 5047 invoked by uid 500); 4 Sep 2012 04:15:08 -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 4940 invoked by uid 99); 4 Sep 2012 04:15:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 04:15:07 +0000 Date: Tue, 4 Sep 2012 15:15:07 +1100 (NCT) From: "Stefan Teleman (JIRA)" To: issues@stdcxx.apache.org Message-ID: <571863173.31437.1346732107965.JavaMail.jiratomcat@arcas> In-Reply-To: <842187792.24290.1346440987529.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (STDCXX-1066) SPARCV8 requires pthread_mutex_t and pthread_cond_t to be aligned on an 8-byte boundary MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/STDCXX-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Teleman updated STDCXX-1066: ----------------------------------- Attachment: _mutex.h.stdcxx-1066.patch > SPARCV8 requires pthread_mutex_t and pthread_cond_t to be aligned on an 8-byte boundary > --------------------------------------------------------------------------------------- > > Key: STDCXX-1066 > URL: https://issues.apache.org/jira/browse/STDCXX-1066 > Project: C++ Standard Library > Issue Type: Bug > Components: Thread Safety > Affects Versions: 4.2.1, 4.2.2, 4.2.x, 4.3.x > Environment: Solaris 10 Update 6 or later on SPARCV8 [32-bit] > Defect is compiler-independent - in reality it only affects Sun Studio and GCC. > Reporter: Stefan Teleman > Labels: features, runtime, threads > Fix For: 4.2.2, 4.2.x, 4.3.x > > Attachments: _config-gcc.h.stdcxx-1066.patch, _config-sunpro.h.stdcxx-1066.patch, ctype.cpp.stdcxx-1066.patch, exception.cpp.stdcxx-1066.patch, ios.cpp.stdcxx-1066.patch, iostream.cpp.stdcxx-1066.patch, iostream.stdcxx-1066.patch, locale_body.cpp.stdcxx-1066.patch, locale_classic.cpp.stdcxx-1066.patch, messages.cpp.stdcxx-1066.patch, _mutex.h.stdcxx-1066.patch, _mutex.h.stdcxx-1066.patch > > > Starting with Solaris 10 Update 6, on SPARCV8, pthread_mutex_t and pthread_cond_t MUST be aligned on an 8-byte boundary. Misaligned access will result in either SEGV or SIGBUS. > There are numerous places in the multi-threaded version of stdcxx where pthread_mutex_t and/or pthread_cond_t types are contained within an union, but with an enforced alignment different than 8. All these instances must be corrected, and #ifdef-guarded for SPARCV8. > Patches to follow shortly, this is just opening the issue. > Warning: the patchset resolving this issue is very large, and it affects a large number of files. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira