Bug #10890: Segmentation fault when using mcrypt function in Apache
| From: | henrik_l at mailme dot dk | Date: | Tue, 15 May 2001 21:48:17 +0000 |
| Subject: | Bug #10890: Segmentation fault when using mcrypt function in Apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55388@lists.php.net to get a copy of this message | ||
From: henrik_l@mailme.dk
Operating system: FreeBSD 4.1.1
PHP version: 4.0.5
PHP Bug Type: mcrypt related
Bug description: Segmentation fault when using mcrypt function in Apache
If i try to run this script:
<?php
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
$td = mcrypt_module_open (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, "");
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
mcrypt_generic_init ($td, $key, $iv);
$encrypted_data = mcrypt_generic ($td, $input);
mcrypt_generic_end ($td);
echo $encrypted_data;
?>
I get this in my Apache log file:
[Tue May 15 23:30:13 2001] [notice] child pid 22372 exit signal Segmentation fault (11)
[Tue May 15 23:30:13 2001] [notice] child pid 22371 exit signal Segmentation fault (11)
I did configure libmcrypt 2.4.9 with:
./configure --disable-posix-threads
And PHP 4.0.5 with:
./configure --with-mysql=/usr/local/mysql --with-gd=/usr/local --with-t1lib --with-ttf
--with-jpeg-dir --with-png-dir --with-tiff-dir --with-zlib-dir --with-xpm-dir --with-imap
--with-gettext --with-zlib --with-pdflib --enable-exif --enable-ftp --enable-bcmath --with-mcrypt
--with-config-file-path=/usr/local/etc --with-apxs=/usr/local/apache/bin/apxs
--
Edit Bug report at: http://bugs.php.net/?id=10890&edit=1