php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19020 Segmentation fault
Submitted: 2002-08-21 10:10 UTC Modified: 2002-11-02 01:00 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:2 (50.0%)
From: eelco_dotinga at planet dot nl Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.2.2 OS: AIX 4.3.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: eelco_dotinga at planet dot nl
New email:
PHP Version: OS:

 

 [2002-08-21 10:10 UTC] eelco_dotinga at planet dot nl
while starting apache getting an segmentation fault

dbx output
Segmentation fault in glink.apr_palloc at 0xd0a25ee4 ($t1)
0xd0a25ee4 (apr_palloc+0x8) 800c0000        lwz   r0,0x0(r12)

with httpd -X no crash but php's won't work (no errors in logs)

AIX version 4.3.3 ML10
gcc 3.1.1
apache 2.0.40
php cvs stable version 08/20/2002

tnx in advance 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-21 11:14 UTC] kalowsky@php.net
A) Whats your configure line?
B) can you build us a backtrace by adding debug symbols to PHP?
 [2002-08-21 11:28 UTC] eelco_dotinga at planet dot nl
A) configure line:
./configure --with-mysql --with-apxs=/usr/local/apache2

B) can you be more specific what kind of info you want. I'm guessing --enable-debug. I'm trying that but it will take a litte time because my machine isn't a fast one. I didn't install gdb yet.

Ill get back to you after the new compalition
 [2002-08-21 11:31 UTC] eelco_dotinga at planet dot nl
OOPS the apxs bit fell off this is the correct line

./configure --with-mysql --with-apxs=/usr/local/apache2/bin/apxs
 [2002-08-21 11:52 UTC] kalowsky@php.net
Please realize that Apache2 support in PHP is extremely experimental, and is not assured to work.
 [2002-08-21 11:54 UTC] nohn@php.net
If you use apache2 it has to be --with-apxs2
 [2002-08-21 12:50 UTC] eelco_dotinga at planet dot nl
you' right about apxs2 (another typo from me). I did use apxs2 on configure line so the correct line I used would be:
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs

And yes I know its all experimental what I'm doing, but why then you give warnings about static modules and why are the guys from apache telling me that apache2 is the best version to use. 
And I figured you still want to know about failures and successes of the stuff youre cooking.
 [2002-08-21 13:02 UTC] eelco_dotinga at planet dot nl
output 
#dbx httpd
(dbx) run

Segmentation fault in create_php_config at line 196 in file "" ($t1)
could not read "apache_config.c"

now its also crash with httpd -X
only change is added --enable-debug with configure
 [2002-08-21 13:32 UTC] sander@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-08-21 17:25 UTC] eelco_dotinga at planet dot nl
hmm, somehow I aspected that answer. I will try it tomorrow. I'm in different timezone. I let you know if it has been fixed. 

tnx
 [2002-08-22 06:01 UTC] eelco_dotinga at planet dot nl
:-( no dice newer gives the same fault. So now what the do? 
any suggestions?
 [2002-08-22 07:42 UTC] sander@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2002-08-22 11:06 UTC] eelco_dotinga at planet dot nl
output from gdb as you can see 

#gdb httpd
GNU gdb 5.2.1
Copyright 2002 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 "powerpc-ibm-aix4.3.3.0"...
(gdb) run
Starting program: /usr/local/apache2/bin/httpd

Program received signal SIGSEGV, Segmentation fault.
0xd1088d6c in apr_palloc () from /usr/local/apache2/modules/libphp4.so

so far nothing has been changed if you look to the first comment.

so more suggestions
 [2002-08-22 11:10 UTC] eelco_dotinga at planet dot nl
and the next bit 
(gdb) bt
#0  0xd1088d6c in apr_palloc () from /usr/local/apache2/modules/libphp4.so
#1  0xd1088cb0 in create_php_config () from /usr/local/apache2/modules/libphp4.so
#2  0x1000df34 in ap_single_module_configure (p=0x2002f000, s=0x2002ed80, m=0x200285c0) at config.c:1822
#3  0x10054c20 in load_module (cmd=0x2ff22988, dummy=0x200b183c, modname=0x2006bd40 "php4_module", filename=0x2002f000 " \006?@ \v\030<")
    at mod_so.c:335
#4  0x1000b7e4 in invoke_cmd (cmd=0x200028a0, parms=0x2ff22988, mconfig=0x2ff208d8, args=0x2ff20968 "") at config.c:736
#5  0x1000ce44 in execute_now (cmd_line=0x2006bce8 "LoadModule", args=0x2ff20943 "php4_module        modules/libphp4.so", parms=0x2ff22988,
    p=0xf020ce1c, ptemp=0x2006c098, sub_tree=0x2ff208d8, parent=0x200b8214) at config.c:1342
#6  0x1000c300 in ap_build_config_sub (p=0x200285c0, temp_pool=0x200661e0, l=0x200b183c "\0011}\224", parms=0x2ff22988, current=0x2ff22938,
    curr_parent=0x2ff2293c, conftree=0x20000fa4) at config.c:939
#7  0x1000c818 in ap_build_config (parms=0x2ff22988, p=0x200285c0, temp_pool=0x200661e0, conftree=0x20000fa4) at config.c:1146
#8  0x1000d3cc in ap_process_resource_config (s=0x2002ed80, fname=0x20069600 "/usr/local/apache2/conf/httpd.conf", conftree=0x20000fa4,
    p=0x200285c0, ptemp=0x200661e0) at config.c:1527
#9  0x1000de24 in ap_read_config (process=0x200b8214, ptemp=0x200661e0, filename=0x100686bc "conf/httpd.conf", conftree=0x20000fa4)
    at config.c:1805
#10 0x10001024 in main (argc=1, argv=0x2ff22c50) at main.c:557
#11 0x100001dc in __start ()
 [2002-08-22 11:15 UTC] eelco_dotinga at planet dot nl
and the last bit

(gdb) frame 4
#4  0x1000b7e4 in invoke_cmd (cmd=0x200028a0, parms=0x2ff22988, mconfig=0x2ff208d8, args=0x2ff20968 "") at config.c:736
736     config.c: No such file or directory.
        in config.c
 [2002-08-22 11:20 UTC] rasmus@php.net
You really should be using php4.3-dev (latest unstable snapshot) if you are going to be playing with Apache 2.0

Also, which mpm are you using for Apache2?
 [2002-08-22 11:45 UTC] eelco_dotinga at planet dot nl
I hope this tell's you enough

# more php_version.h
/* automatically generated by configure */
/* edit configure.in to change version number */
#define PHP_MAJOR_VERSION 4
#define PHP_MINOR_VERSION 3
#define PHP_RELEASE_VERSION 0
#define PHP_EXTRA_VERSION "-dev"
#define PHP_VERSION "4.3.0-dev"

php4-200208211200

apache info:

./httpd -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c
# ./httpd -v
Server version: Apache/2.0.40
Server built:   Aug 16 2002 16:40:35
# ./httpd -V
Server version: Apache/2.0.40
Server built:   Aug 16 2002 16:40:35
Server's Module Magic Number: 20020628:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

apcache configure line 
./configure --enable-so --enable-cgi
so I guess the mpm would be prefork
 [2002-09-23 08:43 UTC] shark at hoflink dot com
I am having this same issue with solaris 2.7 and php version 4.2.3.  It seems if I remove the line that calls the apache module . . . Apache starts up fine.
 [2002-10-17 17:54 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC