Stas Bekman wrote:
Stas Bekman wrote:

[...] This brings us to a more painful problem. the code in startup.pl:

  $s->push_handlers(PerlPostConfigHandler => sub { 12345 });

won't let the server start, and no error is logged, the server just
quits.

Actually, you'll get this in the error_log:

Configuration Failed

it's from [httpd]/server/main.c:

   if ( ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) {
       ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR,
                    0, NULL, "Unable to open logs\n");
       destroy_and_exit_process(process, 1);
   }

   if ( ap_run_post_config(pconf, plog, ptemp, server_conf) != OK) {
       ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0,
                    NULL, "Configuration Failed\n");
       destroy_and_exit_process(process, 1);
   }


but this is a problem. I can't figure out why the server fails (won't start here). I think for post_config phase it absolutely wants a valid OK or another return code. Philippe, please take a look at the apache source code. I think the answer will be there.

See above!

probably unrelated, but when tracing this test I got:

modperl_handler_resolve: [8896/1107602352 rabbit.stason.org:8529] handler TestHooks::push_handlers::conf was not compiled at startup, attempting to resolve using current pool 0x9f71a40

modperl_callback_run_handlers: TestHooks::push_handlers::conf returned 12345

modperl_callback_run_handlers: error status 12345 leaves 1078468780 uncalled handlers

"1078468780 uncalled handlers" - wow, that's a lot :)


this was a broken format string, now fixed in svn.


--
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
begin:vcard
fn:Philippe M. Chiasson
n:Chiasson;Philippe M.
email;internet:[EMAIL PROTECTED]
x-mozilla-html:FALSE
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to