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=k27QE4LVRTuNFtOL dznw5TYkwq+kyFZiEsEANtmx/sgKS1NMiU7vEyyORbPIGKpiHu1dhRsP9KOMHJC7 ZSOafdHi4z6zLvjm9iBwI5SQKnyWbXlwJCeXMPNEUv9ZD+Nf2Auf8vfYnXOMBu6k yeYwpvhH2ls0+Qr9N7yjuzgbyN8= 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=M1v04ue8Q8HymxyciNFUkS YXtfE=; b=tfrnONBcAvkk0fsOzE9l4fGkfd79IxNOA6R6BfiJzjXOFm5AbIm6pS FkpoNb+2/1WjN4x53PS6/VZJGg81G85jZU5JV0RI9ybHBePREEk3sYUBy0tR9N49 DLEe25B4sl6kuhYGkovOLeaQYpCZofGgoiMIHrNezzWnord5PsnjI= 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=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: limerock01.mail.cornell.edu X-CornellRouted: This message has been Routed already. 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: Ken Brown Message-ID: Date: Fri, 7 Jul 2017 11:12:31 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170706.212622.2189310858003243560.trueroad@trueroad.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes On 7/6/2017 8:26 AM, 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've just checked that the problem occurs with the 2017-06-20 snapshot but not with the 2017-06-06 snapshot. I don't have time right now to do a further bisection, but I can probably do it later today or over the weekend if no one beats me to it. Ken -- 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