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: References: <201201272150 DOT q0RLoW6A030621 AT fumar DOT sanjose DOT ibm DOT com> Date: Mon, 30 Jan 2012 17:02:41 -0600 Message-ID: Subject: Re: Perl system() function works sometimes. From: Reini Urban To: Gary E Barnes Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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