ID: 13399
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: mcrypt related
Operating System: Linux
PHP Version: 4.0.6, 4.0.8-dev
New Comment:

  You're right, it was libmcrypt problem. I was using libmcrypt 2.4.16b, when upgraded 
to 2.4.18 it started to work.

  Thank you very much!

Previous Comments:
------------------------------------------------------------------------

[2001-12-14 11:21:43] [EMAIL PROTECTED]

What version of libcmrypt are you using now?

Derick

------------------------------------------------------------------------

[2001-12-14 11:17:17] [EMAIL PROTECTED]

  I downloaded CVS and tried that yesterday an I just downloaded a snapshot and both 
still have the same problem.
I'm not sure, but I think the gdb backtrace shows the same information as it was 
before:

(gdb) bt
#0  0x0 in ?? ()
#1  0x1201bcba4 in mcrypt_enc_is_block_algorithm_mode (td=0x120283820) at 
mcrypt_modules.c:440
Cannot access memory at address 0x20


------------------------------------------------------------------------

[2001-12-13 15:43:39] [EMAIL PROTECTED]

Should be fixed in CVS, can you try (in about a day) the 
latest snapshot from snaps.php.net ?

Derick

------------------------------------------------------------------------

[2001-10-26 04:02:24] [EMAIL PROTECTED]

Found the prob, fix is under way.

Derick

------------------------------------------------------------------------

[2001-10-25 23:35:50] [EMAIL PROTECTED]

 Just as an update, I upgraded glibc to glibc-2.2.4-19 and I used a Compaq C/C++ 
compiler (it's an Alpha), I still get this error, even though the backtrace is 
different now (I've got CVS tree, PHP Version 4.2.0-dev). Here's the code I used:

#!/usr/local/bin/php -q
<?
function encrypt_pass($ascii_pass)
{
if ($ascii_pass) {
   $keystr="Veni, vidi, vici!!!";

   $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, $keystr, $iv);
   $enc_pas= mcrypt_generic ($td, $ascii_pass);
     mcrypt_generic_end ($td);

}else {$enc_pas="";}

     return $enc_pas;
}

echo encrypt_pass("It$myPass");
?>

Here's the gdb's backtrace:
(gdb) bt
#0  0x0 in ?? ()
#1  0x1201b97b4 in mcrypt_enc_is_block_algorithm_mode (td=0x12036ea50) at 
mcrypt_modules.c:440
Cannot access memory at address 0x20

  Please, let me know if you would like an additional information or maybe a shell on 
my machine.

  Thank you.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/?id=13399


Edit this bug report at http://bugs.php.net/?id=13399&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to