I have a peculiar problem with a modperl module I have written. When
migrating to the following configuration:
perl, v5.6.0 built for sun4-solaris
modperl_20000911162240 (1.2401)
apache-1.3_20000911161201
If I attempt to load the module in my startup.pl using:
use Savvy::Moveform ();
the server SIGSEGVs with the following stack trace:
(gdb) set args -X
(gdb) run
Starting program: /www/sbin/httpd -X
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
Program received signal SIGSEGV, Segmentation fault.
0xdf81c in Perl_gv_init ()
(gdb) where
#0 0xdf81c in Perl_gv_init ()
#1 0xe0d74 in Perl_gv_fetchpv ()
#2 0x4401c in perl_section_hash_init (name=0x17c848 "Location", dotie=0)
at perl_config.c:1598
#3 0x4440c in perl_section (parms=0xefffbab0, dummy=0x1c7308, arg=0xefff99ae "")
at perl_config.c:1701
#4 0xa0a38 in invoke_cmd (cmd=0x1b1540, parms=0xefffbab0, mconfig=0x1c7308,
args=0xefff99ae "") at http_config.c:808
#5 0xa1ab0 in ap_handle_command (parms=0xefffbab0, config=0x1c7180,
l=0xefff99a8 "<Perl>") at http_config.c:1028
#6 0xa1b90 in ap_srm_command_loop (parms=0xefffbab0, config=0x1c7180)
at http_config.c:1042
#7 0xa2218 in ap_process_resource_config (s=0x1c6040,
fname=0x1c7fc0 "/www/etc/httpd/httpd.conf", p=0x1c6018, ptemp=0x1ce018)
at http_config.c:1230
#8 0xa2e40 in ap_read_config (p=0x1c6018, ptemp=0x1ce018,
confname=0x1b4a60 "etc/httpd/httpd.conf") at http_config.c:1513
#9 0xb1ddc in main (argc=2, argv=0xefffbc84) at http_main.c:4974
The <Perl> section defining the Location directive for the modules is:
$Location{'/Moveform'} = {
Options => 'FollowSymLinks -Indexes',
Sethandler => 'perl-script',
PerlHandler => 'Savvy::Moveform',
PerlSendHeader => 'Off',
AuthType => 'Savvy::AuthCookieHandler',
AuthName => 'AuthCookie',
PerlAuthenHandler => 'Savvy::AuthCookieHandler->authenticate',
PerlAuthzHandler => 'Savvy::AuthCookieHandler->authorize',
require => 'valid_wrkr'
};
Does the trace indicate the Location directive as the culprit? If so,
it doesn't seem to get too far into it before it bonks. Suggestions?
This same configuration and module functions as expected using perl
5.005_03 built for sun4-solaris, mod_perl 1.2201, apache-1.3_20000314111200.
Thanks.
Peace.