php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12777 Segmentation fault (11) : mcrypt
Submitted: 2001-08-15 19:12 UTC Modified: 2001-12-13 15:43 UTC
From: mneto at argo dot com dot br Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.0CVS-2001-08-15 OS: Linux
Private report: No CVE-ID: None
 [2001-08-15 19:12 UTC] mneto at argo dot com dot br
 Hi, I've trying to use mcrypt and php (4.06 or
 4.07-dev) with no luck.  Everytime I use I got a
 [notice] child pid 16630 exit signal Segmentation
 fault (11) in my apache's error.log.

 I am using the latest libmcrypt-2.4.15 and php (a hour
 ago cvs update).

 Is this a known bug ?

 './configure' '--with-apxs' '--with-ttf' '--with-xml'
 '--with-gd' '--with-ftp' '--enable-session'
 '--enable-trans-sid' '--with-zlib'
 '--enable-inline-optimization' '--with-pgsql'
 '--with-openssl' '--with-imap=../imap'
 '--with-gettext' '--with-mcrypt=/usr/local'

 <?php

 $cipher=MCRYPT_TripleDES ;
 $mode=MCRYPT_MODE_ECB ;
 $valor = "blah";
 $key = "foo" ;

 $td = mcrypt_module_open ($cipher, "", $mode, "");
 $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td),
 MCRYPT_RAND);

 mcrypt_generic_init ($td, $key, $iv);
 $encrypted_data = mcrypt_generic ($td, $valor);
 mcrypt_generic_end ($td);

 ?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-16 01:12 UTC] derick@php.net
This is not a known bug, but I'll check it out.

Derick
 [2001-08-16 08:46 UTC] mneto at argo dot com dot br
A quick note : this also happens with 4.0.6 and fewer "extra" modules (without imap and postgresql).
 [2001-12-13 15:42 UTC] derick@php.net
Should be fixed in CVS, can you try (in about a day) the 
latest snapshot from snaps.php.net ?

Derick
 [2001-12-13 15:43 UTC] derick@php.net
Should be fixed in CVS, can you try (in about a day) the 
latest snapshot from snaps.php.net ?

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

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC