Skip Menu |

This queue is for tickets about the Digest-Haval256 CPAN distribution.

Report information
The Basics
Id: 24682
Status: open
Priority: 0/
Queue: Digest-Haval256

People
Owner: Nobody in particular
Requestors: bkw [...] weisshuhn.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.0.5
Fixed in: (no value)



Subject: 13/13 Failed tests on x86_64
When compiling on linux x86_64 platforms, 12 of 13 tests fail. I tried fc6-x86_64 and an old fc3-86_64. Results are the same. I attached the output of make test. Feel free to contact me if You need more information of test runs. Version tried: Digest-Haval256-1.0.5 Perl versions: 5.8.8 and 5.8.5 OS: Fedora Core 3 and 6 x86_64 (both x86_64 only, no i386 libs) regards, bkw
Subject: haval-test.txt
[bkw@anubis]~/tmp/Digest-Haval256-1.0.5% make test cp Haval256.pm blib/lib/Digest/Haval256.pm /usr/bin/perl /usr/lib/perl5/vendor_perl/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Haval256.xs > Haval256.xsc && mv Haval256.xsc Haval256.c gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.0.5\" -DXS_VERSION=\"1.0.5\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Haval256.c In file included from Haval256.xs:4: ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined In file included from Haval256.xs:2: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:163:1: warning: this is the location of the previous definition Haval256.c: In function 'XS_Digest__Haval256_new': Haval256.c:32: warning: unused variable 'items' Haval256.c: In function 'XS_Digest__Haval256_hashsize': Haval256.c:57: warning: unused variable 'items' Haval256.c: In function 'XS_Digest__Haval256_rounds': Haval256.c:78: warning: unused variable 'items' Haval256.xs: In function 'XS_Digest__Haval256_digest': Haval256.xs:66: warning: pointer targets in passing argument 2 of 'haval_end' differ in signedness Running Mkbootstrap for Digest::Haval256 () chmod 644 Haval256.bs rm -f blib/arch/auto/Digest/Haval256/Haval256.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Haval256.o -o blib/arch/auto/Digest/Haval256/Haval256.so \ \ chmod 755 blib/arch/auto/Digest/Haval256/Haval256.so cp Haval256.bs blib/arch/auto/Digest/Haval256/Haval256.bs chmod 644 blib/arch/auto/Digest/Haval256/Haval256.bs PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01.........ok 1/2 t/01.........NOK 2# Failed test in t/01.t at line 13. # got: 'c9c7d8afa159fd9e965cb83ff5ee6f58aeda352c0eff005548153a61551c38ee' # expected: '2181d9783ea2663d71534a6d45ba2290a47ee7c0f9997de8e2818d5d9022a437' # Looks like you failed 1 test of 2. t/01.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/02.........ok 1/2 t/02.........NOK 2# Failed test in t/02.t at line 13. # got: 'b45cb6e62f2b1320e4f8f1b0b273d45add47c321fd23999dcf403ac37636d963' # expected: '6bbd2eb4b2980ac0ad37a67e3be69df386ad5dd277b93b003bd1f8ed80fa863d' # Looks like you failed 1 test of 2. t/02.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/03.........ok 1/2 t/03.........NOK 2# Failed test in t/03.t at line 13. # got: 'de8fd5ee72a5e4265af0a756f4e1a1f65c9b2b2f47cf17ecf0d1b88679a3e22f' # expected: '6979f4b388f7ddfb56fbcaf4c6edd1c0fb2a08fa5d42f8a223d3d5f817dfdcab' # Looks like you failed 1 test of 2. t/03.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/04.........ok 1/2 t/04.........NOK 2# Failed test in t/04.t at line 13. # got: '153d2c81cd3c24249ab7cd476934287af845af37f53f51f5c7e2be99ba28443f' # expected: '18e46a6392d01127f4eebfc2c1f5a20245a5aa7ee709394c6ab017bacd22fb5c' # Looks like you failed 1 test of 2. t/04.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/05.........ok 1/2 t/05.........NOK 2# Failed test in t/05.t at line 13. # got: '357e2032774abbf5f04d5f1dec665112ea03b23e6e00425d0df75ea155813126' # expected: 'c6e5c3bee5ecd0e6c242d653ada5f68c4fc2fbf47c983c6e5dd5034c1c09baf6' # Looks like you failed 1 test of 2. t/05.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/06.........ok 1/2 t/06.........NOK 2# Failed test in t/06.t at line 13. # got: 'be417bb4dd5cfb76c7126f4f8eeb1553a449039307b1a3cd451dbfdc0fbbe330' # expected: '1a06a3b5a93ecc3ccaabfff600aec773d7b903da3d0972d8601fa2f4ed3ca60d' # Looks like you failed 1 test of 2. t/06.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/07.........ok 1/2 t/07.........NOK 2# Failed test in t/07.t at line 15. # got: 'c9c7d8afa159fd9e965cb83ff5ee6f58aeda352c0eff005548153a61551c38ee' # expected: '2181d9783ea2663d71534a6d45ba2290a47ee7c0f9997de8e2818d5d9022a437' # Looks like you failed 1 test of 2. t/07.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/08.........ok 1/2 # Failed test in t/08.t at line 15. t/08.........NOK 2# got: 'b45cb6e62f2b1320e4f8f1b0b273d45add47c321fd23999dcf403ac37636d963' # expected: '6bbd2eb4b2980ac0ad37a67e3be69df386ad5dd277b93b003bd1f8ed80fa863d' # Looks like you failed 1 test of 2. t/08.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/09.........ok 1/2 t/09.........NOK 2# Failed test in t/09.t at line 15. # got: 'de8fd5ee72a5e4265af0a756f4e1a1f65c9b2b2f47cf17ecf0d1b88679a3e22f' # expected: '6979f4b388f7ddfb56fbcaf4c6edd1c0fb2a08fa5d42f8a223d3d5f817dfdcab' # Looks like you failed 1 test of 2. t/09.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/10.........ok 1/2 t/10.........NOK 2# Failed test in t/10.t at line 15. # got: '153d2c81cd3c24249ab7cd476934287af845af37f53f51f5c7e2be99ba28443f' # expected: '18e46a6392d01127f4eebfc2c1f5a20245a5aa7ee709394c6ab017bacd22fb5c' # Looks like you failed 1 test of 2. t/10.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/11.........ok 1/2 t/11.........NOK 2# Failed test in t/11.t at line 15. # got: '357e2032774abbf5f04d5f1dec665112ea03b23e6e00425d0df75ea155813126' # expected: 'c6e5c3bee5ecd0e6c242d653ada5f68c4fc2fbf47c983c6e5dd5034c1c09baf6' # Looks like you failed 1 test of 2. t/11.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/12.........ok 1/2 t/12.........NOK 2# Failed test in t/12.t at line 15. # got: 'be417bb4dd5cfb76c7126f4f8eeb1553a449039307b1a3cd451dbfdc0fbbe330' # expected: '1a06a3b5a93ecc3ccaabfff600aec773d7b903da3d0972d8601fa2f4ed3ca60d' # Looks like you failed 1 test of 2. t/12.........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/loading....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01.t 1 256 2 1 50.00% 2 t/02.t 1 256 2 1 50.00% 2 t/03.t 1 256 2 1 50.00% 2 t/04.t 1 256 2 1 50.00% 2 t/05.t 1 256 2 1 50.00% 2 t/06.t 1 256 2 1 50.00% 2 t/07.t 1 256 2 1 50.00% 2 t/08.t 1 256 2 1 50.00% 2 t/09.t 1 256 2 1 50.00% 2 t/10.t 1 256 2 1 50.00% 2 t/11.t 1 256 2 1 50.00% 2 t/12.t 1 256 2 1 50.00% 2 Failed 12/13 test scripts, 7.69% okay. 12/25 subtests failed, 52.00% okay. make: *** [test_dynamic] Error 255
On Tue Jan 30 19:19:11 2007, bkw wrote: Show quoted text
> When compiling on linux x86_64 platforms, 12 of 13 tests fail. > I tried fc6-x86_64 and an old fc3-86_64. Results are the same. > I attached the output of make test. > Feel free to contact me if You need more information of test runs. > > Version tried: Digest-Haval256-1.0.5 > Perl versions: 5.8.8 and 5.8.5 > OS: Fedora Core 3 and 6 x86_64 (both x86_64 only, no i386 libs) > > regards, > bkw >
I am not the module owner but I found that the attached patch fixes the 64 Bit problem of Haval256. It's the usual 64 bit problem: long is 64 bit on 64 bit hardware which is not the request 32 bit for haval word. Left the bug in state open since the cpan package is still broken. Regards, Oliver Paukstadt
--- Digest-Haval256-1.0.5/_haval.c.roig 2007-09-09 21:03:14.000000000 +0200 +++ Digest-Haval256-1.0.5/_haval.c 2007-09-09 21:01:27.000000000 +0200 @@ -93,7 +93,7 @@ #define FPTLEN 256 /* 128, 160, 192, 224 or 256 */ #define HVERSION 1 /* current version number */ -typedef unsigned long int haval_word; /* a HAVAL word = 32 bits */ +typedef unsigned int haval_word; /* a HAVAL word = 32 bits */ typedef struct haval_state { haval_word count[2]; /* number of bits in a message */
Subject: [RE][rt.cpan.org #24682] 13/13 Failed tests on x86_64
Date: Sat, 15 Sep 2007 15:37:31 -0400 (EDT)
To: <bug-Digest-Haval256 [...] rt.cpan.org>
From: "J D" <jcduque [...] lycos.com>
Hi, Oliver,

Please proceed with the patch, as I can no longer afford to maintain Digest-Haval due to other commitments.

Regards,
Julius







Show quoted text

---------[ Received Mail Content ]----------

Subject : [rt.cpan.org #24682] 13/13 Failed tests on x86_64

Date : Sun, 09 Sep 2007 15:14:51 -0400

From : "Oliver Paukstadt via RT" <bug-Digest-Haval256@rt.cpan.org>

To : undisclosed-recipients:;





Queue: Digest-Haval256

Ticket



On Tue Jan 30 19:19:11 2007, bkw wrote:

> When compiling on linux x86_64 platforms, 12 of 13 tests fail.

> I tried fc6-x86_64 and an old fc3-86_64. Results are the same.

> I attached the output of make test.

> Feel free to contact me if You need more information of test runs.

>

> Version tried: Digest-Haval256-1.0.5

> Perl versions: 5.8.8 and 5.8.5

> OS: Fedora Core 3 and 6 x86_64 (both x86_64 only, no i386 libs)

>

> regards,

> bkw

>

I am not the module owner but I found that the attached patch fixes the

64 Bit problem of Haval256.

It's the usual 64 bit problem: long is 64 bit on 64 bit hardware which

is not the request 32 bit for haval word.



Left the bug in state open since the cpan package is still broken.



Regards,

Oliver Paukstadt




---
A 3-year old's voice is louder than 200 adults in a crowded restaurant.