www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/18/00:41:17

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=OOpDtNpNCvZuxeyIeXhtYIKMh719QwxcFPx55N3ABWqC27J2oh6Fi
Vt0WjxkAKJbtYOwNDG85L2GCZK/OE/N0Zeb+g3XstqqSPAqf9dKXYA7gjej712e4
+ph0sAqKnaz6EPUNUFqIIkASYu27ZFCIagO6udkINkhRTABD/zJ/o8=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=gwXd0ebVwqUTF1g2+Dvwgr/ziYA=; b=CcHDob69n+jBJlr+z1AyuoBXp5zi
T4WpNIGC8oeKwTcC2fq7rmwvjkqmPCPHP+SbhpAzfV1CcMPkYraqAS3/YaeSvgSa
a/W0jGDeqXiYiyd6iX8Kn19IGJ3NlmIsbJisVuyVfWxT4Wrovm6jQ7EbbP1ZaOgc
TY/zy+1TOex1OGY=
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=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=it!, H*MI:sk:1460939, H*f:sk:1460939, mentioning
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Mark Geisert <mark AT maxrnd DOT com>
Subject: Re: Invalid relocation for xpdf
Date: Mon, 18 Apr 2016 04:40:22 +0000 (UTC)
Lines: 36
Message-ID: <loom.20160418T062504-986@post.gmane.org>
References: <1460939423 DOT 269224 DOT 30670 DOT 10877 AT mail DOT rambler DOT ru>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Jaakov Jaakov writes:
> Mark, thanks!
> 
> But, unfortunately:
> /usr/bin$ rebase --base=0xf7300000 cygXt-6.dll 
> ReBaseImage (/usr/bin/cygXt-6.dll) failed with last error = 6
> 
> rebase -i *.dll outputs no stars at all (see the attachment). 
> 
> Is there, perhaps, a chance for a permanent solution?

Sorry but my suspicion expressed earlier, that there's an address 
collision, was incorrect.  The rebase source code shows it's a Windows 
error code being reported, and it's Windows' ReBaseImage64() function 
itself having some issue operating on the cygXt-6.dll file.  Do you have 
write access to that file and its directory?

The "last error = 6" means ERROR_INVALID_HANDLE and just concerns your 
machine.  It is unrelated to the root issue of a relocation problem.

A permanent solution would involve somebody debugging why our toolchain 
generates relocation entries too small for the address range we support.  
Obviously relocation on 64-bit works the vast majority of the time or 
we'd be inundated with problem reports.  Your report is the easiest way 
to demonstrate the root issue so thank you for reporting it!

Anyone curious to dig into this, here's the recipe:
    - install xpdf with setup*.exe
    - try to run it, no X server needed, no args needed
If it runs without complaint, or runs and complains "Can't open 
display", there's no issue on your machine.  But if you instead 
immediately get a Cygwin runtime error mentioning relocation, you're 
seeing this issue.

..mark



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