PHP 4.0 Bug #9801: mcrypt_encrypt dumps core
| From: | michael at carceri dot dk | Date: | Sat, 17 Mar 2001 01:58:56 +0000 |
| Subject: | PHP 4.0 Bug #9801: mcrypt_encrypt dumps core | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49180@lists.php.net to get a copy of this message | ||
From: michael@carceri.dk
Operating system: Linux 2.4.1
PHP version: 4.0 Latest CVS (16/03/2001)
PHP Bug Type: mcrypt related
Bug description: mcrypt_encrypt dumps core
When I run .php files under Apache (1.3.19) PHP sometimes crash. I can run the same file several
times, and only sometimes is crashes.
This is what is recorded in the apache log (a lot of them):
[Fri Mar 9 19:24:51 2001] [notice] child pid 22845 exit signal Segmentation fault (11)
The following code can reproduce the crash:
$input = "Teststring";
$key = "gQ8V(|!kQ§lmJ8*~/HajI~lNM.-HzJqy";
$iv = "w81kaMfJq(1lcJaQ+m BsjedLq!§230?";
$output = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $input, MCRYPT_MODE_CBC, $iv);
The configure line is: --enable-track-vars --with-mysql=/usr/local/mysql --with-mhash --with-mcrypt
--with-apxs=/usr/local/apache/bin/apxs
--
Edit Bug report at: http://bugs.php.net/?id=9801&edit=1