From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24430 invoked by alias); 23 Jan 2014 10:32:13 -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 24420 invoked by uid 89); 23 Jan 2014 10:32:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Jan 2014 10:32:12 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 95B2F520A0B; Thu, 23 Jan 2014 11:32:09 +0100 (CET) Date: Thu, 23 Jan 2014 10:32:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Win8 issue with pthread_once in ctor? (Re: Is there someone who have a same problem ?) Message-ID: <20140123103209.GM2357@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <52DF5A6F.2030509@users.sourceforge.net> <52E03E99.9050205@users.sourceforge.net> <52E0A694.8090304@users.sourceforge.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B92bTrfKjyax39gr" Content-Disposition: inline In-Reply-To: <52E0A694.8090304@users.sourceforge.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-01/txt/msg00335.txt.bz2 --B92bTrfKjyax39gr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2010 On Jan 22 23:20, Yaakov (Cygwin/X) wrote: > On 2014-01-22 15:56, Yaakov (Cygwin/X) wrote: > >>I believe that there is a problem when p11-kit command runs on the > >>cygwin64 under Windows 8. > > > >Confirmed with a fresh Windows 8 x64 installation, but not with 8.1. > >I'll have to look into this further. >=20 > Here's what I've found so far: >=20 > So far only with Cygwin64 on Windows 8.0 x64 (but not with Cygwin32 > even on 8.0 x64, nor with Cygwin64 on Windows 7 or 8.1), running any > of the p11-kit commands in ca-certificates' postinstall under strace > shows an exception c0000005 at 0x180134b75 immediately after loading > /usr/lib/pkcs11/p11-kit-trust.so, which translates to: >=20 > $ addr2line -fp -e /usr/bin/cygwin1.dll 0x180134b75 > verifyable_object_isvalid at > /usr/src/debug/cygwin-1.7.27-2/winsup/cygwin/thread.cc:144 >=20 > And eventually on a call to that function: >=20 > verifyable_object_isvalid (objectptr=3Dobjectptr@entry=3D0x239c68, > magic=3Dmagic@entry=3D3742232649, static_ptr1=3Dstatic_ptr1@entry=3D0x0, > static_ptr2=3Dstatic_ptr2@entry=3D0x0, > static_ptr3=3Dstatic_ptr3@entry=3D0x0) > at /usr/src/debug/cygwin-1.7.27-2/winsup/cygwin/thread.cc:140 > 140 if((static_ptr1 && *object =3D=3D static_ptr1) || > 144 if((*object)->magic !=3D magic) > [Inferior 1 exited with code 030000000005] >=20 > Now the strange thing about this module is that it has a constructor > which calls pthread_once() on a function which creates a recursive > mutex, so just dlopen()ing is enough. Unfortunately, my attempts to > reproduce this with an STC have not been successful. >=20 > Corinna, cgf, any insights? Except for the content of object apparently being off, no. It would be helpful to build p11-kit with debugging and without optimization and then step right into it, otherwise it's pretty hard to say anything useful. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --B92bTrfKjyax39gr Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS4O+pAAoJEPU2Bp2uRE+glvMP/Am4o9rpdK/lyIKgDFccHmGh mIapkOHdfxkLA7Ote9dvdaM3lG1r5cklSVZuuyt600w/Xy77D0QGk0wfRoy0sZ1S Er42doB5Q/flzQXCzjIOzjW4g6roU5Iu5Psy0Jnrp/YOSn9jxMefyyI+IplcazOW ubMobIn8tlabx058gjbgAt3SYr7sq4EEXZiD0zAibKv7nMfxuWgHJ0b8kopOPV+/ C1NWP2bDIJi7wz4asP5z5xU3NbuyDuMLDYeggBLGCSaqILLRRmJa5rcti0qXO1S2 cjzu+joVNvYo3MXSBAPArSQFYxPMlXhE6Iny7Phk7x0flieqiQ73yBG908GJqplU WJnrW9IPOhICvfWLyV6JoGCf6WgE69Jkebyjy8Ctd5jN/5z5COCVCEYq8aw2seK3 GODV2acC8vUdDjEqQAXSNbLgr65eQ7K9bt5o0ndisHBBuySU7aDD8HBCfb3nJb6L D45BCVzjr78BTf3qbmDSd/XxmeAT+nbWdTtKry39wU1E2G4v8d7A8gxG1RE6Z04n EntM32vS1CGRKOzUvqsmmyRLo0jX34iKrCl+SJwIhdjJuYXbbEhOL7aI0C/J1cAc QHkjKCgaZ9LDUXSMTjSSSq4vLAYuAQM8xluCJ5FLd7Pca9eEI+NWnyynmTDUI/Wy q56qKmx6Svg1h2nTEq8u =0IbW -----END PGP SIGNATURE----- --B92bTrfKjyax39gr--