Bug #72303 [NEW]: Bus error with segfault using curl with ssl

From: Date: Tue, 31 May 2016 14:34:50 +0000
Subject: Bug #72303 [NEW]: Bus error with segfault using curl with ssl
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201367@lists.php.net to get a copy of this message
From:             daniel dot ylitalo at mytaste dot com
Operating system: FreeBSD 10.3
PHP version:      5.6.22
Package:          cURL related
Bug Type:         Bug
Bug description:Bus error with segfault using curl with ssl

Description:
------------
php segfaults when hitting this scenario:

(gdb) bt
#0  0x0000000801b148dd in free () from /lib/libc.so.7
#1  0x00000008058be495 in CRYPTO_free () from /lib/libcrypto.so.7
#2  0x0000000805dadd24 in SSL_CTX_set_alpn_protos () from
/usr/local/lib/libssl.so.8
#3  0x000000080ff00007 in curl_pushheader_byname () from
/usr/local/lib/libcurl.so.4
#4  0x000000080ff03f3d in curl_pushheader_byname () from
/usr/local/lib/libcurl.so.4
#5  0x000000080fec241d in curl_formfree () from
/usr/local/lib/libcurl.so.4
#6  0x000000080fed2091 in curl_formfree () from
/usr/local/lib/libcurl.so.4
#7  0x000000080fee5e26 in curl_multi_perform () from
/usr/local/lib/libcurl.so.4
#8  0x000000080fee5a0a in curl_multi_perform () from
/usr/local/lib/libcurl.so.4
#9  0x000000080fedf31c in curl_easy_perform () from
/usr/local/lib/libcurl.so.4
#10 0x000000080fc9fa1a in zif_curl_exec () from
/usr/local/lib/php/20131226/curl.so
#11 0x0000000802043801 in xdebug_execute_internal () from
/usr/local/lib/php/20131226/xdebug.so
#12 0x00000000005ec4f6 in zend_do_fcall_common_helper_SPEC ()
#13 0x00000000005ad8a8 in execute_ex ()
#14 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#15 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#16 0x00000000005ad8a8 in execute_ex ()
#17 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#18 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#19 0x00000000005ad8a8 in execute_ex ()
#20 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#21 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#22 0x00000000005ad8a8 in execute_ex ()
#23 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#24 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#25 0x00000000005ad8a8 in execute_ex ()
#26 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#27 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#28 0x00000000005ad8a8 in execute_ex ()
#29 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#30 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#31 0x00000000005ad8a8 in execute_ex ()
#32 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#33 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#34 0x00000000005ad8a8 in execute_ex ()
#35 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#36 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#37 0x00000000005ad8a8 in execute_ex ()
#38 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#39 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#40 0x00000000005ad8a8 in execute_ex ()
#41 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#42 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#43 0x00000000005ad8a8 in execute_ex ()
#44 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#45 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#46 0x00000000005ad8a8 in execute_ex ()
#47 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#48 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#49 0x00000000005ad8a8 in execute_ex ()
#50 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#51 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#52 0x00000000005ad8a8 in execute_ex ()
#53 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
---Type <return> to continue, or q <return> to quit---
#54 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#55 0x00000000005ad8a8 in execute_ex ()
#56 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#57 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#58 0x00000000005ad8a8 in execute_ex ()
#59 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#60 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#61 0x00000000005ad8a8 in execute_ex ()
#62 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#63 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#64 0x00000000005ad8a8 in execute_ex ()
#65 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#66 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#67 0x00000000005ad8a8 in execute_ex ()
#68 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#69 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#70 0x00000000005ad8a8 in execute_ex ()
#71 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#72 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#73 0x00000000005ad8a8 in execute_ex ()
#74 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#75 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#76 0x00000000005ad8a8 in execute_ex ()
#77 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#78 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#79 0x00000000005ad8a8 in execute_ex ()
#80 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#81 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#82 0x00000000005ad8a8 in execute_ex ()
#83 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#84 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#85 0x00000000005ad8a8 in execute_ex ()
#86 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#87 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#88 0x00000000005ad8a8 in execute_ex ()
#89 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#90 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#91 0x00000000005ad8a8 in execute_ex ()
#92 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#93 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#94 0x00000000005ad8a8 in execute_ex ()
#95 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#96 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#97 0x00000000005ad8a8 in execute_ex ()
#98 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#99 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#100 0x00000000005ad8a8 in execute_ex ()
#101 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#102 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#103 0x00000000005ad8a8 in execute_ex ()
#104 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#105 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#106 0x00000000005ad8a8 in execute_ex ()
#107 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
---Type <return> to continue, or q <return> to quit---
#108 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#109 0x00000000005ad8a8 in execute_ex ()
#110 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#111 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#112 0x00000000005ad8a8 in execute_ex ()
#113 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#114 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#115 0x00000000005ad8a8 in execute_ex ()
#116 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#117 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#118 0x00000000005ad8a8 in execute_ex ()
#119 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#120 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#121 0x00000000005ad8a8 in execute_ex ()
#122 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#123 0x0000000000578a3e in zend_call_function ()
#124 0x00000000004b3394 in zif_call_user_func_array ()
#125 0x0000000802043801 in xdebug_execute_internal () from
/usr/local/lib/php/20131226/xdebug.so
#126 0x00000000005ec4f6 in zend_do_fcall_common_helper_SPEC ()
#127 0x00000000005ad8a8 in execute_ex ()
#128 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#129 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#130 0x00000000005ad8a8 in execute_ex ()
#131 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#132 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#133 0x00000000005ad8a8 in execute_ex ()
#134 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#135 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#136 0x00000000005ad8a8 in execute_ex ()
#137 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#138 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#139 0x00000000005ad8a8 in execute_ex ()
#140 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#141 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#142 0x00000000005ad8a8 in execute_ex ()
#143 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#144 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#145 0x00000000005ad8a8 in execute_ex ()
#146 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#147 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#148 0x00000000005ad8a8 in execute_ex ()
#149 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#150 0x00000000005ec7ca in zend_do_fcall_common_helper_SPEC ()
#151 0x00000000005ad8a8 in execute_ex ()
#152 0x00000008020434c6 in xdebug_execute_ex () from
/usr/local/lib/php/20131226/xdebug.so
#153 0x0000000000585a23 in zend_execute_scripts ()
#154 0x000000000052dd93 in php_execute_script ()
#155 0x0000000000608b38 in do_cli ()
#156 0x00000000006079bf in main ()



-- 
Edit bug report at https://bugs.php.net/bug.php?id=72303&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72303&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72303&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72303&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72303&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72303&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72303&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72303&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72303&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72303&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72303&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72303&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72303&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72303&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72303&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72303&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72303&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72303&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72303&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72303&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72303&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#201367) next »