From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47943 invoked by alias); 12 Mar 2016 18:50:24 -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 47934 invoked by uid 89); 12 Mar 2016 18:50:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-96.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=H*f:sk:8854774, H*i:sk:8854774, HX-Envelope-From:sk:corinna, prominent X-HELO: calimero.vinschen.de Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 12 Mar 2016 18:50:14 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id A5663A805F3; Sat, 12 Mar 2016 19:50:11 +0100 (CET) Date: Sat, 12 Mar 2016 18:50:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Application not working in 64-bit cygwin cygwin/X Message-ID: <20160312185011.GA3567@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <56E3504C.4030805@tiscali.co.uk> <56E3B6EA.8070002@gmail.com> <885477408b69794d6ac82b45c7e1b64c@mail.kylheku.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <885477408b69794d6ac82b45c7e1b64c@mail.kylheku.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-03/txt/msg00185.txt.bz2 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2797 On Mar 12 09:38, Kaz Kylheku wrote: > On 11.03.2016 22:27, Marco Atzeri wrote: > >On 12/03/2016 00:10, David Stacey wrote: > >>On 11/03/16 14:23, Girish Joglekar wrote: > >>>I have cleaned up the test example based on X-Windows/Motif which > >>>crashes > >>>on 64-bit cygwin cygwin/X but runs on the 32-bit version. The only > >>>warnings are of the type 'variable set but not used'. > >>> > >>>Here is the link to the tar file. > >>> > >>>https://www.dropbox.com/s/lknuoac64hfql4s/test.tar?dl=3D0 > >>> > >>>Hope you can reproduce the behavior and fix the problem. > >> > >>I tried this on Fedora 23 64-bit and it works. I had to add an empty > >>utcrcu.h file, as the code tries to #include this, and it doesn't exist > >>in the tar file. Given that it runs in 64-bit Linux, the problem is > >>unlikely to be an issue associated with porting 32-bit applications to > >>64-bit. > >> > >>Dave. > >> > >it can be a bug not triggered on linux due the difference in managing > >function arguments in the stack. >=20 > Among a myriad other things! Undefined behaviors can have totally differe= nt > consequences even on architecturally similar systems. E.g. a malloced > buffer overrun depends on the heap structure and allocation pattern > driven by program inputs. Uninitialized memory will have different garbage > in it. And so on. >=20 > So it works on Fedora 23 64-bit? That could be by fluke. >=20 > How about this: does it run with zero errors under Valgrind on the same > system? >=20 > That represents a greater confidence that "it works". >=20 > In any case, this is a poor approach to problem solving in the > context of open source: >=20 > "Hi, on your platform the program in my multi-megabyte archive crashes > ... somewhere in the code (I could tell you where, but I can't be bothered > to use the debugger). Please download the whole, reproduce the problem, a= nd > debug it for me." >=20 > This kind of burp-and-diaper changing is done in the industry only for > paying customers. Heh. Just for completeness, though, I would like to point out the FAQ I wrote back when 64 bit Cygwin was still in development: https://cygwin.com/faq/faq.html#faq.programming.64bitporting There are a couple of points there which might be interesting. Additionally we have some experience with actual bugs in the code which were covered in Linux but showed up on Cygwin. A prominent example was a missing declaration of a stdargs function in OpenLDAP which led to different results on Linux (working) and Cygwin (crashing) because of a subtil difference in the ABI (6 argument registers in SysV-ABI vs. 4 register arguments in the MS-ABI. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW5GTjAAoJEPU2Bp2uRE+g5SsP/1s6j425Zbixg/DRirQt/c34 0ltZSwTolFQhBzaLisnVMfo82VBHidpHX/R8aj2kqmwlYccy0SMnQJdpQGA13SKx cfIAPX3E8TaP1Ro8mmshNOrPb4Ajtw2N8pfVzenxV+1XvvUtZ4xm+Z3zqJ8bdbFX gKt3IZhmyPwFjh8UsU5aMZNdJnZN0kbbr+akEok5igjMOI4b/cOvzoIIUZFcqh1A V9RmC7INY7Db7D8yleAOc1wRDCPVybMlkbFrc9G3trdeOp5GpPFicPtGdzmfiyTg 8yRi/H0WIQvlotZX/++vFmkKMSj4CdkPmWc2lHKdCsmiA+c9XGktLkOhMJEOu/VX 5vIoK47K1RSlJC6UKaj6p8u6cBi7lj5uOT3uP2z80HmB8tNRlPky4T79MUAmxwMr 1PiDLTzhegTsdULOMbW/nY2R52rLeHN7Xu9WzHacM6AxfQuK+lolP1skBsoXrzxa 8roXFEUPzq5FM+60NtiDpd8hMEfu8nwAJbulMbKomLGqewS/j63RBf+QAxY2av1I Vh31rR50+MbMK57T/KyMRxW/blF3iWLKxbSIqDJhQ3WTi0IBbB6X9KaNwI8J+Jae CiyoF1rb9d/d2CXE75hCtRZhUwmSPlRC1PLZofIDKIKBXpOGRpoDIUFb35uuUlhT Ex1tgJySSVHt9Hf05lDo =38gE -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--