View Issue Details

IDProjectCategoryView StatusLast Update
0000526XdebugUsage problems (Wrong Results)public2010-05-01 16:05
ReporteravetisAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.0.0dev 
Target Version2.1.0RC1Fixed in Version 
Summary0000526: php cli can't load xdebug module
DescriptionWhen running the php cli with the xdebug module activated, I've got an error output and php exits with 134 as errcode.

I've compiled both php and xdebug myself.

PHP v. 5.3.2RC1
Xdebug: 2.0.5 from svn trunk (r.3213)
Additional Information--------- [output from php CLI] ----------

>>> php
*** glibc detected *** -: free(): invalid pointer: 0x00007fbf49a12210 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fbf4c1b6928]
/lib/libc.so.6(cfree+0x76)[0x7fbf4c1b8a36]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so[0x7fbf49e802ee]
-(zend_alter_ini_entry_ex+0x20b)[0x9604a3]
-(zend_alter_ini_entry+0x4c)[0x960296]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so(xdebug_env_key+0x9a)[0x7fbf49e8063d]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so(xdebug_env_config+0x23)[0x7fbf49e80662]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so(zm_activate_xdebug+0x18)[0x7fbf49e81404]
-[0x94f22d]
-(zend_hash_apply+0x7e)[0x956c5b]
-[0x944f80]
-(php_request_startup+0x218)[0x8c6ac5]
-[0xa3439c]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fbf4c1611a6]
-[0x439b69]
======= Memory map: ========
00400000-00efd000 r-xp 00000000 03:01 402948 /usr/local/bin/php
010fc000-011a6000 rw-p 00afc000 03:01 402948 /usr/local/bin/php
011a6000-011c6000 rw-p 011a6000 00:00 0
7fbf49917000-7fbf49b63000 rwxp 7fbf49917000 00:00 0
7fbf49b63000-7fbf49b6d000 r-xp 00000000 03:01 635564 /lib/libnss_files-2.7.so
7fbf49b6d000-7fbf49d6d000 ---p 0000a000 03:01 635564 /lib/libnss_files-2.7.so
7fbf49d6d000-7fbf49d6f000 rw-p 0000a000 03:01 635564 /lib/libnss_files-2.7.so
7fbf49d6f000-7fbf49d71000 rwxp 7fbf49d6f000 00:00 0
7fbf49d71000-7fbf49e75000 rwxp 7fbf49d71000 00:00 0
7fbf49e75000-7fbf49ea8000 r-xp 00000000 03:01 489068 /usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so
7fbf49ea8000-7fbf4a0a7000 ---p 00033000 03:01 489068 /usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so
7fbf4a0a7000-7fbf4a0ab000 rw-p 00032000 03:01 489068 /usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so
7fbf4a0ab000-7fbf4a1d8000 rwxp 7fbf4a0ab000 00:00 0
7fbf4a1d8000-7fbf4a521000 r--p 00000000 03:01 407957 /usr/lib/locale/locale-archive
7fbf4a521000-7fbf4a530000 r-xp 00000000 03:01 394232 /usr/lib/libtasn1.so.3.0.15
7fbf4a530000-7fbf4a730000 ---p 0000f000 03:01 394232 /usr/lib/libtasn1.so.3.0.15
7fbf4a730000-7fbf4a731000 rw-p 0000f000 03:01 394232 /usr/lib/libtasn1.so.3.0.15
7fbf4a731000-7fbf4a74a000 r-xp 00000000 03:01 394330 /usr/lib/libsasl2.so.2.0.22
7fbf4a74a000-7fbf4a94a000 ---p 00019000 03:01 394330 /usr/lib/libsasl2.so.2.0.22
7fbf4a94a000-7fbf4a94b000 rw-p 00019000 03:01 394330 /usr/lib/libsasl2.so.2.0.22
7fbf4a94b000-7fbf4a94e000 r-xp 00000000 03:01 394219 /usr/lib/libgpg-error.so.0.3.0
7fbf4a94e000-7fbf4aa4d000 ---p 00003000 03:01 394219 /usr/lib/libgpg-error.so.0.3.0
7fbf4aa4d000-7fbf4aa4e000 rw-p 00002000 03:01 394219 /usr/lib/libgpg-error.so.0.3.0
7fbf4aa4e000-7fbf4aaf5000 r-xp 00000000 03:01 392150 /usr/lib/libgnutls.so.26.4.6
7fbf4aaf5000-7fbf4acf5000 ---p 000a7000 03:01 392150 /usr/lib/libgnutls.so.26.4.6
7fbf4acf5000-7fbf4ad00000 rw-p 000a7000 03:01 392150 /usr/lib/libgnutls.so.26.4.6
7fbf4ad00000-7fbf4ad45000 r-xp 00000000 03:01 395593 /usr/lib/libldap_r-2.4.so.2.1.0
7fbf4ad45000-7fbf4af44000 ---p 00045000 03:01 395593 /usr/lib/libldap_r-2.4.so.2.1.0
7fbf4af44000-7fbf4af47000 rw-p 00044000 03:01 395593 /usr/lib/libldap_r-2.4.so.2.1.0
7fbf4af47000-7fbf4af49000 rw-p 7fbf4af47000 00:00 0
7fbf4af49000-7fbf4af57000 r-xp 00000000 03:01 395592 /usr/lib/liblber-2.4.so.2.1.0
7fbf4af57000-7fbf4b157000 ---p 0000e000 03:01 395592 /usr/lib/liblber-2.4.so.2.1.0
7fbf4b157000-7fbf4b158000 rw-p 0000e000 03:01 395592 /usr/lib/liblber-2.4.so.2.1.0
7fbf4b158000-7fbf4b189000 r-xp 00000000 03:01 395589 /usr/lib/libidn.so.11.5.37
7fbf4b189000-7fbf4b389000 ---p 00031000 03:01 395589 /usr/lib/libidn.so.11.5.37
7fbf4b389000-7fbf4b38a000 rw-p 00031000 03:01 395589 /usr/lib/libidn.so.11.5.37
7fbf4b38a000-7fbf4b38c000 r-xp 00000000 03:01 635241 /lib/libkeyutils-1.2.so
7fbf4b38c000-7fbf4b58b000 ---p 00002000 03:01 635241 /lib/libkeyutils-1.2.so
7fbf4b58b000-7fbf4b58c000 rw-p 00001000 03:01 635241 /lib/libkeyutils-1.2.so
7fbf4b58c000-7fbf4b593000 r-xp 00000000 03:01 394817 /usr/lib/libkrb5support.so.0.1
7fbf4b593000-7fbf4b793000 ---p 00007000 03:01 394817 /usr/lib/libkrb5support.so.0.1
7fbf4b793000-7fbf4b794000 rw-p 00007000 03:01 394817 /usr/lib/libkrb5support.so.0.1
7fbf4b794000-7fbf4b7bc000 r-xp 00000000 03:01 394272 /usr/lib/libpcre.so.3.12.1
7fbf4b7bc000-7fbf4b9bb000 ---p 00028000 03:01 394272 /usr/lib/libpcre.so.3.12.1
7fbf4b9bb000-7fbf4b9bc000 rw-p 00027000 03:01 394272 /usr/lib/libpcre.so.3.12.1
7fbf4b9bc000-7fbf4ba21000 r-xp 00000000 03:01 394226 /usr/lib/libgcrypt.so.11.4.4
7fbf4ba21000-7fbf4bc20000 ---p 00065000 03:01 394226 /usr/lib/libgcrypt.so.11.4.4
7fbf4bc20000-7fbf4bc23000 rw-p 00064000 03:01 394226 /usr/lib/libgcrypt.so.11.4.4
7fbf4bc23000-7fbf4bd14000 r-xp 00000000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7fbf4bd14000-7fbf4bf13000 ---p 000f1000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7fbf4bf13000-7fbf4bf19000 r--p 000f0000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7fbf4bf19000-7fbf4bf1c000 rw-p 000f6000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7fbf4bf1c000-7fbf4bf2f000 rw-p 7fbf4bf1c000 00:00 0
7fbf4bf2f000-7fbf4bf3f000 r-xp 00000000 03:01 635582 /lib/libresolv-2.7.so
7fbf4bf3f000-7fbf4c13f000 ---p 00010000 03:01 635582 /lib/libresolv-2.7.so
7fbf4c13f000-7fbf4c141000 rw-p 00010000 03:01 635582 /lib/libresolv-2.7.so
7fbf4c141000-7fbf4c143000 rw-p 7fbf4c141000 00:00 0
7fbf4c143000-7fbf4c28d000 r-xp 00000000 03:01 635581 /lib/libc-2.7.so
7fbf4c28d000-7fbf4c48c000 ---p 0014a000 03:01 635581 /lib/libc-2.7.so
7fbf4c48c000-7fbf4c48f000 r--p 00149000 03:01 635581 /lib/libc-2.7.so
7fbf4c48f000-7fbf4c491000 rw-p 0014c000 03:01 635581 /lib/libc-2.7.so
7fbf4c491000-7fbf4c496000 rw-p 7fbf4c491000 00:00 0
7fbf4c496000-7fbf4c4ac000 r-xp 00000000 03:01 635235 /lib/libgcc_s.so.1
7fbf4c4ac000-7fbf4c6ac000 ---p 00016000 03:01 635235 /lib/libgcc_s.so.1
7fbf4c6ac000-7fbf4c6ad000 rw-p 00016000 03:01 635235 /lib/libgcc_s.so.1
7fbf4c6ad000-7fbf4c7ff000 r-xp 00000000 03:01 394808 /usr/lib/libxml2.so.2.6.32
7fbf4c7ff000-7fbf4c9fe000 ---p 00152000 03:01 394808 /usr/lib/libxml2.so.2.6.32
7fbf4c9fe000-7fbf4ca08000 rw-p 00151000 03:01 394808 /usr/lib/libxml2.so.2.6.32
7fbf4ca08000-7fbf4ca09000 rw-p 7fbf4ca08000 00:00 0
7fbf4ca09000-7fbf4ca42000 r-xp 00000000 03:01 24702 /usr/lib/libxslt.so.1.1.24
7fbf4ca42000-7fbf4cc41000 ---p 00039000 03:01 24702 /usr/lib/libxslt.so.1.1.24
7fbf4cc41000-7fbf4cc43000 rw-p 00038000 03:01 24702 /usr/lib/libxslt.so.1.1.24
7fbf4cc43000-7fbf4cc58000 r-xp 00000000 03:01 635579 /lib/libnsl-2.7.so
7fbf4cc58000-7fbf4ce57000 ---p 00015000 03:01 635579 /lib/libnsl-2.7.so
7fbf4ce57000-7fbf4ce59000 rw-p 00014000 03:01 635579 /lib/libnsl-2.7.so
7fbf4ce59000-7fbf4ce5b000 rw-p 7fbf4ce59000 00:00 0
7fbf4ce5b000-7fbf4d01a000 r-xp 00000000 03:01 397004 /usr/lib/libmysqlclient.so.15.0.0
7fbf4d01a000-7fbf4d21a000 ---p 001bf000 03:01 397004 /usr/lib/libmysqlclient.so.15.0.0
7fbf4d21a000-7fbf4d265000 rw-p 001bf000 03:01 397004 /usr/lib/libmysqlclient.so.15.0.0
7fbf4d265000-7fbf4d266000 rw-p 7fbf4d265000 00:00 0
7fbf4d266000-7fbf4d270000 r-xp 00000000 03:01 24660 /usr/lib/libicuio.so.38.1
7fbf4d270000-7fbf4d470000 ---p 0000a000 03:01 24660 /usr/lib/libicuio.so.38.1
7fbf4d470000-7fbf4d472000 rw-p 0000a000 03:01 24660 /usr/lib/libicuio.so.38.1
7fbf4d472000-7fbf4df48000 r--p 00000000 03:01 24658 /usr/lib/libicudata.so.38.1
7fbf4df48000-7fbf4e147000 ---p 00ad6000 03:01 24658 /usr/lib/libicudata.so.38.1
7fbf4e147000-7fbf4e148000 rw-p 00ad5000 03:01 24658 /usr/lib/libicudata.so.38.1
7fbf4e148000-7fbf4e278000 r-xp 00000000 03:01 24664 /usr/lib/libicuuc.so.38.1
7fbf4e278000-7fbf4e478000 ---p 00130000 03:01 24664 /usr/lib/libicuuc.so.38.1
7fbf4e478000-7fbf4e488000 rw-p 00130000 03:01 24664 /usr/lib/libicuuc.so.38.1
7fbf4e488000-7fbf4e489000 rw-p 7fbf4e488000 00:00 0
7fbf4e489000-7fbf4e5db000 r-xp 00000000 03:01 24659 /usr/lib/libicui18n.so.38.1
7fbf4e5db000-7fbf4e7da000 ---p 00152000 03:01 24659 /usr/lib/libicui18n.so.38.1
7fbf4e7da000-7fbf4e7e6000 rw-p 00151000 03:01 24659 /usr/lib/libicui18n.so.38.1
7fbf4e7e6000-7fbf4e822000 r-xp 00000000 03:01 24531 /usr/lib/libcurl-gnutls.so.4.1.0
7fbf4e822000-7fbf4ea22000 ---p 0003c000 03:01 24531 /usr/lib/libcurl-gnutls.so.4.1.0
7fbf4ea22000-7fbf4ea24000 rw-p 0003c000 03:01 24531 /usr/lib/libcurl-gnutls.so.4.1.0
7fbf4ea24000-7fbf4eb96000 r-xp 00000000 03:01 392206 /usr/lib/libcrypto.so.0.9.8
7fbf4eb96000-7fbf4ed95000 ---p 00172000 03:01 392206 /usr/lib/libcrypto.so.0.9.8
7fbf4ed95000-7fbf4edbb000 rw-p 00171000 03:01 392206 /usr/lib/libcrypto.so.0.9.8
7fbf4edbb000-7fbf4edbf000 rw-p 7fbf4edbb000 00:00 0
7fbf4edbf000-7fbf4ee09000 r-xp 00000000 03:01 392207 /usr/lib/libssl.so.0.9.8
7fbf4ee09000-7fbf4f009000 ---p 0004a000 03:01 392207 /usr/lib/libssl.so.0.9.8
7fbf4f009000-7fbf4f010000 rw-p 0004a000 03:01 392207 /usr/lib/libssl.so.0.9.8
7fbf4f010000-7fbf4f013000 r-xp 00000000 03:01 635285 /lib/libcom_err.so.2.1
7fbf4f013000-7fbf4f212000 ---p 00003000 03:01 635285 /lib/libcom_err.so.2.1
7fbf4f212000-7fbf4f213000 rw-p 00002000 03:01 635285 /lib/libcom_err.so.2.1
7fbf4f213000-7fbf4f237000 r-xp 00000000 03:01 394814 /usr/lib/libk5crypto.so.3.1
7fbf4f237000-7fbf4f437000 ---p 00024000 03:01 394814 /usr/lib/libk5crypto.so.3.1
7fbf4f437000-7fbf4f439000 rw-p 00024000 03:01 394814 /usr/lib/libk5crypto.so.3.1
7fbf4f439000-7fbf4f4d6000 r-xp 00000000 03:01 394816 /usr/lib/libkrb5.so.3.3
7fbf4f4d6000-7fbf4f6d6000 ---p 0009d000 03:01 394816 /usr/lib/libkrb5.so.3.3
7fbf4f6d6000-7fbf4f6da000 rw-p 0009d000 03:01 394816 /usr/lib/libkrb5.so.3.3
7fbf4f6da000-7fbf4f705000 r-xp 00000000 03:01 394813 /usr/lib/libgssapi_krb5.so.2.2
7fbf4f705000-7fbf4f904000 ---p 0002b000 03:01 394813 /usr/lib/libgssapi_krb5.so.2.2
7fbf4f904000-7fbf4f906000 rw-p 0002a000 03:01 394813 /usr/lib/libgssapi_krb5.so.2.2
7fbf4f906000-7fbf4f908000 r-xp 00000000 03:01 635570 /lib/libdl-2.7.so
7fbf4f908000-7fbf4fb08000 ---p 00002000 03:01 635570 /lib/libdl-2.7.so
7fbf4fb08000-7fbf4fb0a000 rw-p 00002000 03:01 635570 /lib/libdl-2.7.so
7fbf4fb0a000-7fbf4fb19000 r-xp 00000000 03:01 24508 /usr/lib/libdmalloc.so.5.5.1
7fbf4fb19000-7fbf4fd18000 ---p 0000f000 03:01 24508 /usr/lib/libdmalloc.so.5.5.1
7fbf4fd18000-7fbf4fd19000 rw-p 0000e000 03:01 24508 /usr/lib/libdmalloc.so.5.5.1
7fbf4fd19000-7fbf4fdfc000 rw-p 7fbf4fd19000 00:00 0
7fbf4fdfc000-7fbf4fe0b000 r-xp 00000000 03:01 635363 /lib/libbz2.so.1.0.4
7fbf4fe0b000-7fbf5000a000 ---p 0000f000 03:01 635363 /lib/libbz2.so.1.0.4
7fbf5000a000-7fbf5000c000 rw-p 0000e000 03:01 635363 /lib/libbz2.so.1.0.4
7fbf5000c000-7fbf50022000 r-xp 00000000 03:01 635584 /lib/libpthread-2.7.so
7fbf50022000-7fbf50222000 ---p 00016000 03:01 635584 /lib/libpthread-2.7.so
7fbf50222000-7fbf50224000 rw-p 00016000 03:01 635584 /lib/libpthread-2.7.so
7fbf50224000-7fbf50228000 rw-p 7fbf50224000 00:00 0
7fbf50228000-7fbf5036c000 r-xp 00000000 03:01 392043 /usr/lib/libdb-4.6.so
7fbf5036c000-7fbf5056c000 ---p 00144000 03:01 392043 /usr/lib/libdb-4.6.so
7fbf5056c000-7fbf50571000 rw-p 00144000 03:01 392043 /usr/lib/libdb-4.6.so
7fbf50571000-7fbf50572000 rw-p 7fbf50571000 00:00 0
7fbf50572000-7fbf50633000 r-xp 00000000 03:01 396529 /usr/lib/libglib-2.0.so.0.1600.6
7fbf50633000-7fbf50833000 ---p 000c1000 03:01 396529 /usr/lib/libglib-2.0.so.0.1600.6
7fbf50833000-7fbf50834000 rw-p 000c1000 03:01 396529 /usr/lib/libglib-2.0.so.0.1600.6
7fbf50834000-7fbf50835000 rw-p 7fbf50834000 00:00 0
7fbf50835000-7fbf50838000 r-xp 00000000 03:01 396532 /usr/lib/libgmodule-2.0.so.0.1600.6
7fbf50838000-7fbf50a37000 ---p 00003000 03:01 396532 /usr/lib/libgmodule-2.0.so.0.1600.6
7fbf50a37000-7fbf50a38000 rw-p 00002000 03:01 396532 /usr/lib/libgmodule-2.0.so.0.1600.6
7fbf50a38000-7fbf50a42000 r-xp 00000000 03:01 24572 /usr/lib/libenchant.so.1.4.2
7fbf50a42000-7fbf50c42000 ---p 0000a000 03:01 24572 /usr/lib/libenchant.so.1.4.2
7fbf50c42000-7fbf50c43000 rw-p 0000a000 03:01 24572 /usr/lib/libenchant.so.1.4.2
7fbf50c43000-7fbf50c64000 r-xp 00000000 03:01 396642 /usr/lib/libjpeg.so.62.0.0
7fbf50c64000-7fbf50e64000 ---p 00021000 03:01 396642 /usr/lib/libjpeg.so.62.0.0
7fbf50e64000-7fbf50e65000 rw-p 00021000 03:01 396642 /usr/lib/libjpeg.so.62.0.0
7fbf50e65000-7fbf50e8a000 r-xp 00000000 03:01 396650 /usr/lib/libpng12.so.0.27.0
7fbf50e8a000-7fbf51089000 ---p 00025000 03:01 396650 /usr/lib/libpng12.so.0.27.0
7fbf51089000-7fbf5108a000 rw-p 00024000 03:01 396650 /usr/lib/libpng12.so.0.27.0
7fbf5108a000-7fbf51109000 r-xp 00000000 03:01 396625 /usr/lib/libfreetype.so.6.3.18
7fbf51109000-7fbf51308000 ---p 0007f000 03:01 396625 /usr/lib/libfreetype.so.6.3.18
7fbf51308000-7fbf5130e000 rw-p 0007e000 03:01 396625 /usr/lib/libfreetype.so.6.3.18
7fbf5130e000-7fbf51390000 r-xp 00000000 03:01 635586 /lib/libm-2.7.so
7fbf51390000-7fbf5158f000 ---p 00082000 03:01 635586 /lib/libm-2.7.so
7fbf5158f000-7fbf51591000 rw-p 00081000 03:01 635586 /lib/libm-2.7.so
7fbf51591000-7fbf515d4000 r-xp 00000000 03:01 24627 /usr/lib/libt1.so.5.1.2
7fbf515d4000-7fbf517d4000 ---p 00043000 03:01 24627 /usr/lib/libt1.so.5.1.2
7fbf517d4000-7fbf517d8000 rw-p 00043000 03:01 24627 /usr/lib/libt1.so.5.1.2
7fbf517d8000-7fbf517ee000 rw-p 7fbf517d8000 00:00 0
7fbf517ee000-7fbf5182c000 r-xp 00000000 03:01 392342 /usr/lib/libgmp.so.3.4.2
7fbf5182c000-7fbf51a2c000 ---p 0003e000 03:01 392342 /usr/lib/libgmp.so.3.4.2
7fbf51a2c000-7fbf51a2d000 rw-p 0003e000 03:01 392342 /usr/lib/libgmp.so.3.4.2
7fbf51a2d000-7fbf51a38000 r-xp 00000000 03:01 635291 /lib/libpam.so.0.81.12
7fbf51a38000-7fbf51c37000 ---p 0000b000 03:01 635291 /lib/libpam.so.0.81.12
7fbf51c37000-7fbf51c38000 rw-p 0000a000 03:01 635291 /lib/libpam.so.0.81.12
7fbf51c38000-7fbf51c3f000 r-xp 00000000 03:01 24685 /usr/lib/libltdl.so.3.1.6
7fbf51c3f000-7fbf51e3e000 ---p 00007000 03:01 24685 /usr/lib/libltdl.so.3.1.6
7fbf51e3e000-7fbf51e3f000 rw-p 00006000 03:01 24685 /usr/lib/libltdl.so.3.1.6
7fbf51e3f000-7fbf51e47000 r-xp 00000000 03:01 635568 /lib/librt-2.7.so
7fbf51e47000-7fbf52046000 ---p 00008000 03:01 635568 /lib/librt-2.7.so
7fbf52046000-7fbf52048000 rw-p 00007000 03:01 635568 /lib/librt-2.7.so
7fbf52048000-7fbf5209c000 r-xp 00000000 03:01 24696 /usr/lib/libtidy-0.99.so.0.0.0
7fbf5209c000-7fbf5229b000 ---p 00054000 03:01 24696 /usr/lib/libtidy-0.99.so.0.0.0
7fbf5229b000-7fbf522a4000 rw-p 00053000 03:01 24696 /usr/lib/libtidy-0.99.so.0.0.0
7fbf522a4000-7fbf522b7000 r-xp 00000000 03:01 24701 /usr/lib/libexslt.so.0.8.13
7fbf522b7000-7fbf524b6000 ---p 00013000 03:01 24701 /usr/lib/libexslt.so.0.8.13
7fbf524b6000-7fbf524b7000 rw-p 00012000 03:01 24701 /usr/lib/libexslt.so.0.8.13
7fbf524b7000-7fbf524cd000 r-xp 00000000 03:01 393314 /usr/lib/libz.so.1.2.3.3
7fbf524cd000-7fbf526cd000 ---p 00016000 03:01 393314 /usr/lib/libz.so.1.2.3.3
7fbf526cd000-7fbf526ce000 rw-p 00016000 03:01 393314 /usr/lib/libz.so.1.2.3.3
7fbf526ce000-7fbf527dc000 r-xp 00000000 03:01 24648 /usr/lib/libc-client.so.2007b.0
7fbf527dc000-7fbf529db000 ---p 0010e000 03:01 24648 /usr/lib/libc-client.so.2007b.0
7fbf529db000-7fbf529e6000 rw-p 0010d000 03:01 24648 /usr/lib/libc-client.so.2007b.0
7fbf529e6000-7fbf529e7000 rw-p 7fbf529e6000 00:00 0
7fbf529e7000-7fbf529ef000 r-xp 00000000 03:01 635578 /lib/libcrypt-2.7.so
7fbf529ef000-7fbf52bef000 ---p 00008000 03:01 635578 /lib/libcrypt-2.7.so
7fbf52bef000-7fbf52bf1000 rw-p 00008000 03:01 635578 /lib/libcrypt-2.7.so
7fbf52bf1000-7fbf52c1f000 rw-p 7fbf52bf1000 00:00 0
7fbf52c1f000-7fbf52c3b000 r-xp 00000000 03:01 635572 /lib/ld-2.7.so
7fbf52c3b000-7fbf52c7b000 rwxp 7fbf52c3b000 00:00 0
7fbf52c7b000-7fbf52cea000 rwxp 7fbf52c7b000 00:00 0
7fbf52cea000-7fbf52cfe000 rw-p 7fbf52cea000 00:00 0
7fbf52cfe000-7fbf52d25000 r-xp 00000000 03:01 24691 /usr/lib/libmcrypt.so.4.4.7
7fbf52d25000-7fbf52e25000 ---p 00027000 03:01 24691 /usr/lib/libmcrypt.so.4.4.7
7fbf52e25000-7fbf52e29000 rw-p 00027000 03:01 24691 /usr/lib/libmcrypt.so.4.4.7
7fbf52e29000-7fbf52e30000 rw-p 7fbf52e29000 00:00 0
7fbf52e30000-7fbf52e37000 rwxp 7fbf52e30000 00:00 0
7fbf52e37000-7fbf52e3a000 rw-p 7fbf52e37000 00:00 0
7fbf52e3a000-7fbf52e3c000 rw-p 0001b000 03:01 635572 /lib/ld-2.7.so
7fff9d653000-7fff9d668000 rw-p 7ffffffea000 00:00 0 [stack]
7fff9d7a6000-7fff9d7a7000 r-xp 7fff9d7a6000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted


--------- [configure options for php 5.3.2RC1] ----------

--enable-debug
--disable-phar
--with-config-file-path=/usr/local/etc/php/
--with-config-file-scan-dir=/usr/local/etc/php/conf.d
--with-apxs2=/usr/bin/apxs2
--disable-cgi
--enable-libgcc
--disable-short-tags
--enable-dmalloc
--with-openssl
--with-pcre-regex
--with-zlib
--with-bz2
--enable-calendar
--with-curl
--with-curlwrappers
--with-db4
--with-enchant
--enable-exif
--enable-ftp
--with-gd
--with-png-dir=/usr/lib
--with-jpeg-dir=/usr/lib
--with-freetype-dir=/usr/lib
--with-t1lib
--enable-gd-native-ttf
--enable-gd-jis-conv
--with-gettext
--with-gmp
--with-mhash
--with-imap
--with-imap-ssl
--with-kerberos
--enable-intl
--enable-mbstring
--with-onig
--with-mcrypt
--with-mysql
--with-mysqli
--enable-embedded-mysqli=shared
--with-pdo-mysql
--disable-posix
--enable-soap
--enable-sockets
--enable-sqlite-utf8
--with-tidy
--enable-wddx
--with-xmlrpc
--with-xsl
--enable-zip
--with-pear
--enable-zend-multibyte
TagsNo tags attached.
Operating SystemDebian 5.0.3 / Linux dev 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux
PHP Version5.3.2

Activities

derick

2010-01-30 16:56

administrator   ~0001295

Can you do the following:

1. install valgrind (apt-get install valgrind)
2. on one shell:
   a. export USE_ZEND_ALLOC=1
   b. valgrind /full/path/to/php yourscript.php (script only if necessary)
3. provide the output of valgrind here

if it crashes, do also do this in the same shell:
4. gdb --args /full/path/to/php yourscript.php (script only if necessary)
5. run on the gdb prompt:
   a. run
   b. when it crashes: bt full
6. and provide that output as well.

avetis

2010-01-30 18:51

reporter   ~0001302

------- [valgrind output]--------

>>> valgrind /usr/local/bin/php
==20237== Memcheck, a memory error detector.
==20237== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==20237== Using LibVEX rev 1854, a library for dynamic binary translation.
==20237== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==20237== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
==20237== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==20237== For more details, rerun with: -v
==20237==
==20237== My PID = 20237, parent PID = 2856. Prog and args are:
==20237== /usr/local/bin/php
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD96375D: OnUpdateIDEKey (xdebug.c:214)
==20237== by 0x9604A2: zend_alter_ini_entry_ex (zend_ini.c:291)
==20237== by 0x960295: zend_alter_ini_entry (zend_ini.c:249)
==20237== by 0xD963AAC: xdebug_env_key (xdebug.c:353)
==20237== by 0xD963AD1: xdebug_env_config (xdebug.c:366)
==20237== by 0xD96634F: zm_activate_xdebug (xdebug.c:920)
==20237== by 0x94F22C: module_registry_request_startup (zend_API.c:2134)
==20237== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==20237== by 0x944F7F: zend_activate_modules (zend.c:857)
==20237== by 0x8C6AC4: php_request_startup (main.c:1414)
==20237== by 0xA3439B: main (php_cli.c:1088)
==20237== Address 0xe030200 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD9664ED: zm_activate_xdebug (xdebug.c:944)
==20237== by 0x94F22C: module_registry_request_startup (zend_API.c:2134)
==20237== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==20237== by 0x944F7F: zend_activate_modules (zend.c:857)
==20237== by 0x8C6AC4: php_request_startup (main.c:1414)
==20237== by 0xA3439B: main (php_cli.c:1088)
==20237== Address 0xe0301f0 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD96622F: xdebug_stack_element_dtor (xdebug.c:871)
==20237== by 0xD979978: xdebug_llist_remove (xdebug_llist.c:127)
==20237== by 0xD9690FC: xdebug_execute (xdebug.c:1784)
==20237== by 0x945F91: zend_execute_scripts (zend.c:1194)
==20237== by 0x8C82E2: php_execute_script (main.c:2233)
==20237== by 0xA344E6: main (php_cli.c:1192)
==20237== Address 0xe0301b0 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD966261: xdebug_stack_element_dtor (xdebug.c:877)
==20237== by 0xD979978: xdebug_llist_remove (xdebug_llist.c:127)
==20237== by 0xD9690FC: xdebug_execute (xdebug.c:1784)
==20237== by 0x945F91: zend_execute_scripts (zend.c:1194)
==20237== by 0x8C82E2: php_execute_script (main.c:2233)
==20237== by 0xA344E6: main (php_cli.c:1192)
==20237== Address 0xe0301c0 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD96375D: OnUpdateIDEKey (xdebug.c:214)
==20237== by 0x95FCEA: zend_restore_ini_entry_cb (zend_ini.c:57)
==20237== by 0x95FE05: zend_restore_ini_entry_wrapper (zend_ini.c:81)
==20237== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==20237== by 0x95FF25: zend_ini_deactivate (zend_ini.c:121)
==20237== by 0x94519E: zend_deactivate (zend.c:919)
==20237== by 0x8C713E: php_request_shutdown (main.c:1606)
==20237== by 0xA34EC8: main (php_cli.c:1373)
==20237== Address 0xe0301e0 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD9669CA: zm_post_zend_deactivate_xdebug (xdebug.c:1047)
==20237== by 0x9451DB: exec_done_cb (zend.c:927)
==20237== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==20237== by 0x9451F9: zend_post_deactivate_modules (zend.c:935)
==20237== by 0x8C717A: php_request_shutdown (main.c:1610)
==20237== by 0xA34EC8: main (php_cli.c:1373)
==20237== Address 0xe0301d0 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== Invalid free() / delete / delete[]
==20237== at 0x4C2130F: free (vg_replace_malloc.c:323)
==20237== by 0xD966A8A: zm_post_zend_deactivate_xdebug (xdebug.c:1066)
==20237== by 0x9451DB: exec_done_cb (zend.c:927)
==20237== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==20237== by 0x9451F9: zend_post_deactivate_modules (zend.c:935)
==20237== by 0x8C717A: php_request_shutdown (main.c:1610)
==20237== by 0xA34EC8: main (php_cli.c:1373)
==20237== Address 0xe0301a0 is not stack'd, malloc'd or (recently) free'd
==20237==
==20237== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 31 from 2)
==20237== malloc/free: in use at exit: 0 bytes in 0 blocks.
==20237== malloc/free: 40 allocs, 47 frees, 1,664 bytes allocated.
==20237== For counts of detected errors, rerun with: -v
==20237== All heap blocks were freed -- no leaks are possible.






------- [gdb run output]--------

>>> gdb --args /usr/local/bin/php
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/php
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 0000000000000120
[New Thread 0x7f8c3032a710 (LWP 20240)]
*** glibc detected *** -: free(): invalid pointer: 0x00007f8c27052200 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f8c297f6928]
/lib/libc.so.6(cfree+0x76)[0x7f8c297f8a36]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so[0x7f8c274bf75e]
-(zend_alter_ini_entry_ex+0x20b)[0x9604a3]
-(zend_alter_ini_entry+0x4c)[0x960296]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so(xdebug_env_key+0x9a)[0x7f8c274bfaad]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so(xdebug_env_config+0x23)[0x7f8c274bfad2]
/usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so(zm_activate_xdebug+0x18)[0x7f8c274c2350]
-[0x94f22d]
-(zend_hash_apply+0x7e)[0x956c5b]
-[0x944f80]
-(php_request_startup+0x218)[0x8c6ac5]
-[0xa3439c]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f8c297a11a6]
-[0x439b69]
======= Memory map: ========
00400000-00efd000 r-xp 00000000 03:01 402948 /usr/local/bin/php
010fc000-011a6000 rw-p 00afc000 03:01 402948 /usr/local/bin/php
011a6000-011c6000 rw-p 011a6000 00:00 0
7f8c26f57000-7f8c271a3000 rwxp 7f8c26f57000 00:00 0
7f8c271a3000-7f8c271ad000 r-xp 00000000 03:01 635564 /lib/libnss_files-2.7.so
7f8c271ad000-7f8c273ad000 ---p 0000a000 03:01 635564 /lib/libnss_files-2.7.so
7f8c273ad000-7f8c273af000 rw-p 0000a000 03:01 635564 /lib/libnss_files-2.7.so
7f8c273af000-7f8c273b1000 rwxp 7f8c273af000 00:00 0
7f8c273b1000-7f8c274b5000 rwxp 7f8c273b1000 00:00 0
7f8c274b5000-7f8c274e8000 r-xp 00000000 03:01 489068 /usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so
7f8c274e8000-7f8c276e7000 ---p 00033000 03:01 489068 /usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so
7f8c276e7000-7f8c276eb000 rw-p 00032000 03:01 489068 /usr/local/lib/php/extensions/debug-non-zts-20090626/xdebug.so
7f8c276eb000-7f8c27818000 rwxp 7f8c276eb000 00:00 0
7f8c27818000-7f8c27b61000 r--p 00000000 03:01 407957 /usr/lib/locale/locale-archive
7f8c27b61000-7f8c27b70000 r-xp 00000000 03:01 394232 /usr/lib/libtasn1.so.3.0.15
7f8c27b70000-7f8c27d70000 ---p 0000f000 03:01 394232 /usr/lib/libtasn1.so.3.0.15
7f8c27d70000-7f8c27d71000 rw-p 0000f000 03:01 394232 /usr/lib/libtasn1.so.3.0.15
7f8c27d71000-7f8c27d8a000 r-xp 00000000 03:01 394330 /usr/lib/libsasl2.so.2.0.22
7f8c27d8a000-7f8c27f8a000 ---p 00019000 03:01 394330 /usr/lib/libsasl2.so.2.0.22
7f8c27f8a000-7f8c27f8b000 rw-p 00019000 03:01 394330 /usr/lib/libsasl2.so.2.0.22
7f8c27f8b000-7f8c27f8e000 r-xp 00000000 03:01 394219 /usr/lib/libgpg-error.so.0.3.0
7f8c27f8e000-7f8c2808d000 ---p 00003000 03:01 394219 /usr/lib/libgpg-error.so.0.3.0
7f8c2808d000-7f8c2808e000 rw-p 00002000 03:01 394219 /usr/lib/libgpg-error.so.0.3.0
7f8c2808e000-7f8c28135000 r-xp 00000000 03:01 392150 /usr/lib/libgnutls.so.26.4.6
7f8c28135000-7f8c28335000 ---p 000a7000 03:01 392150 /usr/lib/libgnutls.so.26.4.6
7f8c28335000-7f8c28340000 rw-p 000a7000 03:01 392150 /usr/lib/libgnutls.so.26.4.6
7f8c28340000-7f8c28385000 r-xp 00000000 03:01 395593 /usr/lib/libldap_r-2.4.so.2.1.0
7f8c28385000-7f8c28584000 ---p 00045000 03:01 395593 /usr/lib/libldap_r-2.4.so.2.1.0
7f8c28584000-7f8c28587000 rw-p 00044000 03:01 395593 /usr/lib/libldap_r-2.4.so.2.1.0
7f8c28587000-7f8c28589000 rw-p 7f8c28587000 00:00 0
7f8c28589000-7f8c28597000 r-xp 00000000 03:01 395592 /usr/lib/liblber-2.4.so.2.1.0
7f8c28597000-7f8c28797000 ---p 0000e000 03:01 395592 /usr/lib/liblber-2.4.so.2.1.0
7f8c28797000-7f8c28798000 rw-p 0000e000 03:01 395592 /usr/lib/liblber-2.4.so.2.1.0
7f8c28798000-7f8c287c9000 r-xp 00000000 03:01 395589 /usr/lib/libidn.so.11.5.37
7f8c287c9000-7f8c289c9000 ---p 00031000 03:01 395589 /usr/lib/libidn.so.11.5.37
7f8c289c9000-7f8c289ca000 rw-p 00031000 03:01 395589 /usr/lib/libidn.so.11.5.37
7f8c289ca000-7f8c289cc000 r-xp 00000000 03:01 635241 /lib/libkeyutils-1.2.so
7f8c289cc000-7f8c28bcb000 ---p 00002000 03:01 635241 /lib/libkeyutils-1.2.so
7f8c28bcb000-7f8c28bcc000 rw-p 00001000 03:01 635241 /lib/libkeyutils-1.2.so
7f8c28bcc000-7f8c28bd3000 r-xp 00000000 03:01 394817 /usr/lib/libkrb5support.so.0.1
7f8c28bd3000-7f8c28dd3000 ---p 00007000 03:01 394817 /usr/lib/libkrb5support.so.0.1
7f8c28dd3000-7f8c28dd4000 rw-p 00007000 03:01 394817 /usr/lib/libkrb5support.so.0.1
7f8c28dd4000-7f8c28dfc000 r-xp 00000000 03:01 394272 /usr/lib/libpcre.so.3.12.1
7f8c28dfc000-7f8c28ffb000 ---p 00028000 03:01 394272 /usr/lib/libpcre.so.3.12.1
7f8c28ffb000-7f8c28ffc000 rw-p 00027000 03:01 394272 /usr/lib/libpcre.so.3.12.1
7f8c28ffc000-7f8c29061000 r-xp 00000000 03:01 394226 /usr/lib/libgcrypt.so.11.4.4
7f8c29061000-7f8c29260000 ---p 00065000 03:01 394226 /usr/lib/libgcrypt.so.11.4.4
7f8c29260000-7f8c29263000 rw-p 00064000 03:01 394226 /usr/lib/libgcrypt.so.11.4.4
7f8c29263000-7f8c29354000 r-xp 00000000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7f8c29354000-7f8c29553000 ---p 000f1000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7f8c29553000-7f8c29559000 r--p 000f0000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7f8c29559000-7f8c2955c000 rw-p 000f6000 03:01 391423 /usr/lib/libstdc++.so.6.0.10
7f8c2955c000-7f8c2956f000 rw-p 7f8c2955c000 00:00 0
7f8c2956f000-7f8c2957f000 r-xp 00000000 03:01 635582 /lib/libresolv-2.7.so
7f8c2957f000-7f8c2977f000 ---p 00010000 03:01 635582 /lib/libresolv-2.7.so
7f8c2977f000-7f8c29781000 rw-p 00010000 03:01 635582 /lib/libresolv-2.7.so
7f8c29781000-7f8c29783000 rw-p 7f8c29781000 00:00 0
7f8c29783000-7f8c298cd000 r-xp 00000000 03:01 635581 /lib/libc-2.7.so
7f8c298cd000-7f8c29acc000 ---p 0014a000 03:01 635581 /lib/libc-2.7.so
7f8c29acc000-7f8c29acf000 r--p 00149000 03:01 635581 /lib/libc-2.7.so
7f8c29acf000-7f8c29ad1000 rw-p 0014c000 03:01 635581 /lib/libc-2.7.so
7f8c29ad1000-7f8c29ad6000 rw-p 7f8c29ad1000 00:00 0
7f8c29ad6000-7f8c29aec000 r-xp 00000000 03:01 635235 /lib/libgcc_s.so.1
7f8c29aec000-7f8c29cec000 ---p 00016000 03:01 635235 /lib/libgcc_s.so.1
7f8c29cec000-7f8c29ced000 rw-p 00016000 03:01 635235 /lib/libgcc_s.so.1
7f8c29ced000-7f8c29e3f000 r-xp 00000000 03:01 394808 /usr/lib/libxml2.so.2.6.32
7f8c29e3f000-7f8c2a03e000 ---p 00152000 03:01 394808 /usr/lib/libxml2.so.2.6.32
7f8c2a03e000-7f8c2a048000 rw-p 00151000 03:01 394808 /usr/lib/libxml2.so.2.6.32
7f8c2a048000-7f8c2a049000 rw-p 7f8c2a048000 00:00 0
7f8c2a049000-7f8c2a082000 r-xp 00000000 03:01 24702 /usr/lib/libxslt.so.1.1.24
7f8c2a082000-7f8c2a281000 ---p 00039000 03:01 24702 /usr/lib/libxslt.so.1.1.24
7f8c2a281000-7f8c2a283000 rw-p 00038000 03:01 24702 /usr/lib/libxslt.so.1.1.24
7f8c2a283000-7f8c2a298000 r-xp 00000000 03:01 635579 /lib/libnsl-2.7.so
7f8c2a298000-7f8c2a497000 ---p 00015000 03:01 635579 /lib/libnsl-2.7.so
7f8c2a497000-7f8c2a499000 rw-p 00014000 03:01 635579 /lib/libnsl-2.7.so
7f8c2a499000-7f8c2a49b000 rw-p 7f8c2a499000 00:00 0
7f8c2a49b000-7f8c2a65a000 r-xp 00000000 03:01 397004 /usr/lib/libmysqlclient.so.15.0.0
7f8c2a65a000-7f8c2a85a000 ---p 001bf000 03:01 397004 /usr/lib/libmysqlclient.so.15.0.0
7f8c2a85a000-7f8c2a8a5000 rw-p 001bf000 03:01 397004 /usr/lib/libmysqlclient.so.15.0.0
7f8c2a8a5000-7f8c2a8a6000 rw-p 7f8c2a8a5000 00:00 0
7f8c2a8a6000-7f8c2a8b0000 r-xp 00000000 03:01 24660 /usr/lib/libicuio.so.38.1
7f8c2a8b0000-7f8c2aab0000 ---p 0000a000 03:01 24660 /usr/lib/libicuio.s
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f8c3032a710 (LWP 20240)]
0x00007f8c297b4ed5 in raise () from /lib/libc.so.6





------- [gdb bt full output]--------

(gdb) bt full
#0 0x00007f8c297b4ed5 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f8c297b63f3 in abort () from /lib/libc.so.6
No symbol table info available.
0000002 0x00007f8c297f1388 in ?? () from /lib/libc.so.6
No symbol table info available.
0000003 0x00007f8c297f6928 in ?? () from /lib/libc.so.6
No symbol table info available.
0000004 0x00007f8c297f8a36 in free () from /lib/libc.so.6
No symbol table info available.
0000005 0x00007f8c274bf75e in OnUpdateIDEKey (entry=0x7f8c27018e80, new_value=0x7f8c26fec720 "root", new_value_length=4, mh_arg1=0x0, mh_arg2=0x0, mh_arg3=0x0, stage=4)
    at /opt/XDEBUG_2_1_0beta1/xdebug.c:214
No locals.
0000006 0x00000000009604a3 in zend_alter_ini_entry_ex (name=0x7f8c274deec5 "xdebug.idekey", name_length=14, new_value=0x7fff6a80cec8 "root", new_value_length=4, modify_type=4, stage=4, force_change=0)
    at /opt/php-5.3.2RC1/Zend/zend_ini.c:291
    ini_entry = (zend_ini_entry *) 0x7f8c27018e80
    duplicate = 0x7f8c26fec720 "root"
    modifiable = 7 '\a'
    modified = 0 '\0'
0000007 0x0000000000960296 in zend_alter_ini_entry (name=0x7f8c274deec5 "xdebug.idekey", name_length=14, new_value=0x7fff6a80cec8 "root", new_value_length=4, modify_type=4, stage=4)
    at /opt/php-5.3.2RC1/Zend/zend_ini.c:249
No locals.
0000008 0x00007f8c274bfaad in xdebug_env_key () at /opt/XDEBUG_2_1_0beta1/xdebug.c:353
    ide_key = 0x7fff6a80cec8 "root"
0000009 0x00007f8c274bfad2 in xdebug_env_config () at /opt/XDEBUG_2_1_0beta1/xdebug.c:366
    config = 0x0
    parts = (xdebug_arg *) 0x0
    i = 32652
0000010 0x00007f8c274c2350 in zm_activate_xdebug (type=1, module_number=52) at /opt/XDEBUG_2_1_0beta1/xdebug.c:920
    orig = (zend_function *) 0xe6982d
    idekey = 0x100000031 <Address 0x100000031 out of bounds>
    dummy = (zval **) 0x8aef36
0000011 0x000000000094f22d in module_registry_request_startup (module=0x7f8c27024e00) at /opt/php-5.3.2RC1/Zend/zend_API.c:2134
No locals.
0000012 0x0000000000956c5b in zend_hash_apply (ht=0x11c5640, apply_func=0x94f1f2 <module_registry_request_startup>) at /opt/php-5.3.2RC1/Zend/zend_hash.c:673
    result = 0
    p = (Bucket *) 0x7f8c2701fc80
0000013 0x0000000000944f80 in zend_activate_modules () at /opt/php-5.3.2RC1/Zend/zend.c:857
No locals.
0000014 0x00000000008c6ac5 in php_request_startup () at /opt/php-5.3.2RC1/main/main.c:1414
    __orig_bailout = (jmp_buf *) 0x7fff6a80c410
    __bailout = {{__jmpbuf = {10702864, -5510940994126348779, 4430656, 140734980212736, 0, 0, -5510940994164097515, 5511245153361329685}, __mask_was_saved = 0, __saved_mask = {__val = {0, 0,
        140240079995354, 1, 0, 9291095, 9201475, 140239967928896, 10702864, 4294967295, 18503168, 18611616, 18191360, 140734980212744, 4313575380, 140734980211728}}}}
    retval = 0
0000015 0x0000000000a3439c in main (argc=1, argv=0x7fff6a80c808) at /opt/php-5.3.2RC1/sapi/cli/php_cli.c:1088
    __orig_bailout = (jmp_buf *) 0x0
    __bailout = {{__jmpbuf = {10702864, -5510940993979548139, 4430656, 140734980212736, 0, 0, -5510940994132640235, 5511244974534295061}, __mask_was_saved = 0, __saved_mask = {__val = {
        140240001543651, 140239967956952, 140240079978156, 4294967296, 140240079978156, 40, 140240080792952, 29, 55, 2269477195, 140240079979364, 140240010794840, 140239272149003, 35460581,
        140734980211936, 140734980212328}}}}
    exit_status = 0
    c = -1
    file_handle = {type = ZEND_HANDLE_FP, filename = 0xe82605 "-", opened_path = 0x0, handle = {fd = 699205280, fp = 0x7f8c29ad06a0, stream = {handle = 0x7f8c29ad06a0, isatty = 1786824528, mmap = {
        len = 140734980212504, pos = 4131212846, map = 0x7fff6a80c700, buf = 0x0, old_handle = 0x7f8c302685ae, old_closer = 0}, reader = 0x7f8c3032eec0, fsizer = 0x7fff00000001, closer = 0}},
  free_filename = 0 '\0'}
    behavior = 1
    reflection_what = 0x0
    orig_optind = 1
    orig_optarg = 0x0
    arg_free = 0x7fff6a80ce4d "/usr/local/bin/php"
    arg_excp = (char **) 0x7fff6a80c808
    script_file = 0x0
    interactive = 0
    module_started = 1
    request_started = 0
    lineno = 0
    exec_direct = 0x0
    exec_run = 0x0
    exec_begin = 0x0
    exec_end = 0x0
    param_error = 0x0
    hide_argv = 0
    ini_entries_len = 110

derick

2010-02-17 00:47

administrator   ~0001350

I have just made a guess at fixing it, as I can't actually reproduce this. Can you try the latest SVN version please to see if it's fixed?

avetis

2010-02-18 22:08

reporter   ~0001362

I'm still having the same problem...

derick

2010-02-20 13:41

administrator   ~0001365

Bleh, made a little mistake in my instructions, can you please try the following:

1. on one shell:
   a. export USE_ZEND_ALLOC=0 (I had put "1" here before)
   b. valgrind /full/path/to/php yourscript.php (script only if necessary)
2. provide the output of valgrind

avetis

2010-02-22 18:14

reporter   ~0001370

I've checked out and compiled it again, and suprise : it seems to give less errors, though it still does not work :/

---------------[valgrind output]----------------------

>>> valgrind /usr/local/bin/php empty.php
==3047== Memcheck, a memory error detector.
==3047== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==3047== Using LibVEX rev 1854, a library for dynamic binary translation.
==3047== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==3047== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
==3047== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==3047== For more details, rerun with: -v
==3047==
==3047== Invalid free() / delete / delete[]
==3047== at 0x4C2130F: free (vg_replace_malloc.c:323)
==3047== by 0xD96F6BD: zm_activate_xdebug (xdebug.c:713)
==3047== by 0x94F22C: module_registry_request_startup (zend_API.c:2134)
==3047== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==3047== by 0x944F7F: zend_activate_modules (zend.c:857)
==3047== by 0x8C6AC4: php_request_startup (main.c:1414)
==3047== by 0xA3439B: main (php_cli.c:1088)
==3047== Address 0xe036190 is not stack'd, malloc'd or (recently) free'd
==3047==
==3047== Invalid free() / delete / delete[]
==3047== at 0x4C2130F: free (vg_replace_malloc.c:323)
==3047== by 0xD96F3D2: xdebug_stack_element_dtor (xdebug.c:637)
==3047== by 0xD97EF00: xdebug_llist_remove (xdebug_llist.c:127)
==3047== by 0xD971743: xdebug_execute (xdebug.c:1287)
==3047== by 0x945F91: zend_execute_scripts (zend.c:1194)
==3047== by 0x8C82E2: php_execute_script (main.c:2233)
==3047== by 0xA344E6: main (php_cli.c:1192)
==3047== Address 0xe548f90 is not stack'd, malloc'd or (recently) free'd
==3047==
==3047== Invalid free() / delete / delete[]
==3047== at 0x4C2130F: free (vg_replace_malloc.c:323)
==3047== by 0xD96F404: xdebug_stack_element_dtor (xdebug.c:643)
==3047== by 0xD97EF00: xdebug_llist_remove (xdebug_llist.c:127)
==3047== by 0xD971743: xdebug_execute (xdebug.c:1287)
==3047== by 0x945F91: zend_execute_scripts (zend.c:1194)
==3047== by 0x8C82E2: php_execute_script (main.c:2233)
==3047== by 0xA344E6: main (php_cli.c:1192)
==3047== Address 0xe0654c0 is not stack'd, malloc'd or (recently) free'd
==3047==
==3047== Invalid free() / delete / delete[]
==3047== at 0x4C2130F: free (vg_replace_malloc.c:323)
==3047== by 0xD96E33D: OnUpdateIDEKey (xdebug.c:201)
==3047== by 0x95FCEA: zend_restore_ini_entry_cb (zend_ini.c:57)
==3047== by 0x95FE05: zend_restore_ini_entry_wrapper (zend_ini.c:81)
==3047== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==3047== by 0x95FF25: zend_ini_deactivate (zend_ini.c:121)
==3047== by 0x94519E: zend_deactivate (zend.c:919)
==3047== by 0x8C713E: php_request_shutdown (main.c:1606)
==3047== by 0xA34EC8: main (php_cli.c:1373)
==3047== Address 0xe036170 is not stack'd, malloc'd or (recently) free'd
==3047==
==3047== Invalid free() / delete / delete[]
==3047== at 0x4C2130F: free (vg_replace_malloc.c:323)
==3047== by 0xD96FB9A: zm_post_zend_deactivate_xdebug (xdebug.c:816)
==3047== by 0x9451DB: exec_done_cb (zend.c:927)
==3047== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==3047== by 0x9451F9: zend_post_deactivate_modules (zend.c:935)
==3047== by 0x8C717A: php_request_shutdown (main.c:1610)
==3047== by 0xA34EC8: main (php_cli.c:1373)
==3047== Address 0xe0654a0 is not stack'd, malloc'd or (recently) free'd
==3047==
==3047== Invalid free() / delete / delete[]
==3047== at 0x4C2130F: free (vg_replace_malloc.c:323)
==3047== by 0xD96FC5A: zm_post_zend_deactivate_xdebug (xdebug.c:835)
==3047== by 0x9451DB: exec_done_cb (zend.c:927)
==3047== by 0x956C5A: zend_hash_apply (zend_hash.c:673)
==3047== by 0x9451F9: zend_post_deactivate_modules (zend.c:935)
==3047== by 0x8C717A: php_request_shutdown (main.c:1610)
==3047== by 0xA34EC8: main (php_cli.c:1373)
==3047== Address 0xe548fc0 is not stack'd, malloc'd or (recently) free'd
==3047==
==3047== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 31 from 2)
==3047== malloc/free: in use at exit: 0 bytes in 0 blocks.
==3047== malloc/free: 40 allocs, 46 frees, 1,664 bytes allocated.
==3047== For counts of detected errors, rerun with: -v
==3047== All heap blocks were freed -- no leaks are possible.

derick

2010-03-20 21:25

administrator   ~0001394

This bug still doesn't make sense. To me it looks like a compiler optimized out some code. I don't know which one you have but you might want to upgrade it. If that doesn't help, I am afraid I'll have to ask for access to the machine to debug it.

avetis

2010-03-21 20:50

reporter   ~0001402

I'm compiling on a local virtual machine, I can open an access for you if you need it.

derick

2010-03-21 22:01

administrator   ~0001405

I would appreciated that; please mail access details directly to derick@xdebug.org .

avetis

2010-03-22 22:40

reporter   ~0001406

I've sent you the access details in a mail with "Access for bug 0000526" as subject.

derick

2010-03-23 00:00

administrator   ~0001407

I had a quick look today on your VM, but still no luck. I don't understand why I can't get the same behaviour locally either. I'll try more later.

derick

2010-05-01 16:05

administrator   ~0001471

Closing this one as "not a bug", because you wrote:

> The "bad guy" was dmalloc.
> When I compiled without using --enable-dmalloc option, everything went OK.

Dmalloc is another memory allocation checker, which will most likely conflict with both the Zend memory manager and glibc anyway. We'll simply not support it instead.

Issue History

Date Modified Username Field Change
2010-01-30 11:30 avetis New Issue
2010-01-30 11:30 avetis Operating System => Debian 5.0.3 / Linux dev 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux
2010-01-30 11:30 avetis PHP Version => 5.3.2
2010-01-30 11:30 avetis Xdebug Version => 2.0.5
2010-01-30 16:56 derick Note Added: 0001295
2010-01-30 16:56 derick Status new => feedback
2010-01-30 18:51 avetis Note Added: 0001302
2010-02-17 00:47 derick Note Added: 0001350
2010-02-18 22:08 avetis Note Added: 0001362
2010-02-20 13:41 derick Note Added: 0001365
2010-02-22 18:14 avetis Note Added: 0001370
2010-03-20 21:25 derick Note Added: 0001394
2010-03-20 23:50 derick Target Version => 2.1.0RC1
2010-03-21 20:50 avetis Note Added: 0001402
2010-03-21 22:01 derick Note Added: 0001405
2010-03-22 22:40 avetis Note Added: 0001406
2010-03-23 00:00 derick Note Added: 0001407
2010-05-01 16:05 derick Note Added: 0001471
2010-05-01 16:05 derick Status feedback => resolved
2010-05-01 16:05 derick Resolution open => no change required
2010-05-01 16:05 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)