From:
Operating system: linux
PHP version: 5.3.5
Package: IMAP related
Bug Type: Bug
Bug description:php aborted on imap
Description:
------------
php-fpm (5.3.5) aborted with core dump from imap on max_execution_time.
Program terminated with signal 6, Aborted.
#0 0x0000029c2d6b11a5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x0000029c2d6b11a5 in raise () from /lib/libc.so.6
#1 0x0000029c2d6b25c0 in abort () from /lib/libc.so.6
#2 0x0000029c2fd9e619 in fatal () from /usr/lib/libc-client.so.1
#3 0x0000029c2fdab425 in mail_lock () from /usr/lib/libc-client.so.1
#4 0x0000029c2fdd715b in imap_send () from /usr/lib/libc-client.so.1
#5 0x0000029c2fdd8e18 in imap_close () from /usr/lib/libc-client.so.1
#6 0x0000029c2fdaa18f in mail_close_full () from
/usr/lib/libc-client.so.1
#7 0x00000000005644eb in mail_close_it (rsrc=0xf69670)
at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/ext/imap/php_imap.c:606
#8 0x0000000000757c18 in list_entry_destructor (ptr=0xf69670)
at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/Zend/zend_list.c:184
#9 0x0000000000754ffb in zend_hash_apply_deleter (ht=0xd8e290,
p=0xf695d0)
at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/Zend/zend_hash.c:614
#10 0x000000000075518b in zend_hash_graceful_reverse_destroy (ht=0xd8e290)
at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/Zend/zend_hash.c:649
#11 0x0000000000757dc5 in zend_destroy_rsrc_list (ht=0xd8e290)
at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/Zend/zend_list.c:240
#12 0x00000000007436f8 in zend_deactivate () at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/Zend/zend.c:896
#13 0x00000000006c40a5 in php_request_shutdown (dummy=0x0) at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/main/main.c:1633
#14 0x000000000083eedb in main (argc=3, argv=0x3afd0169d38)
at
/var/tmp/portage/dev-lang/php-5.3.5/work/sapis-build/fpm/sapi/fpm/fpm/fpm_main.c:1902
Test script:
---------------
$mbox = imap_open("{127.0.0.1:143}", "xxtest", "password");
ini_set('max_execution_time', 3);
while (true) {
print '.'; flush();
imap_append($mbox, "{127.0.0.1}INBOX",file_get_contents('test.eml')) or
die(print_r(imap_errors(),true));
$object = imap_fetchstructure($mbox,1) or
die(print_r(imap_errors(),true));
imap_savebody($mbox,'/dev/null',1) or die(print_r(imap_errors(),true));
imap_delete($mbox,1) or die(print_r(imap_errors(),true));
imap_expunge($mbox) or die(print_r(imap_errors(),true));
}
imap_close($mbox);
Expected result:
----------------
clear exit
Actual result:
--------------
Aborted (core dumped)
--
Edit bug report at http://bugs.php.net/bug.php?id=53947&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53947&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53947&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53947&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53947&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53947&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53947&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53947&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53947&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53947&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53947&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53947&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53947&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53947&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53947&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53947&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53947&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53947&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53947&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53947&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53947&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53947&r=mysqlcfg