https://bz.apache.org/bugzilla/show_bug.cgi?id=63516
--- Comment #5 from Sam Vaughan <[email protected]> --- Hi Joe, saved_server_config_defines is NULL when modperl_register_hooks() runs: # gdb /usr/local/sbin/httpd2 GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd6.5"... (gdb) b modperl_register_hooks Function "modperl_register_hooks" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (modperl_register_hooks) pending. (gdb) r -X Starting program: /usr/local/sbin/httpd2 -X Breakpoint 2 at 0xfe44e7c8a74 Pending breakpoint "modperl_register_hooks" resolved Breakpoint 2, 0x00000fe44e7c8a74 in modperl_register_hooks () from /usr/local/lib/apache2/mod_perl.so Current language: auto; currently minimal (gdb) bt #0 0x00000fe44e7c8a74 in modperl_register_hooks () from /usr/local/lib/apache2/mod_perl.so #1 0x00000fe24df3f1dc in ap_add_module (m=0xfe44e7e8008, p=0xfe4ad323028, sym_name=Variable "sym_name" is not available. ) at config.c:499 #2 0x00000fe24df3f45b in ap_add_loaded_module (mod=0xfe44e7e8008, p=Variable "p" is not available. ) at config.c:713 #3 0x00000fe24df7f462 in load_module (cmd=0x7f7ffffdd620, dummy=Variable "dummy" is not available. ) at mod_so.c:302 #4 0x00000fe24df435f7 in invoke_cmd (cmd=0xfe24df94a20, parms=0x7f7ffffdd620, mconfig=0x7f7ffffdd528, args=Variable "args" is not available. ) from /usr/local/sbin/httpd2 #5 0x00000fe24df3fde8 in ap_build_config_sub (p=Variable "p" is not available. ) at config.c:1703 #6 0x00000fe24df4037f in ap_build_config (parms=0x7f7ffffdd620, p=0xfe4ad323028, temp_pool=0xfe4cafe8028, conftree=0xfe24df98158) at config.c:1424 #7 0x00000fe24df40cd9 in ap_process_resource_config (s=Variable "s" is not available. ) at config.c:1885 #8 0x00000fe24df42457 in ap_read_config (process=Variable "process" is not available. ) at config.c:2522 #9 0x00000fe24df3c9a8 in main (argc=2, argv=0x7f7ffffdd8a8) at main.c:659 (gdb) p *saved_server_config_defines Cannot access memory at address 0x0 (gdb) p *ap_server_config_defines $1 = {pool = 0xfe46a00f028, elt_size = 8, nelts = 1, nalloc = 1, elts = 0xfe46a00f110 ")??M?\017"} (gdb) p *(char* (*)[1])ap_server_config_defines->elts $2 = {0xfe24df2a029 "DEBUG"} (gdb) b config.c:652 Breakpoint 3 at 0xfe24df3f1dc: file config.c, line 652. (gdb) c Continuing. Breakpoint 3, ap_add_module (m=0xfe44e7e8008, p=0xfe4ad323028, sym_name=Variable "sym_name" is not available. ) at config.c:653 653 } (gdb) p *saved_server_config_defines Cannot access memory at address 0x0 (gdb) p *ap_server_config_defines $3 = {pool = 0xfe46a00f028, elt_size = 8, nelts = 2, nalloc = 2, elts = 0xfe46a00f178 ")??M?\017"} (gdb) p *(char* (*)[2])ap_server_config_defines->elts $4 = {0xfe24df2a029 "DEBUG", 0xfe5124dcbc8 "MODPERL2"} (gdb) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
