www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Caines <mcai...@csr-online.com>
Subject general/5198: Perl's system() calls hang Apache 1.3.9
Date Tue, 26 Oct 1999 17:46:15 GMT

>Number:         5198
>Category:       general
>Synopsis:       Perl's system() calls hang Apache 1.3.9
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct 26 10:50:01 PDT 1999
>Originator:     mcaines@csr-online.com
>Release:        1.3.9
Windows 95, using the Apache 1.3.9 Win32 build from your site.
Through CGI, while trying to execute a Perl command such as:
system "del myfile.txt";
Apache 1.3.9 hangs and my browser spins its wheels forever.  Other CGI/Perl
scripts work fine for me under Apache.  Also, once this happens, issuing
"apache -k shutdown" no longer closes my Apache console window--I have to
kill it manually.

I can execute Perl scripts at the command line on my machine, and the "system"
calls execute normally--I only run into trouble when I try to do the same thing
through CGI under Apache 1.3.9.  I'm using ActiveState Perl (build 520).

This is my first experience with Apache, so I can't comment on the behavior in
previous versions of Apache.  Also, I believe that someone would have reported
this already, but I was unable to find it in the bug database.
Just run any Perl script through CGI under Apache 1.3.9 Win32 with a line like:
system "del testfile";

It works if you run it at the command line, but fails when invoked via CGI.
A temp fix for deleting files is to use Perl's "unlink" command in your CGI
scripts.  However, this doesn't help for system commands other than "del".
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message