X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Received-SPF: pass (google.com: domain of reini.urban@gmail.com designates 10.216.131.234 as permitted sender) client-ip=10.216.131.234;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of reini.urban@gmail.com designates 10.216.131.234 as permitted sender) smtp.mail=reini.urban@gmail.com; dkim=pass header.i=reini.urban@gmail.com
MIME-Version: 1.0
In-Reply-To: <OFC255D9D8.B30A86FF-ON88257995.00614BDA-88257995.0061923D@us.ibm.com>
References: <201201272150.q0RLoW6A030621@fumar.sanjose.ibm.com>	<CAHiT=DH+CZAxXZn3bBF3fFnU-HNaC=jzs9VnKAtAQi+MpGwOvw@mail.gmail.com>	<OFC255D9D8.B30A86FF-ON88257995.00614BDA-88257995.0061923D@us.ibm.com>
Date: Mon, 30 Jan 2012 17:02:41 -0600
Message-ID: <CAHiT=DE-ja0iAxb5MdE3QZRc-Ro-RcZfaZnAEj2quAfspdJiGg@mail.gmail.com>
Subject: Re: Perl system() function works sometimes.
From: Reini Urban <rurban@x-ray.at>
To: Gary E Barnes <gebarnes@us.ibm.com>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0UN31es015244

On Mon, Jan 30, 2012 at 11:45 AM, Gary E Barnes wrote:
> I have tried perlrebase and also rebaseall.  I tried deleting cygwin from
> the machine and reinstalling from scratch.
> None of that fixes the problem.  If it is some sort of rebase problem then
> the usual tools don't fix it.
>
> And from what you said about calling execve when there are no interesting
> shell redirections, it would appear
> that perl calling system() simply doesn't work at all for some reason.

Yes, it failed with a rebaseall-related fork failure because you used system
with the system sh-wrapper. If you call it as list you wouldn't see this error.

Yes, Calling perl within perl within perl will lead to memory conflicts.
This a known problem we will have to live for a while unfortunately.
There's not enough DLL space. Even less the more apps are loaded.
Yes, this is fragile.

That's why I recommended not to use system with strings.
-- 
Reini Urban
http://cpanel.net/   http://www.perl-compiler.org/

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


