delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | "Avi Cohen Stuart" <avics AT xs4all DOT nl> |
Subject: | Re: openmotif, .rdata, shared libs and runtime linking/loading problem |
Date: | Wed, 16 Aug 2006 11:33:36 +0200 |
Lines: | 44 |
Message-ID: | <ebuopi$a2g$1@sea.gmane.org> |
References: | <ebtb3s$l2a$1 AT sea DOT gmane DOT org> <ebtcfh$nli$2 AT sea DOT gmane DOT org> |
Reply-To: | "Avi Cohen Stuart" <avi DOT cohenstuart AT ssaglobal DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Hi, Tried the -fwritable-strings. Doesn't solve the problem as the SIGSEGV occurs during the loading of the executable and its DLL's. I've tried the linker script that doesn't generate .rdata segments, both during the linking of the shared lib and the executable but that doesn't work in all cases and the application still crashes. It also happens when I'm trying to link against the static Xm library in combination with other shared libs that are dependend on it. Puzzled... Avi. "mwoehlke" <mwoehlke AT tibco DOT com> wrote in message news:ebtcfh$nli$2 AT sea DOT gmane DOT org... > Avi Cohen Stuart wrote: >> [snip] >> gdb reports the following: >> Program received signal SIGSEGV, Segmentation fault. >> [snip] >> >> The address it is trying to write to appears to be a read only address in >> the attempt to resolve some adresses and updating pointers it crashes. > > I've no idea why openmotif/whatever would be broken, but the above > sentence makes me wonder if '-fwritable-strings' (gcc option) would help. > If it does, shame on someone for writing bad code. > >> N.B. sorry for the repost. I suspect that a different subject draws more >> attention... > > Yes. It draws attention to the fact that you have now (potentially) > annoyed us by posting twice. > > -- > Matthew > Only Joe suffers from schizophrenia. The rest of us enjoy it. > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |