I can't seem to get Apache::DBI to start up properly.

Here's my startup.pl:

#!/usr/bin/perl -w
use strict;
use Apache ();
use Apache::Status ();
use Apache::DBI ();             #  This *must* come before all other DBI modules!
use Apache::Registry;
use CGI (); 
CGI->compile(':all');
use CGI::Carp ();
$Apache::DBI::DEBUG = 2;
Apache::DBI->connect_on_init
   ("DBI:Pg:dbname=demo;host=localhost", "demo", "",
      {
         PrintError => 1, # warn() on errors
         RaiseError => 0, # don't die on error
         AutoCommit => 0, # require transactions
      }
   )
   or die "Cannot connect to database: $DBI::errstr";
1;

And here's what happens:
[Thu Mar 14 14:28:35 2002] [notice] Apache/1.3.22 (Unix) mod_perl/1.26 PHP/4.1.0 
mod_ssl/2.8.5 OpenSSL/0.9.6a configured -- resuming normal operations
13336 Apache::DBI             PerlChildInitHandler 
13337 Apache::DBI             PerlChildInitHandler 
13338 Apache::DBI             PerlChildInitHandler 
13339 Apache::DBI             PerlChildInitHandler 
13340 Apache::DBI             PerlChildInitHandler 
[Thu Mar 14 14:28:35 2002] [notice] Accept mutex: flock (Default: flock)
[Thu Mar 14 14:28:35 2002] [notice] child pid 13338 exit signal Segmentation fault (11)
[Thu Mar 14 14:28:35 2002] [notice] child pid 13339 exit signal Segmentation fault (11)
[Thu Mar 14 14:28:35 2002] [notice] child pid 13337 exit signal Segmentation fault (11)
[Thu Mar 14 14:28:35 2002] [notice] child pid 13336 exit signal Segmentation fault (11)
[Thu Mar 14 14:28:36 2002] [notice] child pid 13340 exit signal Segmentation fault (11)

If I don't use the "connect_on_init" stuff, I can run a test script fine with those
exact db parameters.

Any suggestions?

Thanks!
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
Network Manager
Quantified Systems, Inc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to