php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10424 apache crash with segmentation fault at end of phpinfo() function call.
Submitted: 2001-04-20 14:00 UTC Modified: 2001-06-03 12:02 UTC
From: jliebert at babel dot fr Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4pl1 OS: AIX 4.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jliebert at babel dot fr
New email:
PHP Version: OS:

 

 [2001-04-20 14:00 UTC] jliebert at babel dot fr
Compiler: C for AIX version 5 (xlc_r)
Web serveur: IBM_HTTP_Server/1.3.6.2 Apache/1.3.7-dev (Unix)
PHP was compiled with this options:

$ ./configure --prefix=/usr/local/php4 \
	      --with-apxs=/local/src/bin/apxs \
	      --with-config-file-path=/usr/local/php4/lib \
	      --with-mysql=/usr/local \
	      --with-exec-dir=/usr/bin \
	      --enable-inline-optimization \
	      --enable-magic-quotes \
              --enable-track-vars \
              --enable-memory-limit \
              --enable-debugger \
              --enable-safe-mode \
              --enable-sigchild \
	      --with-system-regex

I have added this to main/php_config.h to correct some
compilation trouble about undefined functions and 
redefinitions:
#define HAVE_DLFCN_H 1
/* #define HAVE_ALLOCA 1 */
#define HAVE_INT_8_16_32 1

The module is loaded correctly by apache but when a php script is call the script return the result and the 
daemon crash with a segmentation fault (11).

This is the test script:
  phpinfo.php:
  <? phpinfo() ?>

This is the result of dbx when the script is requested:
  # dbx /usr/HTTPServer/bin/httpd
  Type 'help' for help.
  reading symbolic information ...warning: no source compiled with -g

  (dbx) run -f /babel/httpd-dev/conf/httpd.conf -X

  Segmentation fault in _efree at 0xd0dcc294 ($t1)
  0xd0dcc294 (_efree+0x1c) 80630008        lwz   r3,0x8(r3)
  (dbx) quit
  #

Did I need to use other compiler, or something to configure ? did the efree function is bugged under AIX ?

Thanks for help.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-14 14:33 UTC] jmoore@php.net
This is AIX specific, gcc compiles this fine, this bug will be fixed at some point in the future. Dup of 4630.

- James
 [2001-05-14 14:57 UTC] jliebert at babel dot fr
Exact, no more core dump when the module is compiled with gcc 2.95.3.

Thanks.

 [2001-06-03 12:02 UTC] sniper@php.net
This should be fixed in PHP 4.0.6. Please try the
latest release candidate from:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 00:03:34 2022 UTC