Last modified: 2014-02-12 23:32:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46142, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44142 - mcrypt_rand_iv() not reliable with MCRYPT_DEV_URANDOM on Windows
mcrypt_rand_iv() not reliable with MCRYPT_DEV_URANDOM on Windows
Status: RESOLVED DUPLICATE of bug 35894
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-19 02:36 UTC by Mark A. Hershberger
Modified: 2014-02-12 23:32 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2013-01-19 02:36:01 UTC
Upstream bug is https://bugs.php.net/bug.php?id=52523 but I experienced this today with PHP 5.3.5 on a host where phpinfo reports the system is "Windows NT A1-WHW-B69 6.0 build 6002 (Windows Server 2008 Web Server Edition Service Pack 2) i586"

Webserver died with a fatal error during installation:


           PHP Fatal error:  mcrypt_create_iv() [<a
           href='function.mcrypt-create-iv'>function.mcrypt-create-iv</a>]:
           Could not gather sufficient random data in
           E:\...\Web\includes\CryptRand.php on line 309

As far as I could tell, There was no way to work around this or even see if the error would pop up in the code, so I had to hack CryptRand.php so that MCRYPT_RAND was used instead of MCRYPT_DEV_URANDOM.

Only then could installation complete.
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2013-10-06 12:40:52 UTC
*** Bug 55364 has been marked as a duplicate of this bug. ***
Comment 2 Jesús Martínez Novo (Ciencia Al Poder) 2013-10-06 12:59:05 UTC

*** This bug has been marked as a duplicate of bug 35894 ***
Comment 3 Daniel Friesen 2013-10-06 13:11:56 UTC
(In reply to comment #0)
> As far as I could tell, There was no way to work around this or even see if
> the
> error would pop up in the code, so I had to hack CryptRand.php so that
> MCRYPT_RAND was used instead of MCRYPT_DEV_URANDOM.
> 
> Only then could installation complete.

This is not a good way to work around this issue, I've explained in detail here:
https://bugzilla.wikimedia.org/show_bug.cgi?id=55364#c4

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links