X-Recipient: archive-cygwin@delorie.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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=Jey0W5O9GEqOJZMv
	uGwJjLgPLcxKbREAIE9snNap6vne69+VcLmyZDGNX1ekDhjm7+cxaQxf0nK8NJk9
	V+jjtxu/mOn1pvPhXHIndFOPLxIrd9BanS/wXGif5tM1a0y/cL9ZnbJ8tbUu1Bbf
	13WJKHQ99ox6fl6SMjankLNom8s=
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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=DCebA2h+1ycmpfQ8h1IGql
	xFxjQ=; b=Hh491ju+rPeyJSx0RcZ2dR6AmPHtfkPJ5bUGTSo2NsnXx0APOOxieD
	rIGzuJvU5x1/nulN1/vyCLQbYe3trZ19YjpwIV/IDuEdyZ4c3gxggOUKvhFATKIr
	Oc5DHxnnHY64KA0xRxURrWg7jpOfN+ukhL2O1cJX9fZdHTxl2AAJE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*f:sk:3a4d250, Roe, roe, Help
X-HELO: csmail.cs.umass.edu
Reply-To: moss@cs.umass.edu
Subject: Re: Help debugging a dll issue
References: <b21c0ab1-341b-d6f5-915b-f73973b8079b@cs.umass.edu> <CABHT960Yx_bg-NaHWcxePEV+Xz74NaVtsu+NjkrSZs4-62rCOA@mail.gmail.com> <3a4d2501-8845-99b6-d58b-544bff5e223f@cs.umass.edu> <20160520112618.GC12938@dimstar.local.net>
To: cygwin@cygwin.com
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <dcfd0854-b7d0-9598-215c-a5f380b23968@cs.umass.edu>
Date: Fri, 20 May 2016 08:02:20 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <20160520112618.GC12938@dimstar.local.net>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 5/20/2016 7:26 AM, Duncan Roe wrote:

> Hi Eliot,
>
> Do you know what is the name of the totally different symbol? (maybe from nm -D)

Yes -- I have been using nm and objdump to examine the relevant files.  The dll
is called libpypy-c.dll.  The symbol I want to bind to is pypy_main_startup, and
its proper value (as returned by nm and objdump) is 0x6410ac60.  The result I
get is the value of symbol pypy_g_PyNumber_Negative (an automatically generated
C function), which is 0x63443f00.

I wonder if these collide in some internal hash table and the hash lookup (or
the table building) is broken in some subtle way.

Regards -- Eliot

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

