From: jeff at newnewmedia dot com Operating system: FreeBSD 5.5-RELEASE-p2 PHP version: 5.1.6 PHP Bug Type: Reproducible crash Bug description: segmentation fault OpenSSL
Description: ------------ segmentation fault when using file_get_contents. this is my first bug report. is there anything else i can provide? [EMAIL PROTECTED] /home/www/loiselles.com/jeff/projects/Services_Plaxo]$ php example.php PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure in /home/www/loiselles.com/jeff/projects/Services_Plaxo/Services_Plaxo.php on line 134 Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure in /home/www/loiselles.com/jeff/projects/Services_Plaxo/Services_Plaxo.php on line 134 PHP Warning: file_get_contents(https://api.plaxo.com/rest?package=['Header','ProtoVer','1','Client','Services_Plaxo','OS','Unknown','Platform','Unknown']%0a['/Header']%0a['CreateGUID']%0a['/CreateGUID']): failed to open stream: HTTP request failed! in /home/www/loiselles.com/jeff/projects/Services_Plaxo/Services_Plaxo.php on line 134 Warning: file_get_contents(https://api.plaxo.com/rest?package=['Header','ProtoVer','1','Client','Services_Plaxo','OS','Unknown','Platform','Unknown']%0a['/Header']%0a['CreateGUID']%0a['/CreateGUID']): failed to open stream: HTTP request failed! in /home/www/loiselles.com/jeff/projects/Services_Plaxo/Services_Plaxo.php on line 134 Segmentation fault (core dumped) [EMAIL PROTECTED] /home/www/loiselles.com/jeff/projects/Services_Plaxo]$ gdb php php.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)... Core was generated by `php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypt.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.2 Reading symbols from /lib/libm.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.3 Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libxml2.so.5 Reading symbols from /lib/libz.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.2 Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.5 Reading symbols from /usr/local/lib/php/20050922/imagick.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/imagick.so Reading symbols from /usr/local/lib/libGraphicsMagick.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libGraphicsMagick.so.1 Reading symbols from /usr/local/lib/libjbig.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libjbig.so.1 Reading symbols from /usr/local/lib/liblcms.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/liblcms.so.1 Reading symbols from /usr/local/lib/libtiff.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libtiff.so.4 Reading symbols from /usr/local/lib/libfreetype.so.9...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libfreetype.so.9 Reading symbols from /usr/local/lib/libjasper.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libjasper.so.4 Reading symbols from /usr/local/lib/libjpeg.so.9...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libjpeg.so.9 Reading symbols from /usr/local/lib/libpng.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libpng.so.5 Reading symbols from /usr/local/lib/libwmflite.so.7...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libwmflite.so.7 Reading symbols from /usr/local/lib/compat/pkg/libdpstk.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/compat/pkg/libdpstk.so.1 Reading symbols from /usr/X11R6/lib/libdps.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libdps.so.1 Reading symbols from /usr/X11R6/lib/libXext.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 Reading symbols from /usr/X11R6/lib/libSM.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libSM.so.6 Reading symbols from /usr/X11R6/lib/libICE.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libICE.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/lib/libbz2.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libbz2.so.1 Reading symbols from /usr/local/lib/libfpx.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libfpx.so.1 Reading symbols from /usr/X11R6/lib/libXt.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libXt.so.6 Reading symbols from /usr/lib/libstdc++.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libstdc++.so.4 Reading symbols from /usr/local/lib/php/20050922/session.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/session.so Reading symbols from /usr/local/lib/php/20050922/zlib.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/zlib.so Reading symbols from /usr/local/lib/php/20050922/posix.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/posix.so Reading symbols from /usr/local/lib/php/20050922/sqlite.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/sqlite.so Reading symbols from /usr/local/lib/php/20050922/pcre.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/pcre.so Reading symbols from /usr/local/lib/php/20050922/mysql.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/mysql.so Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.14...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.14 Reading symbols from /usr/local/lib/php/20050922/ctype.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/ctype.so Reading symbols from /usr/local/lib/php/20050922/xml.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/xml.so Reading symbols from /usr/local/lib/php/20050922/openssl.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/openssl.so Reading symbols from /usr/lib/libssl.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libssl.so.3 Reading symbols from /lib/libcrypto.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypto.so.3 Reading symbols from /usr/local/lib/php/20050922/simplexml.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/simplexml.so Reading symbols from /usr/local/lib/php/20050922/dom.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/dom.so Reading symbols from /usr/local/lib/php/20050922/soap.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/soap.so Reading symbols from /usr/local/lib/php/20050922/tidy.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/tidy.so Reading symbols from /usr/local/lib/libtidy-0.99.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libtidy-0.99.so.0 Reading symbols from /usr/local/lib/php/20050922/curl.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/curl.so Reading symbols from /usr/local/lib/libcurl.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libcurl.so.3 Reading symbols from /usr/local/lib/php/20050922/xmlwriter.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/xmlwriter.so Reading symbols from /usr/local/lib/php/20050922/iconv.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/iconv.so Reading symbols from /usr/local/lib/php/20050922/xmlreader.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/xmlreader.so Reading symbols from /usr/local/lib/php/20050922/pdo.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/pdo.so Reading symbols from /usr/local/lib/php/20050922/tokenizer.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/tokenizer.so Reading symbols from /usr/local/lib/php/20050922/gd.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/gd.so Reading symbols from /usr/local/lib/libt1.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libt1.so.5 Reading symbols from /usr/X11R6/lib/libXpm.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/X11R6/lib/libXpm.so.4 Reading symbols from /usr/local/lib/php/20050922/zip.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/zip.so Reading symbols from /usr/local/lib/php/20050922/mysqli.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/mysqli.so Reading symbols from /usr/local/lib/php/20050922/ldap.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/php/20050922/ldap.so Reading symbols from /usr/local/lib/libldap-2.3.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libldap-2.3.so.2 Reading symbols from /usr/local/lib/liblber-2.3.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/liblber-2.3.so.2 Reading symbols from /usr/local/lib/libsasl2.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libsasl2.so.2 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x081245b1 in _erealloc () (gdb) backtrace #0 0x081245b1 in _erealloc () #1 0x08105fc5 in xbuf_format_converter () #2 0x08106116 in vspprintf () #3 0x081017aa in php_verror () #4 0x08101c09 in php_error_docref0 () #5 0x28d4da4b in handle_ssl_error () from /usr/local/lib/php/20050922/openssl.so #6 0x28d4db89 in php_openssl_sockop_read () from /usr/local/lib/php/20050922/openssl.so #7 0x08110dc1 in php_stream_fill_read_buffer () #8 0x08111282 in _php_stream_get_line () #9 0x080f1c07 in php_stream_url_wrap_http_ex () #10 0x080f2679 in php_stream_url_wrap_http () #11 0x081129a4 in _php_stream_open_wrapper_ex () #12 0x080b656d in zif_file_get_contents () #13 0x0814f7db in zend_do_fcall_common_helper_SPEC () #14 0x0815525c in ZEND_DO_FCALL_SPEC_CONST_HANDLER () #15 0x0814f199 in execute () #16 0x0814f8c8 in zend_do_fcall_common_helper_SPEC () #17 0x0814fc19 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER () #18 0x0814f199 in execute () #19 0x0814f8c8 in zend_do_fcall_common_helper_SPEC () #20 0x0814fc19 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER () #21 0x0814f199 in execute () #22 0x0814f8c8 in zend_do_fcall_common_helper_SPEC () #23 0x0814fc19 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER () #24 0x0814f199 in execute () #25 0x0814f8c8 in zend_do_fcall_common_helper_SPEC () #26 0x0814fc19 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER () #27 0x0814f199 in execute () #28 0x08138844 in zend_execute_scripts () ---Type <return> to continue, or q <return> to quit--- #29 0x081036e6 in php_execute_script () #30 0x081b258c in main () -- Edit bug report at http://bugs.php.net/?id=38705&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38705&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38705&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38705&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38705&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38705&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38705&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38705&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38705&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38705&r=support Expected behavior: http://bugs.php.net/fix.php?id=38705&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38705&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38705&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38705&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38705&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38705&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38705&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38705&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38705&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38705&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38705&r=mysqlcfg
