Edit report at http://bugs.php.net/bug.php?id=50057&edit=1
ID: 50057 Updated by: [email protected] Reported by: proforg at maloletka dot ru Summary: crash in _php_pgsql_notice_ptr_dtor -> efree with Horde -Status: No Feedback +Status: Feedback Type: Bug Package: PostgreSQL related Operating System: Debian Lenny 2.6.26-2-amd64 PHP Version: 5.2SVN-2009-11-02 (snap) New Comment: Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-11-12 01:00:03] 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". ------------------------------------------------------------------------ [2009-11-11 21:45:14] svanegmond at tinyplanet dot ca Hi, We have produced this crash on a MacOSX machine using MacPorts. We were running an internal publishing framework under Apache2, and the bug is difficult to isolate. It occurs every two or three hits, only a certain page and no others. Reviewing the crash log, we saw that it was handling an error message. The database server had just thrown a warning message in response to a query; from pgsql's server log: WARNING: nonstandard use of escape in a string literal at character 34 HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. Fixing the query to not trigger this notice "eliminated" the problem. $ postgres -V postgres (PostgreSQL) 8.4.1 $ ./httpd -v Server version: Apache/2.2.13 (Unix) Server built: Nov 11 2009 14:26:14 $ php -v PHP 5.3.0 (cli) (built: Nov 11 2009 14:32:44) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies Stack trace: /Library/Logs/CrashReporter/httpd_2009-11-11-160757_xserve2.crash Process: httpd [18789] Path: /opt/local/apache2/bin/httpd Identifier: httpd Version: ??? (???) Code Type: X86 (Native) Parent Process: httpd [17820] Date/Time: 2009-11-11 16:07:57.993 -0500 OS Version: Mac OS X Server 10.5.8 (9L30) Report Version: 6 Anonymous UUID: 97323980-327D-4574-BA0D-3ECFD564DB05 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000072702f34 Crashed Thread: 0 Application Specific Information: *** single-threaded process forked *** Thread 0 Crashed: 0 libphp5.so 0x011e18a9 _zend_mm_free_int + 25 1 pgsql.so 0x017a307a _php_pgsql_notice_ptr_dtor + 26 2 libphp5.so 0x01210b82 _zend_hash_index_update_or_next_insert + 562 3 pgsql.so 0x017a301f _php_pgsql_notice_handler + 143 4 libpq.5.dylib 0x01790630 pqGetErrorNotice3 + 1232 5 libpq.5.dylib 0x01791080 pqParseInput3 + 976 6 libpq.5.dylib 0x01787d48 parseInput + 24 7 libpq.5.dylib 0x0178882d PQgetResult + 173 8 libpq.5.dylib 0x017889fd PQexecFinish + 45 9 pgsql.so 0x017a4690 zif_pg_query + 416 10 libphp5.so 0x012326cc zend_do_fcall_common_helper_SPEC + 2860 11 libphp5.so 0x01231635 execute + 485 12 libphp5.so 0x01203886 zend_execute_scripts + 102 13 libphp5.so 0x011aad78 php_execute_script + 392 14 libphp5.so 0x0129137b php_handler + 1691 15 httpd 0x00002368 ap_run_handler + 72 16 httpd 0x00002877 ap_invoke_handler + 119 17 httpd 0x000280ae ap_process_request + 430 18 httpd 0x000247a8 ap_process_http_connection + 344 19 httpd 0x000103b8 ap_run_process_connection + 72 20 httpd 0x0002cef7 child_main + 1031 21 httpd 0x0002d253 make_child + 323 22 httpd 0x0002d330 startup_children + 96 23 httpd 0x0002ea83 ap_mpm_run + 4003 24 httpd 0x00008ce0 main + 2544 25 httpd 0x00001826 start + 54 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x008fdc00 ebx: 0x011e189e ecx: 0x00000001 edx: 0x72702f3c edi: 0x72702f34 esi: 0x01aa37c0 ebp: 0xbfffece8 esp: 0xbfffecb0 ss: 0x0000001f efl: 0x00200206 eip: 0x011e18a9 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 cr2: 0x72702f34 Binary Images: 0x1000 - 0x37fe7 +httpd ??? (???) <b168b1baf5a905648504a18b6389516b> /opt/local/apache2/bin/httpd 0x57000 - 0x84fe7 +libpcre.0.dylib ??? (???) <e850e6a552f9505aa3af76bab3599caa> /opt/local/lib/libpcre.0.dylib 0x89000 - 0x9dff3 +libaprutil-1.0.dylib ??? (???) <35ba3b12730afda10626fe0bea4774c7> /opt/local/lib/libaprutil-1.0.dylib 0xa6000 - 0xc2fe3 +libexpat.1.dylib ??? (???) <86bb4cce4c61a5db862ebfb991656809> /opt/local/lib/libexpat.1.dylib 0xca000 - 0xe3fef +libapr-1.0.dylib ??? (???) <56c87ffb4d4b5d67272ae1d3836e08e7> /opt/local/lib/libapr-1.0.dylib 0xf1000 - 0xf1ff5 +mod_authn_file.so ??? (???) <1f3aa9d5825ca6109f63df61b390f153> /opt/local/apache2/modules/mod_authn_file.so 0xf5000 - 0xf5ffe +mod_authn_dbm.so ??? (???) <59d6f1179bc711e2320c5934578ef098> /opt/local/apache2/modules/mod_authn_dbm.so 0x10f000 - 0x209fef +libdb-4.6.dylib ??? (???) <c38bbde94d43ef6c1592ddb2392521cc> /opt/local/lib/db46/libdb-4.6.dylib 0x21e000 - 0x316ff4 +libiconv.2.dylib ??? (???) <56e0608768d0bcfc4a75df4b5a299ad0> /opt/local/lib/libiconv.2.dylib 0x323000 - 0x323ff4 +mod_authn_anon.so ??? (???) <4244cb2caf2d72b6cbca6cf22d4fe3d9> /opt/local/apache2/modules/mod_authn_anon.so 0x327000 - 0x328ff2 +mod_authn_dbd.so ??? (???) <f06deb662fbad35eb532e2ddd0515d10> /opt/local/apache2/modules/mod_authn_dbd.so 0x32c000 - 0x32cff8 +mod_authn_default.so ??? (???) <a69f036f8e19ac361e062ab124abe7e8> /opt/local/apache2/modules/mod_authn_default.so 0x330000 - 0x330ff7 +mod_authz_host.so ??? (???) <6e165d9c70db774e111c26367dce227f> /opt/local/apache2/modules/mod_authz_host.so 0x334000 - 0x334ff6 +mod_authz_groupfile.so ??? (???) <2e9406ee301825cf9ad4f27b8e28c0c6> /opt/local/apache2/modules/mod_authz_groupfile.so 0x338000 - 0x338ffc +mod_authz_user.so ??? (???) <826e77ccbae0337be3b30f22d2c4a828> /opt/local/apache2/modules/mod_authz_user.so 0x33c000 - 0x33cff2 +mod_authz_dbm.so ??? (???) <1d16652f353702e144327ea3ff5140d7> /opt/local/apache2/modules/mod_authz_dbm.so 0x340000 - 0x340ff4 +mod_authz_owner.so ??? (???) <b4248e26f88d850e42786865830ac938> /opt/local/apache2/modules/mod_authz_owner.so 0x344000 - 0x344ffd +mod_authz_default.so ??? (???) <239f644a3f1ceb23510047f80b001724> /opt/local/apache2/modules/mod_authz_default.so 0x348000 - 0x348ff9 +mod_auth_basic.so ??? (???) <20c467032d2d88c52a1f6cbd00843c18> /opt/local/apache2/modules/mod_auth_basic.so 0x34c000 - 0x350fff +mod_auth_digest.so ??? (???) <f6268c13480affe559251b3ed541986f> /opt/local/apache2/modules/mod_auth_digest.so 0x354000 - 0x354ff5 +mod_file_cache.so ??? (???) <58b2a62164ce9ecce8800c6dab0172c5> /opt/local/apache2/modules/mod_file_cache.so 0x358000 - 0x35dfff +mod_cache.so ??? (???) <d464ad2b06bb786ed851f8055efc30ee> /opt/local/apache2/modules/mod_cache.so 0x362000 - 0x364ffc +mod_disk_cache.so ??? (???) <329ad83a267565fe7f30e12b46037adf> /opt/local/apache2/modules/mod_disk_cache.so 0x368000 - 0x36affd +mod_mem_cache.so ??? (???) <f57229fbceb33d4e66715988c7fe9425> /opt/local/apache2/modules/mod_mem_cache.so 0x36f000 - 0x370ffa +mod_dbd.so ??? (???) <fde58ca948fcdf93a29dad63ac66d1f1> /opt/local/apache2/modules/mod_dbd.so 0x374000 - 0x374ff3 +mod_dumpio.so ??? (???) <fa64394b5e31feed4f3bcc9e22ee030b> /opt/local/apache2/modules/mod_dumpio.so 0x378000 - 0x37aff0 +mod_ext_filter.so ??? (???) <f37d8d484ea575b787d5eb84798659e5> /opt/local/apache2/modules/mod_ext_filter.so 0x37e000 - 0x385ff7 +mod_include.so ??? (???) <c7ee58480c26d2bc9e5b5130aa04bec7> /opt/local/apache2/modules/mod_include.so 0x389000 - 0x38aff9 +mod_filter.so ??? (???) <e36d3553f0c56f5740e1d3c1b78166e8> /opt/local/apache2/modules/mod_filter.so 0x38e000 - 0x38fffe +mod_substitute.so ??? (???) <9a17de58f2cb559311cd0becbe42d837> /opt/local/apache2/modules/mod_substitute.so 0x393000 - 0x396ffe +mod_deflate.so ??? (???) <52be5e469949feff89a5ecc7af41296a> /opt/local/apache2/modules/mod_deflate.so 0x39a000 - 0x3aaffd +libz.1.dylib ??? (???) <a3bea29149481a5c9fd056566c80b4df> /opt/local/lib/libz.1.dylib 0x3af000 - 0x3b2ffb +mod_log_config.so ??? (???) <ea64a44b93c935f839cc67683255ab91> /opt/local/apache2/modules/mod_log_config.so 0x3b7000 - 0x3b7fff +mod_log_forensic.so ??? (???) <9f0df94bd0ef0a1715ed14d43f72963b> /opt/local/apache2/modules/mod_log_forensic.so 0x3bb000 - 0x3bbff9 +mod_logio.so ??? (???) <58389b37c5291f7e3ea3ec2e6e32a1d8> /opt/local/apache2/modules/mod_logio.so 0x3bf000 - 0x3bfffd +mod_env.so ??? (???) <8f845c7dee691a5b884902e1a6af3f1c> /opt/local/apache2/modules/mod_env.so 0x3c3000 - 0x3c6ff3 +mod_mime_magic.so ??? (???) <a778a11710a95bedbd9b17a7ac17d937> /opt/local/apache2/modules/mod_mime_magic.so 0x3ca000 - 0x3caff0 +mod_cern_meta.so ??? (???) <a86130a3e5523186b4491399c9b0b9a5> /opt/local/apache2/modules/mod_cern_meta.so 0x3ce000 - 0x3cffff +mod_expires.so ??? (???) <e3e965af94ae7c571dc3bd17ec022a39> /opt/local/apache2/modules/mod_expires.so 0x3d3000 - 0x3d4ffd +mod_headers.so ??? (???) <38f66172a11d1899a217c5b0bad814c1> /opt/local/apache2/modules/mod_headers.so 0x3d8000 - 0x3d8ff6 +mod_ident.so ??? (???) <219d7ceb85bc232c84ca4f7ad0b3785b> /opt/local/apache2/modules/mod_ident.so 0x3dc000 - 0x3ddff0 +mod_usertrack.so ??? (???) <e75cac3f70d795229231b84abed05c46> /opt/local/apache2/modules/mod_usertrack.so 0x3e1000 - 0x3e1fff +mod_unique_id.so ??? (???) <21f494e79a4388c8bbfe8412a227cb93> /opt/local/apache2/modules/mod_unique_id.so 0x3e5000 - 0x3e6ffd +mod_setenvif.so ??? (???) <4c13d479878a2dee81c5f91726a5a458> /opt/local/apache2/modules/mod_setenvif.so 0x3ea000 - 0x3eaff3 +mod_version.so ??? (???) <4d2673dc9292007aacff16567e786a03> /opt/local/apache2/modules/mod_version.so 0x3ee000 - 0x3fafff +mod_proxy.so ??? (???) <370e485c6c9447da6ccd486ee0ed2bd5> /opt/local/apache2/modules/mod_proxy.so 0x500000 - 0x501ff2 +mod_proxy_connect.so ??? (???) <3b7587222e9b6a1ad5a3be387aa8aab9> /opt/local/apache2/modules/mod_proxy_connect.so 0x505000 - 0x50aff3 +mod_proxy_ftp.so ??? (???) <3f6a9f0600dd6992a64d9ad1e860af3f> /opt/local/apache2/modules/mod_proxy_ftp.so 0x50e000 - 0x513ff1 +mod_proxy_http.so ??? (???) <4511f673d5763a0fcb56ab78947c87b4> /opt/local/apache2/modules/mod_proxy_http.so 0x517000 - 0x51dff7 +mod_proxy_ajp.so ??? (???) <340ebce9d5c594b7acc5c46be2d7b9c7> /opt/local/apache2/modules/mod_proxy_ajp.so 0x521000 - 0x525ff8 +mod_proxy_balancer.so ??? (???) <345fe4cc386bf28676aec3e2725a3284> /opt/local/apache2/modules/mod_proxy_balancer.so 0x529000 - 0x546fef +mod_ssl.so ??? (???) <65426c62afb80c4a439eaed999d51c8d> /opt/local/apache2/modules/mod_ssl.so 0x552000 - 0x58afeb +libssl.0.9.8.dylib ??? (???) <d4ea7588353d687913521d9525c41cf9> /opt/local/lib/libssl.0.9.8.dylib 0x59e000 - 0x6a1fe7 +libcrypto.0.9.8.dylib ??? (???) <3daff7d6a0cce0e37f1a1512984d5440> /opt/local/lib/libcrypto.0.9.8.dylib 0x700000 - 0x702ffd +mod_mime.so ??? (???) <80a9885452310b213531f65cf25f29ed> /opt/local/apache2/modules/mod_mime.so 0x706000 - 0x717ff0 +mod_dav.so ??? (???) <df7d7edf7e5a385c770d8b2f074f82bc> /opt/local/apache2/modules/mod_dav.so 0x71d000 - 0x720fff +mod_status.so ??? (???) <0e78f2e041d7bcc5911d0a66b1fdb650> /opt/local/apache2/modules/mod_status.so 0x724000 - 0x729ff2 +mod_autoindex.so ??? (???) <6d507a6be5a8ca25d31dc3161f8622f2> /opt/local/apache2/modules/mod_autoindex.so 0x72d000 - 0x72dff8 +mod_asis.so ??? (???) <634779dffa050abb240f563a2a6a3d34> /opt/local/apache2/modules/mod_asis.so 0x731000 - 0x733ff0 +mod_info.so ??? (???) <f9b8c2f6254211f67cba818202dfd3f2> /opt/local/apache2/modules/mod_info.so 0x737000 - 0x739ffd +mod_cgi.so ??? (???) <6b7e635f0514aff750741aba1fba7012> /opt/local/apache2/modules/mod_cgi.so 0x73d000 - 0x744ffb +mod_dav_fs.so ??? (???) <48591c520f38c461fc04cf78f861c3bb> /opt/local/apache2/modules/mod_dav_fs.so 0x749000 - 0x74affd +mod_vhost_alias.so ??? (???) <aa92c6378efa2f287a1936ed59792b9b> /opt/local/apache2/modules/mod_vhost_alias.so 0x74e000 - 0x753ffb +mod_negotiation.so ??? (???) <16ec7298a50af7f169bfa29ef839c22a> /opt/local/apache2/modules/mod_negotiation.so 0x757000 - 0x757ffc +mod_dir.so ??? (???) <b01c751ea258705cbddd9d6cb08031dc> /opt/local/apache2/modules/mod_dir.so 0x75b000 - 0x75dff7 +mod_imagemap.so ??? (???) <ae3d4732484632bb855b3b59adf8d733> /opt/local/apache2/modules/mod_imagemap.so 0x761000 - 0x761ff2 +mod_actions.so ??? (???) <50ad0d9af89afcb92e1725e188e995ee> /opt/local/apache2/modules/mod_actions.so 0x765000 - 0x766ffb +mod_speling.so ??? (???) <1b6126038be9ca286eac624bcf7ab125> /opt/local/apache2/modules/mod_speling.so 0x76a000 - 0x76aff3 +mod_userdir.so ??? (???) <288c3c9c2d47dccb8eab40fae948bea0> /opt/local/apache2/modules/mod_userdir.so 0x76e000 - 0x76fff4 +mod_alias.so ??? (???) <dcae6605db93b301ccca7cc90674770b> /opt/local/apache2/modules/mod_alias.so 0x773000 - 0x77efff +mod_rewrite.so ??? (???) <4afb581f69b5ae2b1af9c30082996be9> /opt/local/apache2/modules/mod_rewrite.so 0x783000 - 0x7a5ff4 +libreadline.6.dylib ??? (???) <d68b2e7f18727ba03a634239660bffbe> /opt/local/lib/libreadline.6.dylib 0x7b8000 - 0x7dcfef +libncurses.5.dylib ??? (???) <3af3a221fa7cd93b50104d3fc6468a55> /opt/local/lib/libncurses.5.dylib 0x7e9000 - 0x7f7fff +libbz2.1.0.dylib ??? (???) <e5342fd7140a49cf02c26a5c9b3433be> /opt/local/lib/libbz2.1.0.dylib 0x1000000 - 0x14ceffb +libphp5.so ??? (???) <6e938c5b6dd6abeb9ba653dac42497be> /opt/local/apache2/modules/libphp5.so 0x159d000 - 0x16a2fef +libxml2.2.dylib ??? (???) <b682661c5026b76f6aa1a0efb0ac6893> /opt/local/lib/libxml2.2.dylib 0x1738000 - 0x1739ff6 +gettext.so ??? (???) <8db728e3ec2004db845e7cfd0520e848> /opt/local/lib/php/extensions/no- debug-non-zts- 20090626/gettext.so 0x173d000 - 0x1744ff3 +libintl.8.dylib ??? (???) <a7af6cb09ac7ceb2bb39cef086d80e0b> /opt/local/lib/libintl.8.dylib 0x174f000 - 0x1755ff3 +mysql.so ??? (???) <8c5e688312feab0de731f0a76977c29f> /opt/local/lib/php/extensions/no- debug-non-zts- 20090626/mysql.so 0x175a000 - 0x176afef +mysqli.so ??? (???) <5db330d50d979583b753f74267f24efd> /opt/local/lib/php/extensions/no- debug-non-zts- 20090626/mysqli.so 0x1773000 - 0x1776ff7 +pdo_mysql.so ??? (???) <c3bc08ccf7d336bef1f71a25401d204a> /opt/local/lib/php/extensions/no- debug-non-zts- 20090626/pdo_mysql.so 0x177a000 - 0x177dff7 +pdo_pgsql.so ??? (???) <6c688aa4551cdc2473c6b3033bf94034> /opt/local/lib/php/extensions/no- debug-non-zts- 20090626/pdo_pgsql.so 0x1782000 - 0x1799fef +libpq.5.dylib ??? (???) <7c2db2bc1b5ca83f1558d193f38d0e40> /opt/local/lib/postgresql84/libpq.5.dylib 0x17a2000 - 0x17b4fff +pgsql.so ??? (???) <2dea9e10c2f01d560d357757a3b4f062> /opt/local/lib/php/extensions/no- debug-non-zts- 20090626/pgsql.so 0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603> /usr/lib/dyld 0x90976000 - 0x90994fff libresolv.9.dylib ??? (???) <39f6d8651f3dca7a1534fa04322e6763> /usr/lib/libresolv.9.dylib 0x91059000 - 0x91139fff libobjc.A.dylib ??? (???) <d1469bf9fe852864d4fff185c72768e8> /usr/lib/libobjc.A.dylib 0x9117d000 - 0x9118cfff libsasl2.2.dylib ??? (???) <714f4f162ae31633c275ce02f267faf9> /usr/lib/libsasl2.2.dylib 0x9142a000 - 0x91431fe9 libgcc_s.1.dylib ??? (???) <e280ddf3f5fb3049e674edcb109f389a> /usr/lib/libgcc_s.1.dylib 0x917f5000 - 0x91928fe7 com.apple.CoreFoundation 6.5.7 (476.19) <a332c8f45529ee26d2e9c36d0c723bad> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation 0x91d85000 - 0x91e37ffb libcrypto.0.9.7.dylib ??? (???) <9d714c92872a93dd127ea8556b2c8945> /usr/lib/libcrypto.0.9.7.dylib 0x92642000 - 0x9266dfe7 libauto.dylib ??? (???) <2e44c523b851e8e25f05d13a48070a58> /usr/lib/libauto.dylib 0x92cf3000 - 0x92d25fff com.apple.LDAPFramework 1.4.5 (110) <eb9a8d1ba68260e525ba46e937e975d8> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP 0x94ce9000 - 0x94d46ffb libstdc++.6.dylib ??? (???) <7d389389a99ce696726cf4c8980cc505> /usr/lib/libstdc++.6.dylib 0x9545f000 - 0x95598ff7 libicucore.A.dylib ??? (???) <dd8aa51c356e79ef8cdfa341a0d69f5b> /usr/lib/libicucore.A.dylib 0x965cf000 - 0x96736ff3 libSystem.B.dylib ??? (???) <ae47ca9b1686b065f8ac4d2de09cc432> /usr/lib/libSystem.B.dylib 0x969b7000 - 0x969dbfeb libssl.0.9.7.dylib ??? (???) <8084593b773bec8f2b9614fd23c5ed73> /usr/lib/libssl.0.9.7.dylib 0x96a6a000 - 0x96a6efff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib 0xfffe8000 - 0xfffebfff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib 0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=50057 -- Edit this bug report at http://bugs.php.net/bug.php?id=50057&edit=1
