Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26937 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10043 invoked by uid 1010); 13 Dec 2006 18:18:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10021 invoked from network); 13 Dec 2006 18:18:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2006 18:18:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:46436] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/04-38081-B8320854 for ; Wed, 13 Dec 2006 11:00:46 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GuWWY-0001De-Kd for internals@lists.php.net; Wed, 13 Dec 2006 17:00:02 +0100 Received: from h24-108-64-161.sbm.shawcable.net ([24.108.64.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 17:00:02 +0100 Received: from richard by h24-108-64-161.sbm.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 17:00:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Wed, 13 Dec 2006 07:49:14 -0800 Lines: 84 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: h24-108-64-161.sbm.shawcable.net User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Sender: news Subject: Segmentation Fault From: richard@hddbroker.com (Richard Morris) Hello all, I was told this might be a better list to ask this question... I was experimenting with the imap_* library functions trying to see if I could get a PHP script to access a folder on our IMAP server and I ran into a problem. I was trying to get a simple script to work which simply opened a connection to the mail server and then closed it but when I ran the script it caused a segmentation fault on the imap_open line. Here is the code I was trying to run: and on the CLI it produced the output: Segmentation fault (core dumped) I configured my PHP installation with --enable-debug and using the core dump, I got the following backtrace: #0 0x00144019 in SSL_SESSION_hash () from /lib/libssl.so.4 #1 0x001ca484 in lh_free () from /lib/libcrypto.so.4 #2 0x001ca5f3 in lh_delete () from /lib/libcrypto.so.4 #3 0x00148141 in SSL_CTX_get_timeout () from /lib/libssl.so.4 #4 0x001ca56e in lh_retrieve () from /lib/libcrypto.so.4 #5 0x001481f7 in SSL_CTX_flush_sessions () from /lib/libssl.so.4 #6 0x001441a3 in SSL_CTX_free () from /lib/libssl.so.4 #7 0x005185ac in ssl_close () from /usr/lib/libc-client.so.0 #8 0x0051851f in ssl_close () from /usr/lib/libc-client.so.0 #9 0x005176c3 in ssl_aopen () from /usr/lib/libc-client.so.0 #10 0x0054a697 in imap_open () from /usr/lib/libc-client.so.0 #11 0x00523a90 in mail_open () from /usr/lib/libc-client.so.0 #12 0x0814dcfc in zif_imap_open (ht=3, return_value=0xb7c8bc9c, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /usr/local/src/php-5.2.0/ext/imap/php_imap.c:780 #13 0x08332c92 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfe372e0) at /usr/local/src/php-5.2.0/Zend/zend_vm_execute.h:200 #14 0x08332419 in execute (op_array=0xb7c8b68c) at /usr/local/src/php-5.2.0/Zend/zend_vm_execute.h:92 #15 0x0831aa9b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php-5.2.0/Zend/zend.c:1097 #16 0x082e4a51 in php_execute_script (primary_file=0xbfe397d0) at /usr/local/src/php-5.2.0/main/main.c:1758 #17 0x08393462 in main (argc=2, argv=0xbfe398a4) at /usr/local/src/php-5.2.0/sapi/cli/php_cli.c:1108 It doesn't mean too much to me but I thought someone might be able to understand it. Here is some additional details that might be needed: PHP Version: PHP 5.2.0 (cli) (built: Nov 3 2006 06:07:03) OS: CentOS 4.4 i386 RPM packages installed: - openssl-0.9.7a-43.14 - openssl-devel-0.9.7a-43.14 - libc-client-2002e-14 - libc-client-devel-2002e-14 There was a bug opened that has the same segmentation problem but the scenario seems to be different including using a different version of PHP. PHP Bug #39726 (http://bugs.php.net/bug.php?id=39726) If there are any other details I can provide or if someone could point my in another direction that would help, I would really appreciate it. Thank you. -- Richard Morris HDD Broker, Inc. Toll-Free: +1 866 960-3331 International: +1 250 474-6022 Fax: +1 250 474-6099 E-Mail: richard@hddbroker.com Web Site: www.hddbroker.com