Edit report at https://bugs.php.net/bug.php?id=64267edit=1
ID: 64267
User updated by:andrew+bugsphp at wimpyprogrammer dot com
Reported by:andrew+bugsphp at wimpyprogrammer dot com
Summary:ldap_bind crash for ldaps://
-Status: Feedback
+Status: Open
Type: Bug
Package:LDAP related
Operating System: Windows Server 2008 R2 x64
PHP Version:5.4.12
Block user comment: N
Private report: N
New Comment:
I just retested this using snapshot r31a6f8b of PHP 5.12. The problem still
occurs.
The backtrace is below.
Do I understand you correctly that the problem lies outside of the PHP files?
I
searched my entire system for *eay32.dll files and only found the ones
(libeay32.dll
and ssleay32.dll) in the PHP program files. I used Process Monitor to record
any
activity containing eay32.dll in the path. I recycled the IIS application
pool and
then ran the test script, and only the libeay32.dll and ssleay32.dll files in
C:\PROGRA~2\PHP\PHP_5_4_12_r31a6f8b_NTS_x86\ were recorded. So I don't
understand if
this is something on my end or a problem with the 5.12 packages. If the
problem is
on my end, I'm surprised everything works on 5.11.
Thank you!
Thread 0 - System ID 2716
Entry point php_cgi+3a19
Create time 2/28/2013 1:05:07 PM
Time spent in user mode 0 Days 0:0:0.625
Time spent in kernel mode 0 Days 0:0:0.187
Full Call Stack
Function Arg 1 Arg 2 Arg 3 Arg 4 Source
libeay32!OPENSSL_showfatal+c0 0001 0064 01a91c90
0031b80c
g:\root\pvfsdev\windows\openssl-1.0.0d\crypto\cryptlib.c @ 831 + f
libeay32!bn_mul_high+75f 01b198b4 01b198a4 01a91c90 0032e0ee
g:\root\pvfsdev\windows\openssl-1.0.0d\crypto\bn\bn_mul.c @ 890 + 1e
ssleay32!SSLv3_client_method+18c 01a91c90 01ae3df8 71c36bb8
01a91c90
ssleay32!SSL_free+19e 01a91c90 01ae3df8 71c4659b 01ae3df8
php_ldap!get_module+5bb8 01ae3df8 01ae3dd8 01ae3c38 71c46907
php_ldap!get_module+1559b 01ae3c38 71c552e8 0014 71b52dec
php_ldap!get_module+15907 01ae3c38 01ae3c38 0157a190
php_ldap!get_module+16364 01ae3c38 0157a190 71c3b949
php_ldap!get_module+a7cd 0002
Exception Information
LIBEAY32!OPENSSL_SHOWFATAL+C0In php-
cgi__PID__1436__Date__02_28_2013__Time_01_05_08PM__534__Second_Chance_Exception_C
005.dmp the assembly instruction at libeay32!OPENSSL_showfatal+c0 in C:\Program
Files
(x86)\PHP\PHP_5_4_12_r31a6f8b_NTS_x86\libeay32.dll from The OpenSSL Project,
http://www.openssl.org/ has caused an access violation exception (0xC005)
when
trying to write to memory location 0x0001 on thread 0
Module Information
Image Name: C:\Program Files (x86)\PHP\PHP_5_4_12_r31a6f8b_NTS_x86\libeay32.dll
Symbol Type: PDB
Base address: 0x00905a4d Time Stamp: Wed Feb 13 05:36:27 2013
Checksum: 0x65006200 Comments:
COM DLL: False Company Name: The OpenSSL Project, http://www.openssl.org/
ISAPIExtension: False File Description: OpenSSL Shared Library
ISAPIFilter: False File Version: 0.9.8y
Managed DLL: False Internal Name: libeay32
VB DLL: False Legal Copyright: Copyright © 1998-2007 The OpenSSL Project.
Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All rights reserved.
Loaded Image Name: libeay32.dll Legal Trademarks:
Mapped Image Name: Original filename: libeay32.dll
Module name: libeay32 Private Build:
Single Threaded: False Product Name: The OpenSSL Toolkit
Module Size: 1,020.00 KBytes Product Version: 0.9.8y
Symbol File Name:
c:\users\administrator\desktop\php-debug-pack-5.4.12-nts-win32-
vc9-x86\libeay32.pdb Special Build:
Previous Comments:
[2013-02-22 04:31:26] paj...@php.net
PHP is loading openssl 1.0.0 while it is built and requires 0.9.x series.
That's
the cause of the crash (openssl is very sensible and break ABI between these
versions).
Snapshots are available here:
http://windows.php.net/downloads/snaps/php-5.4/
Please try again and be sure to only have openssl 0.9.x (bundled with the
release) in the PATH used by the PHP processes.
[2013-02-21 20:58:37] andrew+bugsphp at wimpyprogrammer dot com
Here's the backtrace. I hope I captured it correctly. I struggled to find a
debug file for libeay32.dll and ended up using
http://www.orangefs.org/trac/orangefs/browser/branches/windows-client/openssl-
windows/bin64/debug?rev=8844. Thanks!
-
Thread 0 - System ID 3660
Entry point php_cgi!mainCRTStartup
Create time 2/21/2013 3:07:58 PM
Time spent in user mode 0 Days 0:0:0.656
Time