Bug #10890 Updated: Segmentation fault when using mcrypt function in Apache
| From: | derick@php.net | Date: | Fri, 18 May 2001 10:20:38 +0000 |
| Subject: | Bug #10890 Updated: Segmentation fault when using mcrypt function in Apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55750@lists.php.net to get a copy of this message | ||
ID: 10890
Updated by: derick
Reported By: henrik_l@mailme.dk
Old-Status: Open
Status: Feedback
Bug Type: mcrypt related
Operating system:
PHP Version: 4.0.5
Assigned To: derick
Comments:
Can you make a backtrace of it, and possible try it with libmcrypt 2.4.11 (or .12 if it's out
yet)?
Derick
Previous Comments:
---------------------------------------------------------------------------
[2001-05-18 03:58:29] henrik_l@mailme.dk
I downloaded and compiled this one:
php4-200105172345
But im still getting this in my Apache error log when i try to use Mcrypt:
[Fri May 18 09:56:24 2001] [notice] child pid 50599 exit signal Segmentation fault (11)
[Fri May 18 09:56:25 2001] [notice] child pid 50595 exit signal Segmentation fault (11)
---------------------------------------------------------------------------
[2001-05-17 17:43:40] derick@php.net
This should be fixed in CVS. Can you please try a snapshot in about two hours? (The snapshots have
to be generated, and are available on snaps.php.net)
If this does not fix the problem for you, please reopen this report.
---------------------------------------------------------------------------
[2001-05-17 17:02:29] derick@php.net
Hello,
I'm on this, probably found the bug already. I'll commit the fix as soon as I tested it
and my connection works 100%.
Derick
---------------------------------------------------------------------------
[2001-05-17 16:48:40] henrik_l@mailme.dk
I tried today with libmcrypt-2.4.11 both with --disable-posix-threads and without.
In both cases i get the segmentation fault in the apache log.
---------------------------------------------------------------------------
[2001-05-15 17:48:17] henrik_l@mailme.dk
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
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10890&edit=2