delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/30/18:03:06

X-Recipient: archive-cygwin AT delorie DOT 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 DOT urban AT gmail DOT 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 DOT urban AT gmail DOT com designates 10.216.131.234 as permitted sender) smtp.mail=reini DOT urban AT gmail DOT com; dkim=pass header.i=reini DOT urban AT gmail DOT com
MIME-Version: 1.0
In-Reply-To: <OFC255D9D8.B30A86FF-ON88257995.00614BDA-88257995.0061923D@us.ibm.com>
References: <201201272150 DOT q0RLoW6A030621 AT fumar DOT sanjose DOT ibm DOT com> <CAHiT=DH+CZAxXZn3bBF3fFnU-HNaC=jzs9VnKAtAQi+MpGwOvw AT mail DOT gmail DOT com> <OFC255D9D8 DOT B30A86FF-ON88257995 DOT 00614BDA-88257995 DOT 0061923D AT us DOT ibm DOT 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 AT x-ray DOT at>
To: Gary E Barnes <gebarnes AT us DOT ibm DOT com>
Cc: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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
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


- Raw text -


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