[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mod_perl - Bad File Descriptor - Re: OpenBSD port libapreq-1.0
- To: jim@corebsd.or.id
- Subject: mod_perl - Bad File Descriptor - Re: OpenBSD port libapreq-1.0
- From: Thomas Bach <t.bach@hyperwerk.ch>
- Date: Sun, 01 Feb 2004 10:49:39 +0100
- Cc: ports@openbsd.org
- Organization: HyperWerk FHBB
- References: <1075555874.3427.87.camel@localhost> <20040201035710.GA63940@toxic.magnesium.net>
hello
first i thought to be a libapreq-problem only, but now it turned out,
that mod_perl is infected alltogether ...
full story at the bottom of the message ...
I made some steps (no clue in which direction ;)
After having installed the p5-libapreq package from 3.4-OpenBSD-Mirror
apache starts again, but a problem persists:
Mod_perl is not able to close handle file-handles: "Bad file descriptor"
on a simple open, print, close.
I attached the corresponding httpd.conf-snippet, the startup (that
actually does only the preloading) and a simple mod_perl file.
This problem also persists by not loading Apache::Request ...
If i execute a similar script as a normal cgi - apache doesn't event
think about not doing what i want.
Does anybody have a clue on how to solve that problem? I promise that
I'll never anymore develop on another operating system than the target
:-/
thomas
---
thomas bach @ t.bach@hyperwerk.ch
student @ hyperwerk.ch
programmer @ telesjb.ch
Am Son, 2004-02-01 um 04.57 schrieb jim@corebsd.or.id:
> * Thomas Bach (t.bach@hyperwerk.ch) wrote:
> > Hi Jim
>
> Hi Thomas
>
> > I got your email-address out of the OpenBSD ports-tree where you're
> > mentioned as the maintainer of the p5-libapreq.
> >
> > Some weeks ago i got the following problem on a PC I'm running at home
> > and now this problem occurs also on a machine in the office:
> >
> > I updated to -current and recompiled mod_perl, p5-libapreq and
> > p5-Apache-DBI ports. With the result that the Apache won't start
> > anymore, without any entries in the logfiles.
> >
> > If I load the Apache::Request Lib in a PerlRequire Startup the Apache
> > doesn't start, not even out of the change-root.
> >
> > Without preloading Apache::Request and using it inside a sample-script,
> > lynx reports network problems: Unexpected Network read error. Apache
> > doesn't report anything.
> >
> > with ktrace i found out, that the last thing he loaded
> >
> > Have you ever made similar experiences, or do you have a clue what the
> > problem might be?
>
> Unfortunately I never had such situation like that, but I will take a look at
> it more deeply. Can you help me by providing the configuration clue and script
> you're using so I can replicate the problem here.
DocumentRoot /var/www/sites/i2da/web
SSLEngine on
SSLCertificateFile /etc/ssl/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
SSLOptions +StdEnvVars +StrictRequire
PerlRequire /var/www/sites/i2da/server/startup.pl
PerlModule IDAHandlers::Files
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Files>
<Location />
SSLRequireSSL
SSLOptions +StdEnvVars
</Location>
<Location /ida>
DirectoryIndex frame.pl
</Location>
<Location /files>
SetHandler perl-script
PerlHandler IDAHandlers::Files
Order allow,deny
Allow from all
</Location>
dummy-startup.801DEFANGED-pl
smplscript.801DEFANGED-pl