X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:message-id:to:subject:from:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=n80OcLVEblhUALx7B5Fni7rZmn5XBMYubYqnJK9FHFB W9vL3KqXOGPtzlJk+bb2By7lvpaSVFm30Au4rW3WcX/rLLJda81VMbq6O3JyTzBo 8L8eM88/UYKHgovDxp7pLVhtqEQLOwvAkOPchSYhrHWT7hCXhKCEN/NSwbrMx6h4 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:message-id:to:subject:from:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=d7/bOPoPvZTs/dKWSKrJURc6Dbg=; b=hsc4FMsgr1dcTrsac DWLyV6AziO1dKfMEHqPB+FtQszqqyeAVQOnFdbcnMVWMrlYPfE2HsobHI9CnBxqJ AxJEd7sbDC/pq21a/X4pkYu6QzoIobIrd06FpT21iWzLEoXPoDSpi3n5KdRjWcPM HVmCEITeGNCJVvT686OH73BZkI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=TANNHAUSER, tannhauser, Falk, cygwindevel X-HELO: msa04y.plala.or.jp Date: Fri, 07 Jul 2017 23:09:03 +0900 (JST) Message-Id: <20170707.230903.2208998970191971739.trueroad@trueroad.jp> To: cygwin AT cygwin DOT com Subject: Re: g++ std::map initializing raises segmentation fault. From: Masamichi Hosoda In-Reply-To: <5aeb55b6-1c71-bf68-3f2c-31f55bba438e@gmail.com> References: <5aeb55b6-1c71-bf68-3f2c-31f55bba438e AT gmail DOT com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; msa04m; Fri, 7 Jul 2017 23:09:09 +0900 > On 07/07/2017 14:51, Marco Atzeri wrote: >> On 06/07/2017 14:26, Masamichi Hosoda wrote: >>> Hello, >>> >>> On Cygwin 2.8.1 x86_64, I've found that g++ std:map initializing >>> may raise segmentation fault. >>> The binary compiled with cygwin-devel-2.8.0-1 >>> does not raise segmentation fault >>> even if on Cygwin 2.8.1 x86_64 environments. >>> >> >> I can not replicate. >> > > Wrong. I can replicate. > > One solution is to use the gcc-6.3.0-2 compiler in test > > https://www.cygwin.com/ml/cygwin-announce/2017-06/msg00079.html Thank you for your information. If I understand correctly, there is three workaround solutions. . Use g++ option `-std=gnu++11` instead of `-std=c++11` TANNHAUSER Falk reported in https://cygwin.com/ml/cygwin/2017-07/msg00089.html I've tried this. It works fine. . Downgrade `cygwin-devel` to 2.8.0-1 instead of 2.8.1-1. I reported in https://cygwin.com/ml/cygwin/2017-07/msg00088.html Of course, it works fine in my environment. . Use gcc-6.3.0-2 instead of gcc-5.4.0-1 You reported in https://cygwin.com/ml/cygwin/2017-07/msg00109.html I'd like to try this. Thanks -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple