php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16129 phpinfo() makes apache segfault
Submitted: 2002-03-17 19:52 UTC Modified: 2002-06-27 21:19 UTC
From: veins at skreel dot org Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.1.2 OS: Unix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: veins at skreel dot org
New email:
PHP Version: OS:

 

 [2002-03-17 19:52 UTC] veins at skreel dot org
phpinfo() makes apache child process segfault on my OpenBSD-3.0-stable system, people I know experienced the same on Linux and FreeBSD.

script:
<?
  phpinfo();
?>

Some errors that occur due to that (I just put each entry once, but most of them appear hundreds of times in my logs):

[Sat Mar  9 10:28:34 2002] [notice] child pid 16046 exit signal Segmentation fault (11)
httpd in free(): warning: recursive call.
httpd in malloc(): warning: recursive call.
FATAL:  emalloc():  Unable to allocate 10 bytes
FATAL:  emalloc():  Unable to allocate 12 bytes
httpd in realloc(): warning: recursive call.

Ever since I disabled the use of phpinfo() no more of these errors seem to appear, if I re-enable it, they appear again. I don't know exactly when the free, malloc, emalloc and realloc problems happen, however the segmentation fault happens as I send the request for the script.

my actual configuration is visible at:
http://www.skreel.org/info.php

(this is a cached page so it won't segfault  :p)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-27 20:06 UTC] sniper@php.net
Please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

 [2002-06-27 20:35 UTC] veins at skreel dot org
I can't test it because i don't have a test box right now and don't feel like installing a snapshot on the prod.
sorry
 [2002-06-27 21:19 UTC] sniper@php.net
Well, I can't reproduce this (never have) so I'm closing it.
Feel free to reopen if you get this with 4.2.1 or any future
release.

And if this happens, try produce a gdb backtrace. Instructions how to do it can be found here:

http://bugs.php.net/bugs-generating-backtrace.php

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 18:00:02 2025 UTC