in reply to DBI and CGI qw(-compile) order causes seg fault

Generally Segmentation fault happens when executes some buggy C or XC code.
Try to use CoreDumpDirectory directive in your httpd.conf file:
CoreDumpDirectory /blah/blah/core
for configure Apache to dump core file to a specific directory and then use a debugger to find out a C function which is causing the problem.
And maybe more efficient use Apache::DBI for access to a database (It's only my opinion. mod_perl include a lot of useful modules: Apache::File, Apache::DBI etc and if you use mod_perl I think will be better use Apache modules for good performance).
Good like!
--------> SV* sv_bless(SV* sv, HV* stash);

Replies are listed 'Best First'.
Re: Re: DBI and CGI qw(-compile) order causes seg fault
by UnderMine (Friar) on Apr 08, 2003 at 12:43 UTC
    Hi,

    Thanks for the CoreDumpDirectory hint.

    I was giving a mimimal case that repeatably caused the issue. The original case was caused by trying to disable Apache::DBI whilst upgrading it.

    use Apache::DBI; use CGI qw(-compile); use XXXX;
    where XXXX.pm has :-
    use DBI;

    Hope that clears things up.
    UnderMine