From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33110 invoked by alias); 7 Jul 2017 12:51:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 32222 invoked by uid 89); 7 Jul 2017 12:51:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=UD:cygcheck.out, cygcheck.out, cygcheckout, Hx-languages-length:980 X-HELO: mail-wr0-f173.google.com Received: from mail-wr0-f173.google.com (HELO mail-wr0-f173.google.com) (209.85.128.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Jul 2017 12:51:41 +0000 Received: by mail-wr0-f173.google.com with SMTP id k67so45672317wrc.2 for ; Fri, 07 Jul 2017 05:51:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ELCLuqHyNZQYbbHEih01+yLvq9C0LE5JRn9mSVyWT/0=; b=KmCp7vs9jFZuK9Xgn0TT7IhEeXfBuyNEU4U7zha2HEWcIpCMkeOAvBipbS/rdwkZ21 Ez6oAboc4jdJcJbA68SSwbzJUcLAyi+lto80e3jb0lGSgzAFp+PLvSc+ICGtmclXjU08 NSUDcjseQBDY0JeE+vR/soVZasAz2alAEAXIiImyZOOdqWpmjC1XLVg/y3O6y3Pbf1yu GLNK55c4AUbNyrcdus8bKjXLmW0ZvmRc/1LgOgmGNuVNzuARxSdMMTyEtvu5i/DT7PXl ZAuK5fLRI/dFgPtpc4O7CGPzt5XZb/+aZi/Jnwdcyn32O1UTUcuAjd/Y2PBH3N9jtltb 6lgg== X-Gm-Message-State: AIVw110aFJ6Fqm9G/oYP1txtQLkGCEli3Fw2/mboMrT+bCIQj9W6/qYd ToMTw4G/GeI/wQ4M X-Received: by 10.223.139.87 with SMTP id v23mr691501wra.145.1499431899060; Fri, 07 Jul 2017 05:51:39 -0700 (PDT) Received: from [172.21.192.193] ([149.6.156.42]) by smtp.googlemail.com with ESMTPSA id 5sm1984289wrq.60.2017.07.07.05.51.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jul 2017 05:51:38 -0700 (PDT) Subject: Re: g++ std::map initializing raises segmentation fault. To: cygwin@cygwin.com References: <20170706.212622.2189310858003243560.trueroad@trueroad.jp> From: Marco Atzeri Message-ID: Date: Fri, 07 Jul 2017 12:51:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170706.212622.2189310858003243560.trueroad@trueroad.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00108.txt.bz2 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. > > So I suspect cygwin-devel-2.8.1-1 is the cause. > > Here's sample code for reproduce. > > ``` > // foo.cc > // g++ -std=c++11 foo.cc > > #include > #include > > std::map m > { > { 1, 1}, > { 2, 2} > }; > > int main () > { > std::cout << "Hello World!" << std::endl; > } > ``` > > I've reproduced it on both Windows 7 64 bit and Windows 10 64 bit. > > ``` > $ ./a > Segmentation fault (core dumped) > I can not replicate. $ uname -svr CYGWIN_NT-6.1 2.8.1(0.312/5/3) 2017-07-03 14:11 $ ./a.exe Hello World! Please provide your cygcheck.out as attachment > Problem reports: http://cygwin.com/problems.html -- 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