delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/30/20:50: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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=LlqcV2nVCzcqg9tq
ovSCbNcyE1hOnF9GX/8kJXAVOHkqskfXH/w2Ob9eFkKSALOdK7Z9txWM9vUX188g
4d65Y2rUEoBbTcFSA5HwkX/FDObJXJtQl2TVMXzFzPQuAIV4MxCpLV+vO5ogpgaD
0n4gDfsDxfugabL8rl977891igM=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=mzUiKHv1cBlzGcoWlL4rCE
1rXVg=; b=PUekZdhUIAHFvwpIM/Rh4nKKNfGRHijw2bVM+X3Xnf3XP6GU8NWEfa
HsEZqruQufDeDnxH2JMDlHJUaPFD+2qDyiN28QjGUBiorcgvaoZhH3EAZQYuH35Z
Z5GTBZmpdhIx3FM7s8cLmbxwQWqNpbG9KOFgscSZVhsKkVAzAJmEM=
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=-0.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Tue, 31 Mar 2015 03:38:11 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1845068236.20150331033811@yandex.ru>
To: David Stacey <drstacey AT tiscali DOT co DOT uk>, cygwin AT cygwin DOT com
Subject: Re: static vs. shared linking
In-Reply-To: <5519D613.5030501@tiscali.co.uk>
References: <5510A9AB DOT 7020607 AT tiscali DOT co DOT uk> <5511AF73 DOT 9070607 AT tiscali DOT co DOT uk> <20150325090453 DOT GB3017 AT calimero DOT vinschen DOT de> <551339E4 DOT 60705 AT tiscali DOT co DOT uk> <20150330105529 DOT GJ29875 AT calimero DOT vinschen DOT de> <5519A0E1 DOT 6020707 AT tiscali DOT co DOT uk> <395196416 DOT 20150330233026 AT yandex DOT ru> <5519D613 DOT 5030501 AT tiscali DOT co DOT uk>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, David Stacey!

>>> Back to the matter in hand - I don't suppose you had thoughts on why my
>>> simple application crashes when linked as shared, but works fine when
>>> linked statically?
>> Probably I've missed this bit before, forgive me if I did, but have you
>> rebased your library after linking?

> Thank you for your reply. I tried this two different ways:

>    - Running 'rebase -s' on cygcrash_library.dll;
>    - Moving 'cygcrash_library.dll' into /usr/bin and triggering a full 
> rebase using 'rebase-trigger full' and then running setup-x86_64.exe.

I think you need to rebase both your app and library (assuming they both
Cygwin dependent).
Simply moving it around wouldn't help, rebase only tend to apps in its list(s).

> Sadly, neither of these made any difference - the application still 
> crashed :-(

Well, shoot... was worth a try, at the very least.


-- 
With best regards,
Andrey Repin
Tuesday, March 31, 2015 03:22:01

Sorry for my terrible english...


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