Bug #13068 Updated: mcrypt_module_open causes seg fault
| From: | scott at incursio dot com | Date: | Fri, 31 Aug 2001 00:24:53 +0000 |
| Subject: | Bug #13068 Updated: mcrypt_module_open causes seg fault | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64760@lists.php.net to get a copy of this message | ||
ID: 13068
User updated by: scott@incursio.com
Reported By: scott@incursio.com
Old Status: Open
Status: Closed
Bug Type: mcrypt related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Correction, and solution.
It turns out that it wasn't mcrypt_module_open that was seg faulting, but mcrypt_decrypt. The
solution was that I didn't have a generic_init call.
Previous Comments:
------------------------------------------------------------------------
[2001-08-30 17:32:01] scott@incursio.com
Running PHP 4.0.6 and libmcrypt 2.4.15 on a Linux box (2.4.x kernel).
I've narrowed it down to the call to mcrypt_module_open. That's the one that hoses me.
$cipher = "des";
$td = mcrypt_module_open ($cipher, "", MCRYPT_MODE_CBC, "");
Sometimes it works, other times, I get seg faults, which would rule out library permissions, etc.
Any ideas?
Scott
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13068&edit=1