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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=NjxnmdXTSpXbYgqP Z4sjkX39S+7HgxbDV/UjRHf7M5rhBLvx7CI6cE+jwXJWfwwoB99hAWxrqYCKINKi HsCyyyl4+pkJ+9qgPUg8LbmMM9atJj3t11xYWIMsp++m9YEqYX4eNpH4OE+czLOA nq4z6oLLHTA2k+Bl0VwCebx31d0= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=esOTSYdmG658jiIkVgQUNs oiDTA=; b=HN92a/nQwMtxbuGHsui4u17CSoOyPUK0Aevj906Lqsg8h0/5moj/xe uk1U2MeRgXQoRm7xgtEWPAKr7Yk9AeHEMCrIOnm+Cfw30XqKZONmCzr+b0EjXbfM 7XvmjnzEDI/X/MUMY0MSzQRwyBGBzY16n4Yb2fOSM+w9l5vnyMRpM= 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=-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 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) Subject: Re: g++ std::map initializing raises segmentation fault. To: cygwin AT cygwin DOT com References: <20170706 DOT 212622 DOT 2189310858003243560 DOT trueroad AT trueroad DOT jp> From: Marco Atzeri Message-ID: Date: Fri, 7 Jul 2017 14:51:29 +0200 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 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