From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38377 invoked by alias); 20 May 2016 02:54:44 -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 38369 invoked by uid 89); 20 May 2016 02:54:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=moss, Moss, million, H*MI:341b X-HELO: csmail.cs.umass.edu Received: from mdc1.cs.umass.edu (HELO csmail.cs.umass.edu) (128.119.240.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 May 2016 02:54:42 +0000 Received: from [128.119.40.241] (csvpn17.cs.umass.edu [128.119.40.241]) by csmail.cs.umass.edu (Postfix) with ESMTPSA id 4B42B580000EFF3476; Thu, 19 May 2016 22:54:40 -0400 (EDT) Reply-To: moss@cs.umass.edu To: cygwin From: Eliot Moss Subject: Help debugging a dll issue Message-ID: Date: Fri, 20 May 2016 02:54:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00215.txt.bz2 Dear Cygwin friends -- I am trying to get pypy to build under cygwin. (It used to do so, but has not been maintained.) I am very close, but there is something quite odd happening when trying to access the large dll that the system builds: the first call into that dll goes wild and causes a segfault. The issue seems to lie with run-time linking, for I can use dlopen to open the dll and then dlsym to look up the function, and I get the same bad address. I see nothing wrong from nm and objdump. The dll is about 70 million bytes long, so I can't really post it, but if you want to have a crack at this, we can find some mutually agreeable place and I can tell you the entry point I am trying to access. I have found that if I patch the indirection in the associated .exe file to refer to the actual address of the function, then the program runs, so it's just this one linkage that is not working (apparently). Very mysterious to me. Regards -- Eliot Moss -- 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