php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38705 segmentation fault OpenSSL
Submitted: 2006-09-04 03:47 UTC Modified: 2010-12-20 12:18 UTC
From: jeff at newnewmedia dot com Assigned:
Status: No Feedback Package: OpenSSL related
PHP Version: 5.1.6 OS: FreeBSD 5.5-RELEASE-p2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jeff at newnewmedia dot com
New email:
PHP Version: OS:

 

 [2006-09-04 03:47 UTC] jeff at newnewmedia dot com
Description:
------------
segmentation fault when using file_get_contents. this is my first bug report. is there anything else i can provide?

[jeff@phoenix /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)
[jeff@phoenix /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 ()



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-04 08:32 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2006-09-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-12-20 12:18 UTC] jani@php.net
-Package: Tidy +Package: OpenSSL related
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Mar 07 03:01:23 2021 UTC