X-Recipient: archive-cygwin@delorie.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=Wxnj2iQAmYTnqihb
	w6ZJzM5TiWGMnfAAVYWNtTEmR0/xqXwYqpS2ekZhOm346MubeXXpHlpiKE93qnLz
	Ksr3mMDTB1nXNM6ekZnv+Vk0Tx3ChXua8sC8qFQmHwtTbQMLNVI3AM1gcsbzsyNh
	RGMj/f0rkOI/XL1SdTYj+irzWWs=
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=ai9hi+vZUFcc3/Z9j0l3ta
	8uc2E=; b=BZ2bD5jPsF7+hImUrbbtRCm/r9D6AwAdFBp9uFmZ1A2ruXEj/b/FA4
	6hnPtYms6PY39sfpw3ZMOmwF+/Q2awnN8fbmtLZaaoLMmHYlnjW453ytx1VRfB1H
	bNlG6xmeXZCyeHzxQ7zuept3+KI7AzN8nLlFCfzcTUVFOTFKII5NM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KAM_COUK,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=wise, Reisert, ad1c, AD1C
X-HELO: smtp-out-3.tiscali.co.uk
Subject: Re: cppcheck 1.77 Segmentation fault (64-bit)
To: cygwin@cygwin.com
References: <CAK-n8j57fMX0fbwExi+4RmrKpX0W+0ujQaq=OWchwhTq2wBQxw@mail.gmail.com> <1461736e-51a3-3bb3-cbaf-90b6d41548a1@tiscali.co.uk> <CAK-n8j4fu0QQ8-=1NYkGikWV5EMWBdkED7u9f50+w-tRLSabyw@mail.gmail.com>
From: David Stacey <drstacey@tiscali.co.uk>
Message-ID: <ed80a1b5-754f-09f1-614d-b84aaf4ec18b@tiscali.co.uk>
Date: Sat, 4 Feb 2017 00:08:09 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <CAK-n8j4fu0QQ8-=1NYkGikWV5EMWBdkED7u9f50+w-tRLSabyw@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfL0QNj8YpCRcUndFHJjoznu1Qhudj7S2aYI9lifwIqhQqulcrffrKHFAUCYhYGfj7SqQlYnXfw0CyhlbDPMFnoKzau/4lxlsUkZ9zXnqJADSgrq+LODS zCYKdFmhg8P6pqHsZP7VOLta5hD6kRUBWOuDpQwZIrKtsjljB03MuqM8
X-IsSubscribed: yes

On 29/01/17 21:04, Jim Reisert AD1C wrote:
> Best as I can tell, the seg fault is due to having installed the test
> version of gcc 6.0.  Even uninstalling gcc 6.0 does not fix the
> problem.  I had to create an entirely new Cygwin-64 environment to get
> past the problem.
>
> I invite you (Dave) to try the experiment yourself.  You would be wise
> to back up your Cygwin environment before doing this.

I've spent a little time looking into this. As per the stack track you 
supplied, cppcheck is falling over constructing a std::istringstream 
with a string passed in to initialise the stream. I'll need to debug 
this into the STL to work out exactly why the seg fault is occurring.

Note that there's more to this than simply constructing a 
std::istringstream - compiling the example given in [1] works fine, even 
if I use the same g++ switches used to build cppcheck. So there's 
something else going on...

Dave.

[1] 
http://www.cplusplus.com/reference/sstream/basic_istringstream/basic_istringstream/


--
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

