delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/10:55:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Originating-IP: [198.108.5.3]
From: "C. Throne" <bluemonkey23 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: dlopen with fork
Date: Wed, 21 Feb 2001 15:37:01 -0000
Mime-Version: 1.0
Message-ID: <F30EAFikmb0ZY4V1o4G0001dddc@hotmail.com>
X-OriginalArrivalTime: 21 Feb 2001 15:37:01.0623 (UTC) FILETIME=[2261DC70:01C09C1C]

I am experiencing a real strange problem using dlopen (or LoadLibrary).  
Essentially my program calls dlopen followed by several calls to dlsym to 
resolve some symobls.  Eventually the code issues a fork and I get the 
following crash (evaluate.dll is the dll that is being loaded by dlopen):

doit1.exe *** couldn't release memory 0x1A022000(589824) for evaluate.dll 
alignment, Win32 error 487
      0 [main] doit1 343 sync_with_child: child 411(0xC4) died before 
initialization with status code 0x1
  81162 [main] doit1 343 sync_with_child: *** child state child loading dlls

Here is what really strange, in addition to the libraries
linked with dlopen, my program links against several other
DLL's using import libraries (in the Makefile).  Just for
test purposes, I made the import libraries regular archive
files (plain .a libraries), and now my program runs fine.
I can call dlopen followd by fork without any crashes.

Has anyone else experienced this problem, or know a work
around for it??  I really need to have all of my libraries
be DLL's.

Thanks,
--Craig
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019