After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 90727 - fork problems under Cygwin
fork problems under Cygwin
Status: VERIFIED NOTGNOME
Product: libxml2
Classification: Platform
Component: general
2.4.22
Other Windows
: Normal critical
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-08-14 12:22 UTC by Stanislav Sinyagin
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stanislav Sinyagin 2002-08-14 12:22:03 UTC
Hello team, 

I found a problem in launching fork under Perl. I'm not sure 
if it's Cygwin or libxml problem, but I'm rather sure it's 
not an XML::LibXML problem.

OS: Windows 2000, SP2
Latest release Cygwin installation
libxml2 package version  2.4.23-1
XML-LibXML-1.52 Perl library. 

The error is found when launching Expect.pm, and is reproducable with 
simple fork(). See below the error messages and the sample script.

Regards, 
Stanislav

===========  Console log =============
$ perl xmltest.pl
C:\cygwin\bin\perl.exe: *** unable to remap C:\cygwin\bin\cygxml2-2.dll to 
same
address as parent -- 0x1A2F0000
     35 [main] perl 1320 sync_with_child: child 768(0xD0) died before 
initializa
tion with status code 0x1
  18554 [main] perl 1320 sync_with_child: *** child state child loading 
dlls
I am a child
===========  Console log end =============

===========  xmltest.pl =============
use XML::LibXML;

my $pid = fork();

if( $pid == 0 )
{
    print( "I am a child $pid\n");
    exit;
}
elsif( defined $pid )
{
    print( "I am the parent\n");
    exit;
}
===========  xmltest.pl end =============
Comment 1 Stanislav Sinyagin 2002-08-14 15:00:48 UTC
Date: Wed, 14 Aug 2002 16:11:26 +0200 
From: "Gerrit P. Haase" <gp@familiehaase.de> 
To: "Stanislav Sinyagin" <ssinyagin@yahoo.com> 
CC: cygwin@cygwin.com 
Subject: Re: BUG: fork problems with libxml2 


This is a problem with Cygwin fork().  You need to rebase the DLL's 
and
all should work well then.  This needs Cygwin core development and
meanwhile one needs to rebase the DLL's if there are problems with 
fork().
Hint to the home of Cygwin-rebase:
http://www.tishler.net/jason/software/rebase/

Some more infos can be found in the archives, e.g.:
http://sources.redhat.com/ml/cygwin/2002-07/msg00276.html
Comment 2 Daniel Veillard 2002-08-14 16:29:56 UTC
Okay, then the bug is not related to libxml2 !

  Good to know, thanks !

Daniel