|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-02-18 08:38 UTC] webmaster at cryptpad dot com
Installed PHP as a DSO Module in Apache. Install went fine. Modified httpd.conf file to include LoadModule & AddType declarations, then stopped and started Apache.
Whenever I go to access a PHP page, it returns no data and puts the following into the apache error log:
[Tue Feb 18 14:13:34 2003] [notice] child pid 9320 exit signal Segmentation fault (11)
Doing a backtrace reveals the following:
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0x4040c5e6 in send_php (r=0x83fa594, display_source_mode=0, filename=0x0)
at /install/php-4.3.1/sapi/apache/mod_php4.c:498
498 per_dir_conf = (HashTable *) get_module_config(r->per_dir_config,
&php4_module);
(gdb) bt
#0 0x4040c5e6 in send_php (r=0x83fa594, display_source_mode=0, filename=0x0)
at /install/php-4.3.1/sapi/apache/mod_php4.c:498
#1 0x4040c80e in send_parsed_php (r=0x83fa594) at /install/php-4.3.1/sapi/apache/mod_php4.c:571
#2 0x080afea3 in ap_invoke_handler ()
#3 0x080c4f03 in ap_some_auth_required ()
#4 0x080c4f64 in ap_process_request ()
#5 0x080bbda1 in ap_child_terminate ()
#6 0x080bbf4c in ap_child_terminate ()
#7 0x080bc0c0 in ap_child_terminate ()
#8 0x080bc738 in ap_child_terminate ()
#9 0x080bcf9b in main ()
#10 0x40087657 in __libc_start_main (main=0x80bcbf4 <main>, argc=2, ubp_av=0xbffff9b4,
init=0x8065630 <_init>, fini=0x8172b40 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>,
stack_end=0xbffff9ac)
at ../sysdeps/generic/libc-start.c:129
/install/php-4.3.1/ is where I installed PHP from. Should it really be running the mod_php4.c file from there?
Can anyone help?
P.S. I also have a separate copy of apache running which is my ssl server. I tried to install PHP into that copy in the same way, and it worked fine!!
Both Apache versions are 1.3.27
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 25 13:00:02 2025 UTC |
I'm having the exact same problem, both with php 4.3.4 and 4.3.5RC2. My Apache version is 1.3.23, and only standard DSO's are loaded. php was in both cases configured with ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs Here's what gdb gives me (gdb) run -X Starting program: /usr/sbin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x405bfc22 in send_php (r=0x80e88d4, display_source_mode=0, filename=0x0) at /usr/src/php-4.3.5RC2/sapi/apache/mod_php4.c:562 562 per_dir_conf = (HashTable *) get_module_config(r->per_dir_config, &php4_module); (gdb) print per_dir_conf $1 = (HashTable *) 0x21 (gdb) print r $2 = (request_rec *) 0x80e88d4 (gdb) print r->per_dir_config $3 = (void *) 0x0 (gdb) print &php4_module $4 = (module *) 0x405fb000 (gdb) bt #0 0x405bfc22 in send_php (r=0x80e88d4, display_source_mode=0, filename=0x0) at /usr/src/php-4.3.5RC2/sapi/apache/mod_php4.c:562 #1 0x405bfe72 in send_parsed_php (r=0x80e88d4) at /usr/src/php-4.3.5RC2/sapi/apache/mod_php4.c:635 #2 0x8054209 in ap_invoke_handler (r=0x80e88d4) at http_config.c:517 #3 0x806962f in process_request_internal (r=0x80e88d4) at http_request.c:1308 #4 0x8069696 in ap_process_request (r=0x80e88d4) at http_request.c:1324 #5 0x80603a0 in child_main (child_num_arg=0) at http_main.c:4565 #6 0x8060561 in make_child (s=0x8094364, slot=0, now=1076179775) at http_main.c:4669 #7 0x80606dc in startup_children (number_to_start=5) at http_main.c:4751 #8 0x8060d6d in standalone_main (argc=2, argv=0xbffff674) at http_main.c:5056 #9 0x80615cc in main (argc=2, argv=0xbffff674) at http_main.c:5401 #10 0x401832eb in __libc_start_main (main=0x8061238 <main>, argc=2, ubp_av=0xbffff674, init=0x804e240 <_init>, fini=0x807ef3c <_fini>, rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xbffff66c) at ../sysdeps/generic/libc-start.c:129