ID:               37974
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mizuiro dot ccc at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         cURL related
 Operating System: Fedora5
 PHP Version:      5CVS-2006-06-30 (snap)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




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

[2006-06-30 12:08:43] mizuiro dot ccc at gmail dot com

Description:
------------
Hello..
   I have a problem which crashes PHP when using HTTPS url.

Example: (HTTPS)  
   curl_setopt($cl,CURLOPT_URL,"https://login.yahoo.com";);
   $out = curl_exec($cl); //ERROR

Example: (NO HTTPS)
   curl_setopt($cl,CURLOPT_URL,"http://login.yahoo.com";);
   $out = curl_exec($cl); //It is OK!



Reproduce code:
---------------
[EMAIL PROTECTED] ~] /usr/local/php5/bin/php test.php

test.php:
<?
$cl = curl_init();
curl_setopt($cl,CURLOPT_URL,"https://login.yahoo.com";);
$out = curl_exec($cl);
curl_close($cl);
echo $out;
?>

Expected result:
----------------
*** glibc detected *** /usr/local/php5/bin/php: free(): invalid
pointer: 0x00973ca0 ***
======= Backtrace: =========
/lib/libc.so.6[0xc41f18]
/lib/libc.so.6(__libc_free+0x78)[0xc453ef]
/usr/local/php5/bin/php(_ZdlPvN5yaSSL5new_tE+0x23)[0x83695d3]
/usr/local/php5/bin/php(_ZN5yaSSL8ysDeleteINS_10SSL_METHODEEEvPT_+0x24)[0x8361c74]
/usr/local/php5/bin/php(_ZN5yaSSL7SSL_CTXD1Ev+0x2a)[0x836d2aa]
/usr/local/php5/bin/php(_ZN5yaSSL8ysDeleteINS_7SSL_CTXEEEvPT_+0x26)[0x8361886]
/usr/local/php5/bin/php(SSL_CTX_free+0x1f)[0x835d05f]
/usr/lib/libcurl.so.3(Curl_ossl_close+0x66)[0x575ab6]
/usr/lib/libcurl.so.3(Curl_ssl_close+0x26)[0x5840f6]
/usr/lib/libcurl.so.3(Curl_disconnect+0xf2)[0x56d882]
/usr/lib/libcurl.so.3(Curl_connect+0xd49)[0x56e969]
/usr/lib/libcurl.so.3[0x57a79b]
/usr/lib/libcurl.so.3(Curl_perform+0xf0)[0x57cd50]
/usr/lib/libcurl.so.3(curl_easy_perform+0x3c)[0x57d21c]
/usr/local/php5/bin/php(zif_curl_exec+0x98)[0x80d59e8]
/usr/local/php5/bin/php[0x82eb2a8]
/usr/local/php5/bin/php(execute+0x12d)[0x82dca4d]
/usr/local/php5/bin/php(zend_execute_scripts+0x217)[0x82c0bf7]
/usr/local/php5/bin/php(php_execute_script+0x1a2)[0x8284a42]
/usr/local/php5/bin/php(main+0x11d4)[0x8338324]
/lib/libc.so.6(__libc_start_main+0xdc)[0xbf3724]
/usr/local/php5/bin/php[0x80b3e11]
======= Memory map: ========
00101000-00106000 r-xp 00000000 fd:00 6286804    /lib/libcrypt-2.4.so
00106000-00107000 r-xp 00004000 fd:00 6286804    /lib/libcrypt-2.4.so
00107000-00108000 rwxp 00005000 fd:00 6286804    /lib/libcrypt-2.4.so
00108000-0012f000 rwxp 00108000 00:00 0 
0012f000-0015e000 r-xp 00000000 fd:00 4951278   
/usr/lib/libidn.so.11.5.16
0015e000-0015f000 rwxp 0002f000 fd:00 4951278   
/usr/lib/libidn.so.11.5.16
001c5000-001d4000 r-xp 00000000 fd:00 6286508    /lib/libresolv-2.4.so
001d4000-001d5000 r-xp 0000e000 fd:00 6286508    /lib/libresolv-2.4.so
001d5000-001d6000 rwxp 0000f000 fd:00 6286508    /lib/libresolv-2.4.so
001d6000-001d8000 rwxp 001d6000 00:00 0 
00311000-0031c000 r-xp 00000000 fd:00 6285329   
/lib/libgcc_s-4.1.1-20060525.so.1
0031c000-0031d000 rwxp 0000a000 fd:00 6285329   
/lib/libgcc_s-4.1.1-20060525.so.1
00400000-00473000 r-xp 00000000 fd:00 4956073   
/usr/lib/libkrb5.so.3.2
00473000-00475000 rwxp 00073000 fd:00 4956073   
/usr/lib/libkrb5.so.3.2
00477000-0047a000 r-xp 00000000 fd:00 4955666   
/usr/lib/libkrb5support.so.0.0
0047a000-0047b000 rwxp 00002000 fd:00 4955666   
/usr/lib/libkrb5support.so.0.0
0047d000-004a1000 r-xp 00000000 fd:00 4955742   
/usr/lib/libk5crypto.so.3.0
004a1000-004a2000 rwxp 00024000 fd:00 4955742   
/usr/lib/libk5crypto.so.3.0
004e5000-004fd000 r-xp 00000000 fd:00 4956074   
/usr/lib/libgssapi_krb5.so.2.2
004fd000-004fe000 rwxp 00017000 fd:00 4956074   
/usr/lib/libgssapi_krb5.so.2.2
00557000-0058f000 r-xp 00000000 fd:00 4955203   
/usr/lib/libcurl.so.3.0.0
0058f000-00590000 rwxp 00038000 fd:00 4955203   
/usr/lib/libcurl.so.3.0.0
0066a000-0066c000 r-xp 00000000 fd:00 5696100   
/usr/local/Zend/lib/ZendExtensionManager.so
0066c000-0066d000 rwxp 00002000 fd:00 5696100   
/usr/local/Zend/lib/ZendExtensionManager.so
006a4000-007c8000 r-xp 00000000 fd:00 4947104   
/usr/lib/libxml2.so.2.6.23
007c8000-007d0000 rwxp 00124000 fd:00 4947104   
/usr/lib/libxml2.so.2.6.23
007d0000-007d1000 rwxp 007d0000 00:00 0 
007d3000-007dc000 r-xp 00000000 fd:00 6285336   
/lib/libnss_files-2.4.so
007dc000-007dd000 r-xp 00008000 fd:00 6285336   
/lib/libnss_files-2.4.so
007dd000-007de000 rwxp 00009000 fd:00 6285336   
/lib/libnss_files-2.4.so
007e0000-007e4000 r-xp 00000000 fd:00 6285340   
/lib/libnss_dns-2.4.so
007e4000-007e5000 r-xp 00003000 fd:00 6285340   
/lib/libnss_dns-2.4.so
007e5000-007e6000 rwxp 00004000 fd:00 6285340   
/lib/libnss_dns-2.4.so
008e2000-00909000 r-xp 00000000 fd:00 4947489   
/usr/lib/libpng12.so.0.1.2.8
00909000-0090a000 rwxp 00026000 fd:00 4947489   
/usr/lib/libpng12.so.0.1.2.8
00930000-00971000 r-xp 00000000 fd:00 6286478    /lib/libssl.so.0.9.8b
00971000-00975000 rwxp 00040000 fd:00 6286478    /lib/libssl.so.0.9.8b
00bc0000-00bc1000 r-xpAborted

Actual result:
--------------
echo html code


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


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

Reply via email to