php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45131 *** glibc detected *** php: free(): invalid pointer: 0x080d4a4b ***
Submitted: 2008-05-29 22:18 UTC Modified: 2008-06-06 01:00 UTC
Votes:8
Avg. Score:2.5 ± 1.1
Reproduced:1 of 4 (25.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: oyvind at hvilket dot net Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.2.6 OS: Linux apc 2.6.8-3-686 #1 Tue Dec
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-05-29 22:18 UTC] oyvind at hvilket dot net
Description:
------------
After upgrading from php4 to php5 on my Debian box I cannot use php anylonger. Any web-broswer access just produces a blank page, and trying phpinfo shows half the info (in a web browser). Running the phpinfo from cli produces an invalid pointer and the apache2 error log shows a Segmentation fault.

php5 is installed using apt-get


Actual result:
--------------
apc:/etc/apache2/mods-enabled# php /var/www/info.php 
phpinfo()
PHP Version => 5.2.6-1

System => Linux apc 2.6.8-3-686 #1 Tue Dec 5 21:26:38 UTC 2006 i686
Build Date => May 11 2008 23:06:49
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
additional .ini files parsed => /etc/php5/cli/conf.d/curl.ini,
/etc/php5/cli/conf.d/gd.ini,
/etc/php5/cli/conf.d/mcrypt.ini,
/etc/php5/cli/conf.d/mysql.ini,
/etc/php5/cli/conf.d/mysqli.ini,
/etc/php5/cli/conf.d/pdo.ini,
/etc/php5/cli/conf.d/pdo_mysql.ini

PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps  
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*


This server is protected with the Suhosin Patch 0.9.6.2
Copyright (c) 2006 Hardened-PHP Project


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies


 _______________________________________________________________________


Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDOUT => STDOUT
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 6135 => 6135
expose_php => On => On
extension_dir => /usr/lib/php5/20060613+lfs => /usr/lib/php5/20060613+lfs
file_uploads => On => On
highlight.bg => <font style="color: #FFFFFF">#FFFFFF</font> => <font style="color: #FFFFFF">#FFFFFF</font>
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/share/php:/usr/share/pear => .:/usr/share/php:/usr/share/pear
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 0
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
memory_limit => 32M => 32M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays*** glibc detected *** php: free(): invalid pointer: 0x080d4a4b ***
======= Backtrace: =========
/lib/libc.so.6[0x404fb107]
/lib/libc.so.6(cfree+0x89)[0x404fcda9]
php(timelib_builtin_db+0x2e4)[0x80d4d24]
php(zm_info_date+0xdd)[0x80bc11d]
php(php_info_print_module+0x54)[0x8210d44]
php[0x8210e54]
php(zend_hash_apply+0x4c)[0x82cb0fc]
php(php_print_info+0x697)[0x8211f77]
php(zif_phpinfo+0x69)[0x8212db9]
php[0x82f19bb]
php(execute+0x15f)[0x82e13cf]
php(zend_execute_scripts+0x183)[0x82bffc3]
php(php_execute_script+0x1c3)[0x8276f73]
php(main+0x15ee)[0x83538ae]
/lib/libc.so.6(__libc_start_main+0xe0)[0x404aa450]
php[0x8097cb1]
======= Memory map: ========
08048000-08521000 r-xp 00000000 03:05 391018     /usr/bin/php5
08521000-08558000 rw-p 004d8000 03:05 391018     /usr/bin/php5
08558000-086e2000 rw-p 08558000 00:00 0 
40000000-4001a000 r-xp 00000000 03:01 321310     /lib/ld-2.7.so
4001a000-4001c000 rw-p 00019000 03:01 321310     /lib/ld-2.7.so
4001c000-4001d000 rw-p 4001c000 00:00 0 
40023000-4002c000 r-xp 00000000 03:01 321319     /lib/libcrypt-2.7.so
4002c000-4002e000 rw-p 00008000 03:01 321319     /lib/libcrypt-2.7.so
4002e000-40055000 rw-p 4002e000 00:00 0 
40055000-40069000 r-xp 00000000 03:05 1141356    /usr/lib/libz.so.1.2.3.3
40069000-4006a000 rw-p 00013000 03:05 1141356    /usr/lib/libz.so.1.2.3.3
4006a000-4006b000 rw-p 4006a000 00:00 0 
4006b000-4006d000 r-xp 00000000 03:05 1141094    /usr/lib/libpanel.so.5.6
4006d000-4006e000 rw-p 00001000 03:05 1141094    /usr/lib/libpanel.so.5.6
4006e000-4009c000 r-xp 00000000 03:01 321314     /lib/libncurses.so.5.6
4009c000-4009f000 rw-p 0002d000 03:01 321314     /lib/libncurses.so.5.6
4009f000-400dd000 r-xp 00000000 03:05 1141124    /usr/lib/i686/cmov/libssl.so.0.9.8
400dd000-400e1000 rw-p 0003e000 03:05 1141124    /usr/lib/i686/cmov/libssl.so.0.9.8
400e1000-4020a000 r-xp 00000000 03:05 1140499    /usr/lib/libdb-4.6.so
4020a000-4020d000 rw-p 00129000 03:05 1140499    /usr/lib/libdb-4.6.so
4020d000-4021c000 r-xp 00000000 03:01 321293     /lib/libbz2.so.1.0.3
4021c000-4021d000 rw-p 0000f000 03:01 321293     /lib/libbz2.so.1.0.3
4021d000-40243000 r-xp 00000000 03:05 1141400    /usr/lib/libpcre.so.3.12.1
40243000-40244000 rw-p 00025000 03:05 1141400    /usr/lib/libpcre.so.3.12.1
40244000-40245000 rw-p 40244000 00:00 0 
40245000-40253000 r-xp 00000000 03:01 321340     /lib/libresolv-2.7.so
40253000-40255000 rw-p 0000d000 03:01 321340     /lib/libresolv-2.7.so
40255000-40257000 rw-p 40255000 00:00 0 
40257000-4027a000 r-xp 00000000 03:01 321321     /lib/libm-2.7.so
4027a000-4027c000 rw-p 00022000 03:01 321321     /lib/libm-2.7.so
4027c000-4027e000 r-xp 00000000 03:01 321320     /lib/libdl-2.7.so
4027e000-40280000 rw-p 00001000 03:01 321320     /lib/libdl-2.7.so
40280000-40293000 r-xp 00000000 03:01 321324     /lib/libnsl-2.7.so
40293000-40295000 rw-p 00012000 03:01 321324     /lib/libnsl-2.7.so
40295000-40297000 rw-p 40295000 00:00 0 
40297000-402bf000 r-xp 00000000 03:05 1140538    /usr/lib/libgssapi_krb5.so.2.2
402bf000-402c0000 rw-p 00028000 03:05 1140538    /usr/lib/libgssapi_krb5.so.2.2
402c0000-4034c000 r-xp 00000000 03:05 1141373    /usr/lib/libkrb5.so.3.3
4034c000-4034e000 rw-p 0008c000 03:05 1141373    /usr/lib/libkrb5.so.3.3
4034e000-4034f000 rw-p 4034e000 00:00 0 
4034f000-40371000 r-xp 00000000 03:05 1140539    /usr/lib/libk5crypto.so.3.1
40371000-40372000 rw-p 00022000 03:05 1140539    /usr/lib/libk5crypto.so.3.1
40372000-40374000 r-xp 00000000 03:01 321301     /lib/libcom_err.so.2.1
40374000-40375000 rw-p 00001000 03:01 321301     /lib/libcom_err.so.2.1
40375000-4048e000 r-xp 00000000 03:05 1141035    /usr/lib/libxml2.so.2.6.32
4048e000-40493000 rw-p 00119000 03:05 1141035    /usr/lib/libxml2.so.2.6.32
40493000-40494000 rw-p 40493000 00:00 0 
40494000-405c3000 r-xp 00000000 03:01 321316     /lib/libc-2.7.so
405c3000-405c4000 r--p 0012f000 03:01 321316     /lib/libc-2.7.so
405c4000-405c6000 rw-p 00130000 03:01 321316     /lib/libc-2.7.so
405c6000-405c9000 rw-p 405c6000 00:00 0 
405c9000-406fa000 r-xp 00000000 03:05 1141122    /usr/lib/i686/cmov/libcrypto.so.0.9.8
406fa000-40710000 rw-p 00131000 03:05 1141122    /usr/lib/i686/cmov/libcrypto.so.0.9.8
40710000-40714000 rw-p 40710000 00:00 0 
40714000-40727000 r-xp 00000000 03:01 321336     /lib/libpthread-2.7.so
40727000-40729000 rw-p 00012000 03:01 321336     /lib/libpthread-2.7.so
40729000-4072b000 rw-p 40729000 00:00 0 
4072b000-40732000 r-xp 00000000 03:05 1141374    /usr/lib/libkrb5support.so.0.1
40732000-40733000 rw-p 00006000 03:05 1141374    /usr/lib/libkrb5support.so.0.1
40733000-40735000 r-xp 00000000 03:01 321361     /lib/libkeyutils-1.2.so
40735000-40736000 rw-p 00001000 03:01 321361     /lib/libkeyutils-1.2.so
40736000-40738000 rw-p 40736000 00:00 0 
40739000-4073b000 rw-p 40739000 00:00 0 
40779000-407ce000 r--p 00000000 03:05 1157015    /usr/lib/locale/locale-archive
407ce000-407db000 r-xp 00000000 03:05 32770      /usr/lib/php5/20060613+lfs/curl.so
407db000-407dc000 rw-p 0000d000 03:05 32770      /usr/lib/php5/20060613+lfs/curl.so
407e2000-40822000 r-xp 00000000 03:05 1141397    /usr/lib/libcurl.so.4.0.1
40822000-40823000 rw-p 00040000 03:05 1141397    /usr/lib/libcurl.so.4.0.1
40823000-40824000 rw-p 40823000 00:00 0 
40824000-4082f000 r-xp 00000000 03:05 1141393    /usr/lib/libcares.so.2.0.0
4082f000-40830000 rw-p 0000a000 03:05 1141393    /usr/lib/libcares.so.2.0.0
40830000-4085f000 r-xp 00000000 03:05 1141246    /usr/lib/libidn.so.11.5.19
4085f000-40860000 rw-p 0002f000 03:05 1141246    /usr/lib/libidn.so.11.5.19
40860000-40880000 r-xp 00000000 03:05 1141395    /usr/lib/libssh2.so.1.0.0
40880000-40881000 rw-p 0001f000 03:05 1141395    /usr/lib/libssh2.so.1.0.0
40881000-408be000 r-xp 00000000 03:05 1141249    /usr/lib/libldap_r-2.4.so.2.0.3
408be000-408c0000 rw-p 0003d000 03:05 1141249    /usr/lib/libldap_r-2.4.so.2.0.3
408c0000-408c1000 rw-p 408c0000 00:00 0 
408c1000-40927000 r-xp 00000000 03:05 1140516    /usr/lib/libgcrypt.so.11.4.3
40927000-40929000 rw-p 00065000 03:05 1140516    /usr/lib/libgcrypt.so.11.4.3
40929000-4092c000 r-xp 00000000 03:05 1140560    /usr/lib/libgpg-error.so.0.3.0
4092c000-4092d000 rw-p 00002000 03:05 1140560    /usr/lib/libgpg-error.so.0.3.0
4092d000-40939000 r-xp 00000000 03:05 1140642    /usr/lib/liblber-2.4.so.2.0.3
40939000-4093a000 rw-p 0000c000 03:05 1140642    /usr/lib/liblber-2.4.so.2.0.3
4093a000-40950000 r-xp 00000000 03:05 1141371    /usr/lib/libsasl2.so.2.0.22
40950000-40951000 rw-p 00015000 03:05 1141371    /usr/lib/libsasl2.so.2.0.22
40951000-409c4000 r-xp 00000000 03:05 1141364    /usr/lib/libgnutls.so.26.1.3
409c4000-409ca000 rw-p 00072000 03:05 1141364    /usr/lib/libgnutls.so.26.1.3
409ca000-409d9000 r-xp 00000000 03:05 1140393    /usr/lib/libtasn1.so.3.0.15
409d9000-409da000 rw-p 0000e000 03:05 1140393    /usr/lib/libtasn1.so.3.0.15
409da000-409f0000 r-xp 00000000 03:05 32771      /usr/lib/php5/20060613+lfs/gd.so
409f0000-409f4000 rw-p 00015000 03:05 32771      /usr/lib/php5/20060613+lfs/gd.so
409fa000-40a18000 r-xp 00000000 03:05 1140391    /usr/lib/libgd.so.2.0.0
40a18000-40a38000 rw-p 0001d000 03:05 1140391    /usr/lib/libgd.so.2.0.0
40a38000-40a3c000 rw-p 40a38000 00:00 0 
40a3c000-40a78000 r-xp 00000000 03:05 1141586    /usr/lib/libt1.so.5.1.0
40a78000-40a7c000 rw-p 0003b000 03:05 1141586    /usr/lib/libt1.so.5.1.0
40a7c000-40a91000 rw-p 40a7c000 00:00 0 
40a91000-40afc000 r-xp 00000000 03:05 1141404    /usr/lib/libfreetype.so.6.3.16
40afc000-40b00000 rw-p 0006a000 03:05 1141404    /usr/lib/libfreetype.so.6.3.16
40b00000-40be8000 r-xp 00000000 03:05 1140553    /usr/lib/libX11.so.6.2.0
40be8000-40bec000 rw-p 000e8000 03:05 1140553    /usr/lib/libX11.so.6.2.0
40bec000-40bfb000 r-xp 00000000 03:05 1140571    /usr/lib/libXpm.so.4.11.0
40bfb000-40bfc000 rw-p 0000e000 03:05 1140571    /usr/lib/libXpm.so.4.11.0
40bfc000-40c1e000 r-xp 00000000 03:05 1141608    /usr/lib/libpng12.so.0.15.0
40c1e000-40c1f000 rw-p 00021000 03:05 1141608    /usr/lib/libpng12.so.0.15.0
40c1f000-40c3e000 r-xp 00000000 03:05 1141652    /usr/lib/libjpeg.so.62.0.0
40c3e000-40c3f000 rw-p 0001e000 03:05 1141652    /usr/lib/libjpeg.so.62.0.0
40c3f000-40c62000 r-xp 00000000 03:05 1140614    /usr/lib/libfontconfig.so.1.2.0
40c62000-40c6a000 rw-p 00023000 03:05 1140614    /usr/lib/libfontconfig.so.1.2.0
40c6a000-40c6c000 r-xp 00000000 03:05 1140215    /usr/lib/libXau.so.6.0.0
40c6c000-40c6d000 rw-p 00001000 03:05 1140215    /usr/lib/libXau.so.6.0.0
40c6d000-40c71000 r-xp 00000000 03:05 1140424    /usr/lib/libXdmcp.so.6.0.0
40c71000-40c72000 rw-p 00003000 03:05 1140424    /usr/lib/libXdmcp.so.6.0.0
40c72000-40c90000 r-xp 00000000 03:05 1140512    /usr/lib/libexpat.so.1.0.0
40c90000-40c92000 rw-p 0001d000 03:05 1140512    /usr/lib/libexpat.so.1.0.0
40c92000-40c9a000 r-xp 00000000 03:05 32772      /usr/lib/php5/20060613+lfs/mcrypt.so
40c9a000-40c9b000 rw-p 00007000 03:05 32772      /usr/lib/php5/20060613+lfs/mcrypt.so
40ca1000-40cc6000 r-xp 00000000 03:05 1141084    /usr/lib/libmcrypt.so.4.4.7
40cc6000-40cc9000 rw-p 00025000 03:05 1141084    /usr/lib/libmcrypt.so.4.4.7
40cc9000-40ccf000 rw-p 40cc9000 00:00 0 
40ccf000-40cd5000 r-xp 00000000 03:05 1141082    /usr/lib/libltdl.so.3.1.6
40cd5000-40cd6000 rw-p 00005000 03:05 1141082    /usr/lib/libltdl.so.3.1.6
40cd6000-40ce0000 r-xp 00000000 03:05 32767      /usr/lib/php5/20060613+lfs/mysql.so
40ce0000-40ce1000 rw-p 0000a000 03:05 32767      /usr/lib/php5/20060613+lfs/mysql.so
40ce7000-40e75000 r-xp 00000000 03:05 1141030    /usr/lib/libmysqlclient_r.so.15.0.0
40e75000-40eb9000 rw-p 0018d000 03:05 1141030    /usr/lib/libmysqlclient_r.so.15.0.0
40eb9000-40eba000 rw-p 40eb9000 00:00 0 
40eba000-40ed1000 r-xp 00000000 03:05 32768      /usr/lib/php5/20060613+lfs/mysqli.so
40ed1000-40ed3000 rw-p 00016000 03:05 32768      /usr/lib/php5/20060613+lfs/mysqli.so
40ed3000-40ee6000 r-xp 00000000 03:05 32765      /usr/lib/php5/20060613+lfs/pdo.so
40ee6000-40ee8000 rw-p 00013000 03:05 32765      /usr/lib/php5/20060613+lfs/pdo.so
40ee8000-40eee000 r-xp 00000000 03:05 32769      /usr/lib/php5/20060613+lfs/pdo_mysql.so
40eee000-40eef000 rw-p 00005000 03:05 32769      /usr/lib/php5/20060613+lfs/pdo_mysql.so
40ef5000-40ef9000 r-xp 00000000 03:05 1140625    /usr/lib/libnss_db-2.2.3.so
40ef9000-40efa000 rw-p 00003000 03:05 1140625    /usr/lib/libnss_db-2.2.3.so
40efa000-40f03000 r-xp 00000000 03:01 321328     /lib/libnss_files-2.7.so
40f03000-40f05000 rw-p 00008000 03:01 321328     /lib/libnss_files-2.7.so
40f05000-40fe6000 r-xp 00000000 03:05 1140584    /usr/lib/libdb-4.3.so
40fe6000-40fe9000 rw-p 000e0000 03:05 1140584    /usr/lib/libdb-4.3.so
40fe9000-40ff5000 r-xp 00000000 03:01 321369     /lib/libgcc_s.so.1
40ff5000-40ff6000 rw-p 0000b000 03:01 321369     /lib/libgcc_s.so.1
41000000-41021000 rw-p 41000000 00:00 0 
41021000-41100000 ---p 41021000 00:00 0 
bfff6000-c0000000 rw-p bfff6000 00:00 0 
ffffe000-fffff000 ---p 00000000 00:00 0 
Aborted

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-29 22:52 UTC] jani@php.net
"This server is protected with the Suhosin Patch 0.9.6.2"

We do not support any PHP installation with this patch. Remove it first.
 [2008-06-06 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".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 17:05:44 2022 UTC