delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/12/13:50:43

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Ea4qgsAVPDsirLWY3BKzWsFtWRx+X8HX/7hguOwjCti8ZOPNQqy4B
D5xI/I1WqK1EaoxsckabgOQc66wDoxh3okOiMOZkjyAuFgBSnMmDCsK9nvd/wVA5
cwOI18Orehc9jaOFGXh+Gu9xKbzO9rANn+kqPqo8DAqHaNETLS4oLo=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=1UmcEb7d5tHqp0EbwPeHeWGPcGg=; b=Iur5TMQOG4a1fjU17oQSsfFQdAqI
E1CIOitAn7wyKkKI+POrYmRDZJk6JZWP/3Gqz59EUK7BBh1rA+6uQbjYnBEmaInb
bZ1fYdSFAf7dmzAAv56Lfqf5OcktTr9vzcOltz0jtb2Mjz9JAo5f6ODaq1S4JmoD
mztR7R4tTv/NNXc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
Date: Sat, 12 Mar 2016 19:50:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Application not working in 64-bit cygwin cygwin/X
Message-ID: <20160312185011.GA3567@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAGX=k3FLakLze4XzYy7kQ8=xQQ=jKrUiZDPsvmR33OXE9eFdsQ AT mail DOT gmail DOT com> <56E3504C DOT 4030805 AT tiscali DOT co DOT uk> <56E3B6EA DOT 8070002 AT gmail DOT com> <885477408b69794d6ac82b45c7e1b64c AT mail DOT kylheku DOT com>
MIME-Version: 1.0
In-Reply-To: <885477408b69794d6ac82b45c7e1b64c@mail.kylheku.com>
User-Agent: Mutt/1.5.24 (2015-08-30)

--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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"

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019