ID:               48619
 Updated by:       paj...@php.net
 Reported By:      andy at webtatic dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: CentOS 5.3 i386
 PHP Version:      5.2.10
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

Please compile in debug mode (--enable-debug) and provide again the
backtrace.

Which c-client version do you use?


Previous Comments:
------------------------------------------------------------------------

[2009-06-20 16:44:02] andy at webtatic dot com

Description:
------------
imap_search($connection, 'ALL') seems to be causing a segmentation
fault.

The backtrace (from what I guess), seems to suggest the command is
recursively calling itself to free the searchset, the same thing being
called endlessly.

The php build was based on the CentOS testing php-5.2.6 rpm modified to
compile php-5.2.10. php-5.2.9 did not have this issue.

build --enable-force-cgi-redirect \
      --enable-pcntl \
      --with-imap=shared --with-imap-ssl \
      --enable-mbstring=shared --enable-mbstr-enc-trans \
      --enable-mbregex \
      --with-ncurses=shared \
      --with-gd=shared \
      --enable-bcmath=shared \
      --enable-dba=shared --with-db4=%{_prefix} \
      --with-xmlrpc=shared \
      --with-ldap=shared --with-ldap-sasl \
      --with-mysql=shared,%{_prefix} \
      --with-mysqli=shared,%{_bindir}/mysql_config \
      --enable-dom=shared \
      --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
      --with-pgsql=shared \
      --with-snmp=shared,%{_prefix} \
      --enable-soap=shared \
      --with-xsl=shared,%{_prefix} \
      --enable-xmlreader=shared --enable-xmlwriter=shared \
      --enable-fastcgi \
      --enable-pdo=shared \
      --with-pdo-odbc=shared,unixODBC,%{_prefix} \
      --with-pdo-mysql=shared,%{_prefix} \
      --with-pdo-pgsql=shared,%{_prefix} \
      --with-pdo-sqlite=shared,%{_prefix} \
      --enable-json=shared \
      --enable-zip=shared \
      --with-readline \
      --enable-dbase=shared \
      --enable-debug

Actual result:
--------------
#0  0x020393ff in mail_free_searchset () from
/usr/lib/libc-client.so.1
#1  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#2  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#3  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#4  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#5  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#6  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#7  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#8  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#9  0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
#10 0x0203941b in mail_free_searchset () from
/usr/lib/libc-client.so.1
...




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48619&edit=1

Reply via email to