Mhash/common : is the module still being developed since the Library has
now been updated ?
The perl module still has problems if a hash is generated one after
another per method but not by single generated. The problem is on all
new libs, example mhash-0.9.9.9 on debian linux 5 under perl 5.10
test as perlcode for Mhash:
use Mhash qw( mhash_hex );
my $mywert = "test";
print "0:::" . mhash_hex(Mhash::MHASH_CRC32, $mywert) . ":::\n";
print "1:::" . mhash_hex(Mhash::MHASH_MD5, $mywert). ":::\n";
print "2:::" . mhash_hex(Mhash::MHASH_SHA1, $mywert). ":::\n";
print "3:::" . mhash_hex(Mhash::MHASH_HAVAL224, $mywert). ":::\n";
print "4:::" . mhash_hex(Mhash::MHASH_RIPEMD160, $mywert). ":::\n";
print "5:::" . mhash_hex(Mhash::MHASH_TIGER, $mywert). ":::\n";
print "6:::" . mhash_hex(Mhash::MHASH_GOST, $mywert). ":::\n";
print "7:::" . mhash_hex(Mhash::MHASH_CRC32B, $mywert). ":::\n";
exit;
debuglog:
*** glibc detected *** perl: free(): invalid pointer: 0x00000000006a9350 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f30d42ec9a8]
/lib/libc.so.6(cfree+0x76)[0x7f30d42eeab6]
/usr/lib/libperl.so.5.10(Perl_op_free+0x1cc)[0x7f30d4cccd3c]
/usr/lib/libperl.so.5.10(perl_destruct+0xb8)[0x7f30d4d18738]
perl(main+0xb3)[0x400ce3]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f30d42971a6]
perl[0x400b69]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:03 17057203
/usr/bin/perl
00601000-00602000 rw-p 00001000 08:03 17057203
/usr/bin/perl
00602000-0070a000 rw-p 00602000 00:00 0
[heap]
7f30cc000000-7f30cc021000 rw-p 7f30cc000000 00:00 0
7f30cc021000-7f30d0000000 ---p 7f30cc021000 00:00 0
7f30d379e000-7f30d37b4000 r-xp 00000000 08:03 13705232
/lib/libgcc_s.so.1
7f30d37b4000-7f30d39b4000 ---p 00016000 08:03 13705232
/lib/libgcc_s.so.1
7f30d39b4000-7f30d39b5000 rw-p 00016000 08:03 13705232
/lib/libgcc_s.so.1
7f30d39b5000-7f30d39df000 r-xp 00000000 08:03 17072737
/usr/local/lib/libmhash.so.2.0.1
7f30d39df000-7f30d3bdf000 ---p 0002a000 08:03 17072737
/usr/local/lib/libmhash.so.2.0.1
7f30d3bdf000-7f30d3be0000 rw-p 0002a000 08:03 17072737
/usr/local/lib/libmhash.so.2.0.1
7f30d3be0000-7f30d3be4000 r-xp 00000000 08:03 17360564
/usr/local/lib/perl/5.10.0/auto/Mhash/Mhash.so
7f30d3be4000-7f30d3de3000 ---p 00004000 08:03 17360564
/usr/local/lib/perl/5.10.0/auto/Mhash/Mhash.so
7f30d3de3000-7f30d3de4000 rw-p 00003000 08:03 17360564
/usr/local/lib/perl/5.10.0/auto/Mhash/Mhash.so
7f30d3de4000-7f30d4041000 r--p 00000000 08:03 17088909
/usr/lib/locale/locale-archive
7f30d4041000-7f30d4049000 r-xp 00000000 08:03 13705547
/lib/libcrypt-2.7.so
7f30d4049000-7f30d4249000 ---p 00008000 08:03 13705547
/lib/libcrypt-2.7.so
7f30d4249000-7f30d424b000 rw-p 00008000 08:03 13705547
/lib/libcrypt-2.7.so
7f30d424b000-7f30d4279000 rw-p 7f30d424b000 00:00 0
7f30d4279000-7f30d43c3000 r-xp 00000000 08:03 13705554
/lib/libc-2.7.so
7f30d43c3000-7f30d45c2000 ---p 0014a000 08:03 13705554
/lib/libc-2.7.so
7f30d45c2000-7f30d45c5000 r--p 00149000 08:03 13705554
/lib/libc-2.7.so
7f30d45c5000-7f30d45c7000 rw-p 0014c000 08:03 13705554
/lib/libc-2.7.so
7f30d45c7000-7f30d45cc000 rw-p 7f30d45c7000 00:00 0
7f30d45cc000-7f30d45e2000 r-xp 00000000 08:03 13705568
/lib/libpthread-2.7.so
7f30d45e2000-7f30d47e2000 ---p 00016000 08:03 13705568
/lib/libpthread-2.7.so
7f30d47e2000-7f30d47e4000 rw-p 00016000 08:03 13705568
/lib/libpthread-2.7.so
7f30d47e4000-7f30d47e8000 rw-p 7f30d47e4000 00:00 0
7f30d47e8000-7f30d486a000 r-xp 00000000 08:03 13705542
/lib/libm-2.7.so
7f30d486a000-7f30d4a69000 ---p 00082000 08:03 13705542
/lib/libm-2.7.so
7f30d4a69000-7f30d4a6b000 rw-p 00081000 08:03 13705542
/lib/libm-2.7.so
7f30d4a6b000-7f30d4a6d000 r-xp 00000000 08:03 13705551
/lib/libdl-2.7.so
7f30d4a6d000-7f30d4c6d000 ---p 00002000 08:03 13705551
/lib/libdl-2.7.so
7f30d4c6d000-7f30d4c6f000 rw-p 00002000 08:03 13705551
/lib/libdl-2.7.so
7f30d4c6f000-7f30d4dd5000 r-xp 00000000 08:03 17057204
/usr/lib/libperl.so.5.10.0
7f30d4dd5000-7f30d4fd4000 ---p 00166000 08:03 17057204
/usr/lib/libperl.so.5.10.0
7f30d4fd4000-7f30d4fdd000 rw-p 00165000 08:03 17057204
/usr/lib/libperl.so.5.10.0
7f30d4fdd000-7f30d4ff9000 r-xp 00000000 08:03 13705563
/lib/ld-2.7.so
7f30d51d2000-7f30d51d6000 rw-p 7f30d51d2000 00:00 0
7f30d51f5000-7f30d51f8000 rw-p 7f30d51f5000 00:00 0
7f30d51f8000-7f30d51fa000 rw-p 0001b000 08:03 13705563
/lib/ld-2.7.so
7ffffffe9000-7fffffffe000 rw-p 7ffffffea000 00:00 0
[stack]
7fffffffe000-7ffffffff000 r-xp 7fffffffe000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
any help?