ap_hook_fixups getting evoked twice

Discussion in 'Apache' started by sourabhdp, Dec 21, 2006.

  1. #1
    I am using apache 2.0.55 on Linux 4 for my CVM (problem is not related to cvm so no issues if you don't know about cvm) setup. ap_hook_fixups is used to log access information for CVM. The problem is I am getting multiple (2 times) log entries. When I started debugging I found that the fixups hook gets evoked twice due to which logging is happening twice. I did some googling, but all I could get was that fixups hook is called just before content generation. Pls tell me:

    * Why the fixups hook is called twice. Is it a known issue with apache.

    * Is there any workaround to bypass the second call

    * Any place where I can get good documentation for apache 2.0.55

    * Anything else which you feel might be helpful

    Here are the tracebacks for the first and second calls:

    first time
    (gdb) bt
    #0 vs_cvm_genlib_validate (
    certData=0x8a95e60 "-----BEGIN CERTIFICATE-----\nMIIDVDCCAv6gAwIBAgIQeBAL2MqVKbreeHC7rhAJOjANBgkqhkiG9w0BAQQFADCB\nmTERMA8GA1UEChMIVmVyaVNpZ24xLjAsBgNVBAsTJVZlcmlTaWduIENsYXNzIDIg\nT25TaXRlIEluZGl2aWR1YWwgQ0ExHzAdBgNVBAsTFk"...,
    certLen=4294967295, certStatus=0xbff73958, userName=0x0, certFields=0x0)
    at ../../../vs_cvm_genlib.c:332
    #1 0x0014ddbc in vs_fixer_upper (r=0x8aa6c88) at ../../../mod_vsval_2.c:1591
    #2 0x080a6e2a in ap_run_fixups (r=0x8aa6c88) at request.c:71
    #3 0x080a8cdd in ap_process_request_internal (r=0x8aa6c88) at request.c:244
    #4 0x08082de1 in ap_process_request (r=0x8aa6c88) at http_request.c:247
    #5 0x0807e941 in ap_process_http_connection (c=0x8a886b8) at http_core.c:251
    #6 0x0809c89e in ap_run_process_connection (c=0x8a886b8) at connection.c:43
    #7 0x08091ae1 in child_main (child_num_arg=Variable "child_num_arg" is not available.
    ) at prefork.c:610
    #8 0x08091d0b in make_child (s=Variable "s" is not available.
    ) at prefork.c:704
    #9 0x08091d9c in startup_children (number_to_start=4) at prefork.c:722
    #10 0x0809246f in ap_mpm_run (_pconf=0x87890a8, plog=0x87c1188, s=0x878dfb0)
    at prefork.c:941
    #11 0x0809763f in main (argc=4, argv=0xbff74d54) at main.c:618
    (gdb) n

    second time
    #0 vs_cvm_genlib_validate (
    certData=0x8cb06a8 "-----BEGIN CERTIFICATE-----\nMIIDVDCCAv6gAwIBAgIQeBAL2MqVKbreeHC7rhAJOjANBgkqhkiG9w0BAQQFADCB\nmTERMA8GA1UEChMIVmVyaVNpZ24xLjAsBgNVBAsTJVZlcmlTaWduIENsYXNzIDIg\nT25TaXRlIEluZGl2aWR1YWwgQ0ExHzAdBgNVBAsTFk"...,
    certLen=4294967295, certStatus=0xbff73858, userName=0x0, certFields=0x0)
    at ../../../vs_cvm_genlib.c:332
    #1 0x0014ddbc in vs_fixer_upper (r=0x8cb15d8) at ../../../mod_vsval_2.c:1591
    #2 0x080a6e2a in ap_run_fixups (r=0x8cb15d8) at request.c:71
    #3 0x080a8cdd in ap_process_request_internal (r=0x8cb15d8) at request.c:244
    #4 0x080a8e6b in ap_sub_req_method_uri (method=0x80b41b2 "GET",
    new_uri=0x8800128 "index.html", r=0x8aa6c88, next_filter=0x6e)
    at request.c:1608
    #5 0x080a8e99 in ap_sub_req_lookup_uri (new_uri=0x8800128 "index.html",
    r=0x8aa6c88, next_filter=0x0) at request.c:1620
    #6 0x0808ea9e in fixup_dir (r=0x8aa6c88) at mod_dir.c:183
    #7 0x080a6e2a in ap_run_fixups (r=0x8aa6c88) at request.c:71
    #8 0x080a8cdd in ap_process_request_internal (r=0x8aa6c88) at request.c:244
    #9 0x08082de1 in ap_process_request (r=0x8aa6c88) at http_request.c:247
    b#10 0x0807e941 in ap_process_http_connection (c=0x8a886b8) at http_core.c:251
    #11 0x0809c89e in ap_run_process_connection (c=0x8a886b8) at connection.c:43
    #12 0x08091ae1 in child_main (child_num_arg=Variable "child_num_arg" is not available.
    ) at prefork.c:610
    #13 0x08091d0b in make_child (s=Variable "s" is not available.
    ) at prefork.c:704

    Regards

    Sourabh
     
    sourabhdp, Dec 21, 2006 IP