php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44250 PHP CLI :: *** glibc detected *** realloc():
Submitted: 2008-02-26 10:29 UTC Modified: 2008-03-19 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: toni at igmweb dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.5 OS: Red Hat Enterprise Linux ES rele
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-02-26 10:29 UTC] toni at igmweb dot com
Description:
------------
I compile php 5.2.5 on a RedHat Enterprise "Linux htsphp1 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux"

Configure an Make runs ok. 
Make test produces a : "*** glibc detected *** realloc(): invalid pointer: 0x0000000000e90ce0 ***" error.

The only Thing that no work is PHP CLI.
If I do a "make install" all works ok. PHP pages on Apache runs ok.

Reproduce code:
---------------
./configure --prefix=/apps/php-5.2.5/ --with-apxs2=/apps/apache2/bin/apxs --enable-libgcc --enable-dmalloc --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/opt/ --with-png-dir=/opt/ --with-ttf --with-t1lib --enable-gd-native-ttf --with-gettext --enable-mbstring --with-mcrypt --with-mhash --with-mysql=/apps/mysql-5.0.51a/ --enable-sockets --with-xmlrpc && make && make test

Actual result:
--------------
Build complete.
Don't forget to run 'make test'.

*** glibc detected *** realloc(): invalid pointer: 0x0000000000e90ce0 ***
*** glibc detected *** realloc(): invalid pointer: 0x0000000000e8fcc0 ***
/bin/sh: line 1: 25052 Aborted                 TEST_PHP_EXECUTABLE=/home/toni/linux_install-R3.5/php-5.2.5/sapi/cli/php TEST_PHP_SRCDIR=/home/toni/linux_install-R3.5/php-5.2.5 CC="gcc" /home/toni/linux_install-R3.5/php-5.2.5/sapi/cli/php -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /home/toni/linux_install-R3.5/php-5.2.5/run-tests.php -c /home/toni/linux_install-R3.5/php-5.2.5/tmp-php.ini -U -d extension_dir=/home/toni/linux_install-R3.5/php-5.2.5/modules/ ` if test "x" != "x"; then for i in ""; do . $i; /home/toni/linux_install-R3.5/php-5.2.5/build/shtool echo -n -- " -d extension=$dlname"; done; fi`
make: [test] Error 134 (ignored)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-26 14:35 UTC] toni at igmweb dot com
After some tests. I found that without "--enable-dmalloc" PHP CLI runs OK.

No more realloc() errors on "make test". But appears a message saying that it found a possible PHP error.

I pasted the text below.

--
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Error message handling (with ZendOptimizer) [tests/run-test/test008.phpt]
Convert warnings to exceptions [tests/lang/038.phpt]
Bug #32828 (Throwing exception in output_callback function with ob_start and ob_end_clean leads to segfault) [tests/lang/bug32828.phpt]
Bug #32290 (calling call_user_func_array() ends in infinite loop within child class) [Zend/tests/bug32290.phpt]
Bug #36268 (Object destructors called even after fatal errors) [Zend/tests/bug36268.phpt]
Bug #41421 (Uncaught exception from a stream wrapper segfaults) [Zend/tests/bug41421.phpt]
easter_date() [ext/calendar/tests/easter_date.phpt]
unixtojd() [ext/calendar/tests/unixtojd.phpt]
date OO cloning [ext/date/tests/oo_002.phpt]
Bug #38474 (getAttribute select attribute by order, even when prefixed) (OK to fail with libxml2 < 2.6.2x) [ext/dom/tests/bug38474.phpt]
Bug #42082 (NodeList length zero should be empty) [ext/dom/tests/bug42082.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
Bug #41567 (json_encode() double conversion is inconsistent with PHP) [ext/json/tests/bug41567.phpt]
SPL: spl_autoload() with methods [ext/spl/tests/spl_autoload_005.phpt]
SPL: spl_autoload() with inaccessible methods [ext/spl/tests/spl_autoload_007.phpt]
SPL: spl_autoload() with exceptions [ext/spl/tests/spl_autoload_008.phpt]
Test array_map() function [ext/standard/tests/array/array_map.phpt]
Test array_reverse() function : usage variations - assoc. array with diff. value for 'array' argument [ext/standard/tests/array/array_reverse_variation5.phpt]
Test array_unshift() function : usage variations - assoc. array with diff values for 'array' argument [ext/standard/tests/array/array_unshift_variation5.phpt]
Bug #35821 (array_map() segfaults when exception is throwed from the callback) [ext/standard/tests/array/bug35821.phpt]
Bug #38450 (constructor is not called for classes used in userspace stream wrappers) [ext/standard/tests/file/bug38450_2.phpt]
proc_open() regression test 1 (proc_open() leak) [ext/standard/tests/file/proc_open01.phpt]
register_shutdown_function() & __call [ext/standard/tests/general_functions/010.phpt]
Bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP) [ext/standard/tests/general_functions/bug32647.phpt]
Bug #40398 (parent and self callback functions erroneously called statically) [ext/standard/tests/general_functions/bug40398.phpt]
Test is_callable() function [ext/standard/tests/general_functions/is_callable.phpt]
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) [ext/standard/tests/strings/htmlentities02.phpt] (warn: possibly braindead libc)
htmlentities() test 4 (setlocale / ja_JP.EUC-JP) [ext/standard/tests/strings/htmlentities04.phpt] (warn: possibly braindead libc)
htmlentities() test 15 (setlocale / KOI8-R) [ext/standard/tests/strings/htmlentities15.phpt] (warn: possibly braindead libc)
Test vsprintf() function : usage variations - string formats with non-string values [ext/standard/tests/strings/vsprintf_variation8.phpt]
Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-* [ext/xml/tests/bug32001.phpt]
CLI long options [sapi/cli/tests/015.phpt]
=====================================================================

You may have found a problem in PHP.
We would like to send this report automatically to the
PHP QA team, to give us a better understanding of how
the test cases are doing. If you don't want to send it
immediately, you can choose "s" to save the report to
a file that you can send us later.
Do you want to send this report now? [Yns]: Y
 [2008-03-11 22:10 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

And note: --enable-dmalloc is for debugging purposes only! Do not use if you don't really need it.
 [2008-03-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
 [2008-09-29 18:45 UTC] dbln at keerub dot ee
I still get the exact same result trying to compile php 5.2.6 on centos 4.7 (RHEL clone). Runing configure with or without --enable-dmalloc does not change the outcome.

Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-* [ext/xml/tests/bug32001.phpt]
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC