#48400 [NEW]: gpf on imap on when using OP_PROTOTYPE option
From: dkelsey at uk dot ibm dot com
Operating system: Linux
PHP version: 5.2CVS-2009-05-26 (snap)
PHP Bug Type: IMAP related
Bug description: gpf on imap on when using OP_PROTOTYPE option
Description:
------------
gpf occurs in the following simple script for imap
This looks similar to a bug that was flagged as bogus in 2005
http://bugs.php.net/bug.php?id=33457
then followed on at
http://bugs.php.net/bug.php?id=33464
note that upgrading to imap-2007b doesn't resolve the issue.
Reproduce code:
---------------
<?php
$server = '{localhost/norsh}';
$default_mailbox = $server . "INBOX";
$domain = "something.com";
$admin_user = "webmaster"; // a user with admin access
$username = "$admin_user@$domain";
$password = 'p4ssw0rd';
$n_retries = 3;
var_dump($imap_stream = imap_open($server, $username, $password,
OP_PROTOTYPE, $n_retries) );
imap_close($imap_stream);
?>
Actual result:
--------------
*** glibc detected ***
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php:
free(): invalid pointer: 0xb7ec97c0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb77ec851]
/lib/libc.so.6(__libc_free+0x84)[0xb77edeb4]
/usr/lib/libc-client.so.2004g_suse(fs_give+0x58)[0xb7ea2a88]
/usr/lib/libc-client.so.2004g_suse(mail_close_full+0xea)[0xb7e6fb1a]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php[0x8132ccd]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(list_entry_destructor+0x82)[0x8302b22]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(zend_hash_del_key_or_index+0x1f4)[0x8301074]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(_zend_list_delete+0x6c)[0x8302d6c]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(zif_imap_close+0xa4)[0x813b294]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php[0x831eff8]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(execute+0x12d)[0x8313acd]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(zend_execute_scripts+0x152)[0x82f63e2]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(php_execute_script+0x1c3)[0x82b5463]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php(main+0x1357)[0x8372c17]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb779e87c]
/home/cruiseco/cruisebuilds/phptreport/php52/build_under_test/sapi/cli/php[0x8091a71]
--
Edit bug report at http://bugs.php.net/?id=48400&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48400&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48400&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48400&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48400&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48400&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48400&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48400&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48400&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48400&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48400&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48400&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48400&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48400&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48400&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48400&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48400&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48400&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48400&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48400&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48400&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48400&r=mysqlcfg
Thread (8 messages)
- dkelsey at uk dot ibm dot com