From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18921 invoked by alias); 23 Jul 2002 04:16:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18871 invoked by uid 71); 23 Jul 2002 04:16:01 -0000 Resent-Date: 23 Jul 2002 04:16:01 -0000 Resent-Message-ID: <20020723041601.18869.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dank@kegel.com Received: (qmail 14542 invoked by uid 61); 23 Jul 2002 04:08:49 -0000 Message-Id: <20020723040849.14541.qmail@sources.redhat.com> Date: Mon, 22 Jul 2002 21:16:00 -0000 From: dank@kegel.com Reply-To: dank@kegel.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/7383: atomic operations not atomic on ppc405 X-SW-Source: 2002-07/txt/msg00628.txt.bz2 List-Id: >Number: 7383 >Category: libstdc++ >Synopsis: atomic operations not atomic on ppc405 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Jul 22 21:16:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dan Kegel >Release: gcc-3.1 >Organization: >Environment: IBM PPC405 embedded processor >Description: Routines such as atomic_add() that use the stwcx instruction fail occasionally, as the ppc405cr occasionally misbehaves if the stwcx instruction interrupted. See erratum 77 in http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/89DED00DEBFF54BF87256A8000491BA2/$file/405CR_C_errata_1_2.pdf See also http://www.kegel.com/xgcc3/ppc405erratum77.html >How-To-Repeat: Difficult. We have reproduced it by running a large C++ program under network load on a 128-computer farm of uniprocessor machines; failure usually happens within 1000 to 2000 cpu-minutes. We have not yet found a small testcase; we're still trying. >Fix: Apply workaround 4 from IBM's erratum sheet. Patch available at http://www.kegel.com/xgcc3/gcc-20020715-ppc405erratum77.patch Patch does seem to fix the libstdc++ problem, and should be suitable for mainline use. Note: patch does not fix libgcj or boehm-gc, which are also affected by this problem. They will need a similar patch. >Release-Note: >Audit-Trail: >Unformatted: