delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/29/12:01:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 29 Aug 2003 17:03:54 +0100
From: Elfyn McBratney <elfyn AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Odd perl 5.8.0 error
Message-ID: <20030829160354.GU614@emcb.co.uk>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <bimsrs$po5$1 AT sea DOT gmane DOT org> <110168055460 DOT 20030829131146 AT familiehaase DOT de> <bins80$eaj$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <bins80$eaj$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

Andrew DeFaria wrote:
> Gerrit P. Haase wrote:
> 
> >Hello Andrew,
> >
> >>All of a sudden a Perl script of mine that has been working fine for a
> >>long time stopped working. I've traced it down to the following line in
> >>Perl:
> >
> >>my $nbr_msgs = `grep -ce "^From " "$returned_dir/$sender"`;
> >
> >>Seems innocent enough right? Here's the error message:
> >
> >>C:\Cygwin\bin\perl.exe: *** couldn't release memory 0x9D4000(1032192)
> >>for 'C:\Cygwin\lib\perl5\5.8.0\cygwin-multi-64int\auto\Fcntl\Fcntl.dll'
> >>alignment, Win32 error 487
> >
> >>13 [main] perl 1040 sync_with_child: child 5780(0x648) died before
> >>initialization with status code 0x1
> >
> >>I searched winerror.h to find;
> >
> >>#define ERROR_INVALID_ADDRESS 487L
> >
> >>Any ideas?
> >
> >
> >Looks like a rebase issue, though I thought that only Win95/98/ME are 
> >affected by this.
> 
> Ugh! I hate rebase things. Just feels like a kludge to me. Anyways, 
> assuming it is  rebase issue how do I fix it (what's the command (ah 
> duh, rebase I know) and it's parameters?)

Read the README carefully in /usr/doc (currently rebase-2.2.README).
Particularly the part about stopping *all* Cygwin services (e.g., inetd)
and make sure you don't run rebase (or rebaseall) from within rxvt.

> >Does the failure happens sporadically or on regular basis now?
> 
> Well if I put the above Perl snippet into a small script it works OK but 
> in my larger script it fails. I can step through the Perl debugger to 
> that statement and then attempt to step through it and it fails every 
> time. After the above error I get the same error again and again...

At a guess your small script (that works) doesn't use `Fcntl' while your
larger script does.  So, rebase'ing might help here as it does look
similar.

> >You don't have updated perl or cygwin before this happend the first time?
> 
> I do believe I updated Cygwin about a week or two ago. Haven't run into 
> this problem until last night. Then again I don't think I ran this 
> particular script until last night either...

-- Elfyn

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

- Raw text -


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