From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48469 invoked by alias); 1 Jun 2018 10:06:51 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 47507 invoked by uid 89); 1 Jun 2018 10:06:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.7 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:2544 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Jun 2018 10:06:48 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0M21dP-1gI9xW1yn5-00u3T8; Fri, 01 Jun 2018 12:06:45 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 97ADBA81935; Fri, 1 Jun 2018 12:06:44 +0200 (CEST) Date: Fri, 01 Jun 2018 10:06:00 -0000 From: Corinna Vinschen To: cygwin-developers@cygwin.com Cc: JonY <10walls@gmail.com> Subject: Re: Cyg32 on Win64 fails with stack-protector Message-ID: <20180601100644.GA6322@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com, JonY <10walls@gmail.com> References: <8A9D918F-F233-48DA-9B98-B87D7B188C21@gmail.com> <20180529165958.GK3501@calimero.vinschen.de> <20180531081835.GA14289@calimero.vinschen.de> <1eafb042-ec51-cf01-78f3-445db62dd015@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <1eafb042-ec51-cf01-78f3-445db62dd015@cornell.edu> User-Agent: Mutt/1.9.2 (2017-12-15) X-UI-Out-Filterresults: notjunk:1;V01:K0:zZXV+ejAMlc=:9D7VUQwkVhzeJzY1bMeVU6 ibvdaf7P4aqhxZg4D9/8pk8G/UTSDe2DIwIrJoxVn+tISDAUjy2I3NZt5h2SwZJ/UCSk8UIQF /qLSSKLZUhPukDmqkNEdrpZZH+duaPprKgiXv7tSgPYH4iFAqeL74/WqF528E+PvUVRQseq1t TDPCLfPtG5wGLSuOz9JAxlpWecJ8omseZgD1CFOHtJFdmK32HBRIdSTobDX87D/YMaOfT+uB/ dAEroYkICG/vrGESstZHCrFAXQdEUH9cpURFLvPNoUJx4icVx84vO5mSkkGioTYyhsLikoyPX /alMseoTqaC1b16NJD6jWdUfApmtiyhzSpn2gAOksejRjxuV9UEDJqrM+OBZTDSuX5UZqnAw5 q8Hrk+aLgZojekhf8HqvvIqU399dfYK3yfKjAEfjI7kGzLy4HjMjGyUK35StYYZXyA409IlUq 9Fkh/xlBoiquhmwAe9/dw26zQEVheYP+PPP21sz/c2280Koemb2PbB34Tggh03tX9u+Olz5KU skl3DBgqq2qEFXRVhJiCh3Zr/+I4cxozXOKtK8SDBn3WReepPfLbQhKAR11cnw8mE2ERBFBGk KD6A6kMibGmO95YQeeYIb81/hQgrAev/lCRlb/uNglJ3/8IEV73OhFO9H2nwWrwW8+FYyMXoh mLSzFxJjuwLkx1pRz3e17R1XJ3gCHAsy8MZgVTpGEUeiQHfuAeOCd9qfDlPrLA8x3mnk= X-SW-Source: 2018-06/txt/msg00000.txt.bz2 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2614 On May 31 09:13, Ken Brown wrote: > On 5/31/2018 4:18 AM, Corinna Vinschen wrote: > > On May 30 19:29, Bill Zissimopoulos wrote: > > > Corinna, thanks for your response. > > >=20 > > > On 5/29/18, 9:59 AM, Corinna Vinschen wrote: > > >=20 > > > > Hi Ben, > > > >=20 > > > > On Apr 27 19:12, Ben RUBSON wrote: > > > > > Hi, > > > > >=20 > > > > > We are facing an issue with Cygwin 2.10 32 bits running on Window= s 64 > > > > > bits. > > > > >=20 > > > > > Issue was found running EncFS FUSE FS using WinFsp. > > > > >=20 > > > > > When forking, and calling StartServiceCtrlDispatcher, program fai= ls with > > > > > 0xC0000028 / STATUS_BAD_STACK. > > > > >=20 > > > > > Testing several Cygwin versions reveals that issue was introduced > > > > > between > > > > > 2017-11-14 and 2017-12-01. > > > > > And Bill (WinFsp author) found that compiling with -fno-stack-pro= tector > > > > > works around the issue. > > > > >=20 > > > > > There you can then find the full story and Bill's nice investigat= ion : > > > > > https://github.com/billziss-gh/winfsp/issues/161 > > > > >=20 > > > > > Could it be possible something went wrong with Cygwin ? > > > > >=20 > > > > > Thank you very much for your support ! > > > >=20 > > > > Even with Bill's additionl info I have no idea what change in the > > > > above time frame might be the culprit, especially since no change > > > > has been made to stack handling. > > > >=20 > > > > I suggest to build your own Cygwin and bisect it. Also, you > > > > may want to run your stuff under GDB and set breakpoints to, e.g., > > > > Cygwin's exception::handle method. Make sure the cygwin1.dbg > > > > file can be found by GDB. > > >=20 > > > There appear to be some SSP related commits in the discussed time fra= me. > > > For example: > > >=20 > > > https://sourceware.org/git/?p=3Dnewlib-cygwin.git;a=3Dcommitdiff;h=3D= 0a5dfdbd1ba3 > > > 663a54fa1a7de1a6c4a0a3316a6e > > >=20 > > > Another possibility would be a change in the gcc default options betw= een > > > Cygwin 2.9 and Cygwin 2.10. I do not know if this is possible, but pe= rhaps > > > gcc in 2.9 compiles with -fstack-protector disabled by default and gc= c in > > > 2.10 compiles with it enabled by default? > > >=20 > > > Bill > >=20 > > I CCed Ken (gcc) and Yaakov (SSP) to get more qualified input than > > my own Cygwin DLL centric view. >=20 > I think you meant to CC a different Ken. Oops, I meant to CC a JonY, in fact, not a Ken at all. Sorry! Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlsRGrQACgkQ9TYGna5E T6CTvw/7Bl730iyu4ZZnKVsueRY6q+Md5FcwRsACeSib7HXZa2OwNMXbZliEZjqy YgYBbpkOHo3QdQpA5eu/2TuVF9m239nQxXXvyklts0KwtQPiTJxvUgsHyTi76Sr6 sTaLxcUKaV63rIvM2mN9dYuJC7tdZBDFr6/v++Z8HlvMkhEHWQEPE/pivYF/+1NA nwfouKdX+ktKVx7bzHflVZfPpovAgT906qeJEE0J7lLWCNmd//TX8ugWTf11Ll4L GwA4xeMr3BRSk87+VvtxGS2CVpFVHFE5jG511ncwropeP3v7RRKE6DiU3nDJOqok OtjS8bSWPs+6Ewdit15Za8hUc3lDsW+69QcAP69td9p1EElvwc+mVPTSVKFGDTha USfFQeXz1Ia1s89oYjFdtzKooNe/0KgGaNaTT5lxYVP4e0pjYTjckZrnIh5suIh6 X+qfh4mRlkVPp4/s6sFHUJkr7Sp4E5QQU9QXNwAacYAVzEgg1X95x9t/wgS5/9LK QLq2bJM9jteZytAcuTANUcBJoqP0YOp1n5G4qa6o1boRZprbsjCLmx7wAgKVdFC4 yFhxduCPOedNsK2XcmDEnYhVtWDeus7TEBFJMldzZ7rPVoBwbpqDb/GbqUZ1YYke ZThTB/6F/5icgoulyDWn9Z4qUosEJFcb45GvFwMOTJ56Bo79Qfg= =fLc3 -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--