Besides there is no need to post a truss output to debug a perl error. (usually).
Tulan W. Hu wrote:
I found a line in our private module AP_INIT_TAKE12("require", set_subscribe_slot,(void*)APR_XtOffsetOf(LN_auth_config_rec, auth_LNgrpfile),OR_AUTHCFG, "" ), ... I changed it to AP_INIT_RAW_ARGS("require",.....)
Hehe, nice :)
The syntax error problem was solved but I'm still having the following: ..[Wed Jan 26 10:46:33 2005] [error] Insecure directory in $ENV{PATH} while running with -T switch at /s5/twh/papache/mod_perl-2.0.0-RC4/Apache-Test/lib/Apache/TestConfig.pm line 1062.\nCompilation failed in require at /s5/twh/papache/mod_perl-2.0.0-RC4/t/conf/modperl_startup.pl line 17.\n\t...propagated at /s5/twh/papache/mod_perl-2.0.0-RC4/t/conf/modperl_startup.pl line 18.\nBEGIN failed--compilation aborted at /s5/twh/papache/mod_perl-2.0.0-RC4/t/conf/modperl_startup.pl line 20.\nCompilation failed in require at (eval 2) line 1.\n
Please take a look at Apache-Test/lib/Apache/TestConfig.pm
sub open_cmd { my($self, $cmd) = @_; # untaint some %ENV fields local @ENV{ qw(IFS CDPATH ENV BASH_ENV) }; local $ENV{PATH} = untaint_path($ENV{PATH});
# launder for -T $cmd = $1 if $cmd =~ /(.*)/;
my $handle = Symbol::gensym(); open $handle, "$cmd|" or die "$cmd failed: $!";
return $handle; }
it calls untaint_path($ENV{PATH}) in the same file. Please take a look at that function and see if you can fix it.
If you don't figure out, please apply the patch below and post the console output at the server startup. Thanks.
Index: Apache-Test/lib/Apache/TestConfig.pm =================================================================== --- Apache-Test/lib/Apache/TestConfig.pm (revision 126051) +++ Apache-Test/lib/Apache/TestConfig.pm (working copy) @@ -1053,7 +1053,9 @@ my($self, $cmd) = @_; # untaint some %ENV fields local @ENV{ qw(IFS CDPATH ENV BASH_ENV) }; + warn "PATH BEFORE: $ENV{PATH}\n"; local $ENV{PATH} = untaint_path($ENV{PATH}); + warn "PATH AFTER: $ENV{PATH}\n";
# launder for -T $cmd = $1 if $cmd =~ /(.*)/;
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com