From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35271 invoked by alias); 21 Aug 2018 09:14:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 34169 invoked by uid 89); 21 Aug 2018 09:14:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-oi0-f41.google.com Received: from mail-oi0-f41.google.com (HELO mail-oi0-f41.google.com) (209.85.218.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Aug 2018 09:14:53 +0000 Received: by mail-oi0-f41.google.com with SMTP id b15-v6so30783417oib.10 for ; Tue, 21 Aug 2018 02:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=460IgX1RSfGQdUHRUE0JEgyZLStH3Xug50DiZZAABeU=; b=nioG4iCNujQpjJ14hrjfU5KKXD/wsmkN91RJ0/21ApL6yYwqP86hGzqyRivmylhlvk nlj/ESI67cRjtyvFVMLhMeiW+5leHXExdROTq82r2SPQ97eupIZ0m7P/e9dZWDEnrv1c 9USv5UuUxCIJxu/0nrP/7wJo9MLaLnSCTooAdAC4o2WIMtBN0FCX6Cua4Z1DhVmto4i7 XZQG0RY8XZ5rMl3MOzMjO4U1ieFn74ePr9TXkv3VULRRgYbe1KToM+/iHF3msIOFNCyv 0j1E0I/FosFt1Qqngmk+YlcNu4ZI3CRYG9WzjfUgHEXFB2/KaqSBnmpq2yiRGWR8oSce i0Dg== MIME-Version: 1.0 Received: by 2002:a4a:c712:0:0:0:0:0 with HTTP; Tue, 21 Aug 2018 02:14:51 -0700 (PDT) Reply-To: noloader@gmail.com In-Reply-To: References: From: Jeffrey Walton Date: Tue, 21 Aug 2018 09:14:00 -0000 Message-ID: Subject: Re: Solaris 11 Sparc crash in std::call_once To: Jonathan Wakely Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00066.txt.bz2 On Tue, Aug 21, 2018 at 5:10 AM, Jonathan Wakely wrote: > On Tue, 21 Aug 2018 at 10:08, Jeffrey Walton wrote: >> The code is crashing on Solaris 11 Sparc. > > What kind of crashing? Segfault? Bus error? My bad, on Solaris it is a SIGSEGV: (gdb) r v ... [New Thread 1 (LWP 1)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 1)] 0x00000001005be6a8 in std::call_once > (__once=..., __f=) at /usr/gcc/7/include/c++/7.3.0/mutex:676 676 __once_callable = std::__addressof(__callable); On Linux without -pthread the code throws a std::system_error at the same place. Jeff