Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
Failed to dup STDIN: Bad file descriptor.
 

Index | Next | Previous | View Flat


rashmi.badan at gmail

Nov 19, 2008, 6:14 AM


Views: 552
Permalink
Failed to dup STDIN: Bad file descriptor.

Hi,

I load mod_perl into a customized Apache on Windows but when I send a
simple request (http://host:port/perl/testperl.pl - testperl.pl just
prints a simple message) Apache dies and throws the following message
in the error log

Failed to dup STDIN: Bad file descriptor.

I see that this is coming from modperl_io_perlio_override_stdin() in
modperl_io.c but do not know why. If I try loading the same module
into plain Apache I don't seem to hit this problem and am able to
access the script just fine. I would appreciate it if someone could
give me some pointers to debug this issue.

Versions used :
Apache 2.2.9
mod_perl 2.0.4
perl 5.10

mod_perl.conf.
-------------------------------------------------------------
LoadFile ${PERL_PATH}/bin/perl510.dll
LoadModule perl_module modules/mod_perl.so

#
# Setup mod_perl to handle perl cgi scripts from the cgi-bin directory
#
<IfModule mod_alias.c>
<IfModule mod_perl.c>
Alias /perl/ "${APACHE_HOME}/cgi-bin/"
PerlModule ModPerl::Registry
PerlSwitches -I${APACHE_HOME}/mod_perl/lib

<Location /perl/>
SetHandler perl-script
AddHandler perl-script .pl
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
</IfModule>
</IfModule>
-------------------------------------------------------------

Thanks,
Rashmi

Subject User Time
Failed to dup STDIN: Bad file descriptor. rashmi.badan at gmail Nov 19, 2008, 6:14 AM
    Re: Failed to dup STDIN: Bad file descriptor. shibi.ns at gmail Nov 19, 2008, 8:28 AM
    Re: Failed to dup STDIN: Bad file descriptor. shibi.ns at gmail Nov 19, 2008, 8:55 AM
    Re: Failed to dup STDIN: Bad file descriptor. rashmi.badan at gmail Nov 19, 2008, 8:56 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.