delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/23/00:20:34

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=NwgF/vJhxWfgeVb2RGLX7PSbYAWQbASLVHbZ92JvTOi
RftiJ1VTHAxNnnnE+UnqsSuUU3wEiyIdRVGD8L1dGMenMowa6Xbgx0Vsclf34+oU
1NSWZYbCSSSnR0DWDGTFkwg0m6NM/poapq/mNeul8uMEw0LJe5egcTQmWfXT54yc
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=XTiawHTdxIO54Zicl/eH8w24RxY=; b=Zrp76vMFIrSm6U7VY
FEretkt0grTo6MAiSzYZwNkTDhpWlvWUKzZyqz7UxJzUqYBV3XGtcz6KXbn4z0Qe
ndIS76C/Uy7njS6Wosc53nMf91n1jO8Z7dQIfiZRrW4nBpWCO2n7J3/Hwtx/xQe9
A4DdneuedxslYLD1AFhdSsi5g4=
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=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ie0-f176.google.com
X-Received: by 10.42.18.68 with SMTP id w4mr4346258ica.22.1390454415458; Wed, 22 Jan 2014 21:20:15 -0800 (PST)
Message-ID: <52E0A694.8090304@users.sourceforge.net>
Date: Wed, 22 Jan 2014 23:20:20 -0600
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Win8 issue with pthread_once in ctor? (Re: Is there someone who have a same problem ?)
References: <CA+WgaY86qXwc9ywzjmU1x8B9WrpFnsQzFtvs6q5JLTRDFsEvHQ AT mail DOT gmail DOT com> <52DF5A6F DOT 2030509 AT users DOT sourceforge DOT net> <CA+WgaY-7sVhxcKyaY=FZpSbiG3JW8N+KHRAh=oXyh_A3bWeH5A AT mail DOT gmail DOT com> <52E03E99 DOT 9050205 AT users DOT sourceforge DOT net>
In-Reply-To: <52E03E99.9050205@users.sourceforge.net>

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.

Here's what I've found so far:

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:

$ 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

And eventually on a call to that function:

verifyable_object_isvalid (objectptr=objectptr AT entry=0x239c68, 
magic=magic AT entry=3742232649, static_ptr1=static_ptr1 AT entry=0x0, 
static_ptr2=static_ptr2 AT entry=0x0, static_ptr3=static_ptr3 AT entry=0x0)
at /usr/src/debug/cygwin-1.7.27-2/winsup/cygwin/thread.cc:140
140   if((static_ptr1 && *object == static_ptr1) ||
144   if((*object)->magic != magic)
[Inferior 1 exited with code 030000000005]

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.

Corinna, cgf, any insights?


Yaakov


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

- Raw text -


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