Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TeeJay (2309)

TeeJay
  (email not shown publicly)
http://www.aarontrevena.co.uk/

Working in Truro
Graduate with BSc (Hons) in Computer Systems and Networks
pm : london.pm, bath.pm, devoncornwall.pm
lug : Devon & Cornwall LUG
CPAN : TEEJAY [cpan.org]
irc : TeeJay
skype : hashbangperl
livejournal : hashbangperl [livejournal.com]
flickr :hashbangperl [flickr.com]

Journal of TeeJay (2309)

Wednesday April 09, 2003
03:09 AM

dbi and cgi modules causing apache to segfault

[ #11540 ]
have an intereresting problem.... and a solution I'm not too happy with...

problem :

we have a modperl startup file that calls all the usual perl modules (Apache::Registry, etc) and Apache::DBI.

we want to ensure that we can disable apache::dbi before we upgrade the module on the live server (in case the new version has issues with our system and/or oracle).

so naturally we tried out a startup.pl script on the RC box (same machine, same apache binary, different IP, logdir, rootdir, etc) that had all Apache::DBI references commented out and teh server segfaults when started with or without -X but works just fine with the original startup.pl file.

the server segfaults before any requests to the server are made

a quick grep through the perl modules and cgi scripts give no obvious references to apache::dbi

solution :

after much trimming of startup.pl we got down to this :

# segfault a go-go
use CGI qw(-compile);
use DBI;

# alive-alive-oh
use DBI;
use CGI qw(-compile);

anybody else having this problem or is it just us ?

Versions of stuff we're using

  • Apache 1.3.26
  • mod_perl 1.26
  • DBI 1.21
  • CGI 2.7.52

..also using mod_layout version 3.03

update

Looks like we are unable to reproduce this bug on a different box - using stock debian linux, must be the specific combination of apache modules.

very odd!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.