php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9235 Core dump when execute phpinfo() function if PHP run as apache module
Submitted: 2001-02-12 21:50 UTC Modified: 2002-09-30 19:11 UTC
From: ishigaki-ml at factory dot gr dot jp Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.17 OS: FreeBSD 2.2.8-RELEASE / linux-2.
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: ishigaki-ml at factory dot gr dot jp
New email:
PHP Version: OS:

 

 [2001-02-12 21:50 UTC] ishigaki-ml at factory dot gr dot jp
<?php
   $aa = is_array($HTTP_POST_VARS);
   phpinfo();
?>

That's all.
FreeBSD : exit signal Bus error (10)
Linux : SEGV

There is no crash if 
   $aa = is_array($HTTP_POST_VARS);
changes to
   $aa = is_array($HTTP_GET_VARS);

Environment(FreeBSD):
FreeBSD 2.2.8-RELEASE
Apache 1.3.14
  ./configure \
  --enable-module=most --enable-module=auth_db --disable-module=auth_dbm \
  --enable-shared=max
PHP 3.0.18 (not 3.0.17)
  ./configure \
  --with-apxs=(path) \
  --enable-sysvsem \
  --enable-sysvshm \
  --with-config-file-path=(path) \
  --without-gd
PostgreSQL 6.4.2

Environment(Linux):
Vine 2.0 based linux-2.2.17
Apache-1.3.12
  ./configure --enable-module=so --enable-module=rewrite
php-3.0.15-i18n-ja
  ./configure --with-pgsql --enable-track-vars \
  --with-apxs=/usr/local/apache/bin/apxs --enable-i18n \
  --enable-mbregex --enable-versioning
postgresql-7.0.3
  ./configure  --enable-multibyte=EUC_JP
rpm -qa|grep -w gd
  gd-1.8.3-0vl1
  gd-devel-1.8.3-0vl1
  gd-progs-1.8.3-0vl1
php3.ini is same as php3.ini-dist

It corruped at next of following line (functions/info.c)
if (_php3_hash_find(GLOBAL(active_symbol_table), "HTTP_POST_VARS", sizeof("HTTP_POST_VARS"), (void **) &data) != FAILURE) {

_php3_hash_find says the value is FOUND but ...
data->type says NOT IS_HASH
Why?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 19:11 UTC] hholzgra@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC