php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9383 mcrypt 2.4.9 function causes Apache to segfault
Submitted: 2001-02-21 16:10 UTC Modified: 2001-03-05 01:10 UTC
From: juraj at bednar dot sk Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.0.4pl1 OS: FreeBSD 4.2-STABLE (3 days old b
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: juraj at bednar dot sk
New email:
PHP Version: OS:

 

 [2001-02-21 16:10 UTC] juraj at bednar dot sk
The problem appears on freebsd. Everything compiled from ports.
apache version is 1.3.17. PHP is 4.0.4pl1. Mcrypt is 2.4.9 with and without --disable-posix-threads tested, does the same thing (but I don't think, that ./configure recognizes this in 2.4.x of mcrypt). Everything works just fine, until I run mcrypt_modle_open function.

#0  0x0 in ?? ()
#1  0x2842fa4a in mcrypt_enc_is_block_algorithm_mode () from /usr/local/lib/libmcrypt.so.5
#2  0x2842f4a9 in mcrypt_module_open () from /usr/local/lib/libmcrypt.so.5
#3  0x28334b87 in php_if_mcrypt_module_open (ht=4, return_value=0x827d20c, this_ptr=0x0,
    return_value_used=1) at mcrypt.c:417
#4  0x2830fa09 in execute (op_array=0x828360c) at ./zend_execute.c:1519
#5  0x2830fc5c in execute (op_array=0x828380c) at ./zend_execute.c:1559
#6  0x2830fc5c in execute (op_array=0x828390c) at ./zend_execute.c:1559
#7  0x2830fc5c in execute (op_array=0x8283a0c) at ./zend_execute.c:1559
#8  0x2830fc5c in execute (op_array=0x825fc0c) at ./zend_execute.c:1559
#9  0x2831dc4e in zend_execute_scripts (type=8, file_count=3) at zend.c:729
#10 0x2832f0e4 in php_execute_script (primary_file=0xbfbff958) at main.c:1221
#11 0x2832b9e2 in apache_php_module_main (r=0x8269038, display_source_mode=0) at sapi_apache.c:89
#12 0x2832c382 in send_php (r=0x8269038, display_source_mode=0, filename=0x0) at mod_php4.c:516
#13 0x2832c3be in send_parsed_php (r=0x8269038) at mod_php4.c:527
#14 0x80536f8 in ap_invoke_handler ()
#15 0x80626b1 in process_request_internal ()
#16 0x8062710 in ap_process_request ()
#17 0x805c012 in child_main ()
#18 0x805c1a4 in make_child ()
#19 0x805c2c1 in startup_children ()
#20 0x805c790 in standalone_main ()
#21 0x805ce4b in main ()
#22 0x804fbf1 in _start ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-21 16:16 UTC] derick@php.net
Can you check out if libmcrypt 2.4.4 or 2.4.7 works fine for you? Assigning it to me too.
 [2001-02-21 16:26 UTC] juraj at bednar dot sk
no problem. I'm just compiling it with 2.4.8, should I try only 2.4.7. Is 2.4.8 known to have some problem?
 [2001-02-21 16:40 UTC] juraj at bednar dot sk
Does not work with 2.4.8, trying 2.4.7
 [2001-02-21 16:51 UTC] juraj at bednar dot sk
2.4.7 does not work too.
 [2001-02-21 18:09 UTC] derick@php.net
After some research, it might be a portabilty issue, as this same configuration works flawlessly on linux (RedHAt 6.2)
I'll contact the author of libmcrypt
 [2001-02-26 18:10 UTC] juraj at bednar dot sk
OK, I've done some research. This code fails to run (segfaults with the same symptoms as PHP):

#include<mcrypt.h>

main() {    mcrypt_module_open("tripledes","/usr/local/lib/libmcrypt/algorithms","ecb","/usr/local/lib/libmcrypt/modes");
}

Anyway, what's interesting -> I have the module tripledes installed correctly (even in that directory). But even the bundled ciphertest program does not find any working algorithms under freebsd 4.2
 [2001-03-05 01:10 UTC] sniper@php.net
As this is clearly a bug in libmcrypt itself -> closed.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 12:01:29 2025 UTC