ID: 41545 Updated by: [EMAIL PROTECTED] Reported By: wdierkes at 5dollarwhitebox dot org -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Redhat Enterprise Linux ES 3 PHP Version: 5.2.2 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-05-30 23:53:41] wdierkes at 5dollarwhitebox dot org The problem does not exist when php-ldap extension is *not* loaded. unloading ldap from the running PHP fixes the problem. ------------------------------------------------------------------------ [2007-05-30 22:04:47] wdierkes at 5dollarwhitebox dot org Description: ------------ The Mhash extension SegFaults on Redhat Enterprise Linux ES 3 when using the MD5 algorithm. All other algorithms seem to work except MD5. NOTE: This appears to possibly be related to bug #30983 which is closed (and I could not touch it). In that bug, it was claimed to 'not imply a bug in PHP itself'. This may be true, however similar tests against the Mhash library itself using C code function as expected. I ran the same test against the Mhash library using the following C code located here: http://www.5dollarwhitebox.org/tmp/mhash_test.c You must install the Mhash library obviously, then compile and run the test file: [EMAIL PROTECTED] ~]$ gcc -lmhash -o mhash_test mhash_test.c [EMAIL PROTECTED] ~]$ ./mhash_test The issue exists on Rhel3 i386/x86_64, but does *not* exist on Rhel4.. and I am using Mhash-0.9.9 Reproduce code: --------------- PHP Code: <?php $input = "PassW0rd"; print "clear text input: " . $input . "\n"; $tmp_hash_name = mhash_get_hash_name(MHASH_MD5); print "hash name: " . $tmp_hash_name . "\n"; print "hash follows: "; print bin2hex(mhash(MHASH_MD5, $input)) . "\n"; ?> Expected result: ---------------- Expected PHP Output: [EMAIL PROTECTED] ~]$ php mhash_test.php clear text input: PassW0rd hash name: MD5 hash follows: 298cde70c32a57b84d0a546fedbb2596 Actual result: -------------- Actual PHP Output: [EMAIL PROTECTED] ~/]$ php mhash_test.php clear text input: PassW0rd hash name: MD5 hash follows: Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41545&edit=1