This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Date: Mon, 30 Jan 2012 17:02:41 -0600
- Subject: Re: Perl system() function works sometimes.
- 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
- 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>
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