Bug #65602 [Com]: PHP 5.5.x stalls: Allowed memory size exhausted. openssl_x509_parse() problem ?

From: Date: Fri, 10 Jan 2014 17:35:46 +0000
Subject: Bug #65602 [Com]: PHP 5.5.x stalls: Allowed memory size exhausted. openssl_x509_parse() problem ?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183696@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65602&edit=1 ID: 65602 Comment by: nginx-mark at zedwood dot com Reported by: mail at tgries dot de Summary: PHP 5.5.x stalls: Allowed memory size exhausted. openssl_x509_parse() problem ? Status: Open Type: Bug Package: OpenSSL related Operating System: Linux PHP Version: 5.5.3 Block user comment: N Private report: N New Comment: The function, openssl_x509_parse() works fine on most certificates. I think it is getting tripped up on a certain certificate, perhaps the google cert with 100s of subjectAltNames. Can you post the certificate which triggered the out of memory issue, it will help to research the issue if the behavior is reproducible. Previous Comments: ------------------------------------------------------------------------ [2013-09-01 23:08:18] mail at tgries dot de again, just to make it clear: in most of the cases it works. Stalls only now and then. Webserver is Apache, and a restart solves the problem immediately, but this is not a solution. I suppose, there's a bug in PHP or openssl function. ------------------------------------------------------------------------ [2013-09-01 23:05:07] mail at tgries dot de Description: ------------ I noticed now and then the following problem with the new 5.5.2 and 5.5.3 version, which makes the PHP stalling in a short script which uses openssl calls to print server certificates. PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 736849521 bytes) in /srv/www-ssl/scripts/MySimpleCertificateViewer/index.php on line 70 line 70: $certArray = openssl_x509_parse( $cp ); It is currently unclear, why this stall happens, but I want to early report this problem to you developers. The script is short and available here https://github.com/Wikinaut/MySimpleCertificateViewer . Test script: --------------- The script is short and available here https://github.com/Wikinaut/MySimpleCertificateViewer . ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65602&edit=1

« previous php.bugs (#183696) next »