From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53941 invoked by alias); 20 May 2016 13:37:07 -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 53925 invoked by uid 89); 20 May 2016 13:37:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,RCVD_IN_SEMBACKSCATTER autolearn=no version=3.3.2 spammy=H*F:D*net.au, hth, HTH, findit X-HELO: mail106.syd.optusnet.com.au Received: from mail106.syd.optusnet.com.au (HELO mail106.syd.optusnet.com.au) (211.29.132.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 May 2016 13:37:05 +0000 Received: from dimstar.local.net (c122-107-168-99.eburwd5.vic.optusnet.com.au [122.107.168.99]) by mail106.syd.optusnet.com.au (Postfix) with ESMTP id A47FB3C5B59 for ; Fri, 20 May 2016 23:37:03 +1000 (AEST) Received: (qmail 14523 invoked by uid 501); 20 May 2016 13:36:59 -0000 Date: Fri, 20 May 2016 13:37:00 -0000 From: Duncan Roe To: cygwin@cygwin.com Subject: Re: Help debugging a dll issue Message-ID: <20160520133659.GD12938@dimstar.local.net> Mail-Followup-To: cygwin@cygwin.com References: <3a4d2501-8845-99b6-d58b-544bff5e223f@cs.umass.edu> <20160520112618.GC12938@dimstar.local.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=EfU1O6SC c=1 sm=1 tr=0 a=+cDhJlqnNvz9E7c5l3ERGg==:117 a=+cDhJlqnNvz9E7c5l3ERGg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=yrkiwgmsf1kA:10 a=QNbIVoj-GT2QqJOfW9gA:9 a=CjuIK1q_8ugA:10 X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00227.txt.bz2 On Fri, May 20, 2016 at 08:02:20AM -0400, Eliot Moss wrote: > 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 > Does findit give the same answer for both symbols? If you could build your library and libdl.a with debug (-g) then you might be able to see how the lookup goes wrong. HTH ... Duncan. -- 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