| Ticket UUID: | 1042420 | |||
| Title: | png/crc: 237 failed tests! (64-bit) | |||
| Type: | Bug | Version: | None | |
| Submitter: | dgp | Created on: | 2004-10-07 17:57:14 | |
| Subsystem: | png | Assigned To: | andreas_kupries | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2005-08-26 03:51:32 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2005-08-25 20:51:32 | |||
| Description: |
About half of the tests on the png 0.1 package (or is it the crc32 1.2 package?) are failing. Many produce CKSUM where OK is expected. Others throw a "header checsum failed" error. Suggest one common error that hits a large number of tests. I see these failures on a 64-bit system, so I suspect they all derive from some place where the code has assumed 32-bit operations. NOTE: no "png" Category to assign to | |||
| User Comments: |
andreas_kupries added on 2005-08-26 03:51:30:
Logged In: YES user_id=75003 Committed a fix for crc/Trf as well. Code truncated to 32 bit for pure Tcl and critcl paths, but not for Trf. This bug is now done. andreas_kupries added on 2005-08-26 03:23:53: Logged In: YES user_id=75003 The png failures have been fixed. We need truncation to 32bit in two places where a [format %u] command made the unsigned result 64bit after sign-extending the incoming negative 32bit number. Now looking at the crc problem with Trf. andreas_kupries added on 2005-08-26 01:40:15: Logged In: YES user_id=75003 Oh, you have a plain Tcl crc32, without Trf accelerator. So I will have to force my system to not use Trf. And the moment I have figured this out a test will go into the crc module. I have no wish to test png in as many combinations as crc itself. Ok, confirmed. If I exclude Trf and use the pure Tcl crc32 I get errors. The stupid thing is, usage of Trf causes errors when testing the crc32 module by itself. But only on 64, not on 32. So there are errors lurking there as well. This will be a pain to untangle. I believe the first step would be to take checksums from the PNG stuff and convert them into crc32 testcases. If they fail we can work on a fix. And then we can ponder the effect of Trf. dgp added on 2005-08-26 01:22:56: Logged In: YES
user_id=80530
Here's the first failure:
$ /local/src/tcl8.4/unix/tclsh sak.tcl test png
Shell is "/local/src/tcl8.4/unix/tclsh"
tcllib tests
Test platform: "Linux-2.2.23-alpha" using Tcl 8.4.11
Tests running in working dir: /local/src/tcllib
Only running tests that match: *
Skipping test files that match: l.*.test
Only sourcing test files that match: *.test
Tests began at Thu Aug 25 02:21:44 PM EDT 2005
Module: png
modules/png/png.test
- png 0.1
- crc32 1.3
==== png-validate-basi0g01 full validation FAILED
==== Contents of test case:
::png::validate $f
---- Result was:
CKSUM
---- Result should have been (exact matching):
OK
==== png-validate-basi0g01 FAILED
andreas_kupries added on 2005-08-26 01:16:00: Logged In: YES user_id=75003 Bah. For Tcl 8.4 on an amd64 machine I see no failures at all. Loaded packages are png, crc32, and Trf. Testing crc however gives me 13 failures, all in tests for crc32 using Trf. This is ActiveTcl 8.4.11.0.172579 btw. andreas_kupries added on 2005-08-26 00:58:51: Logged In: YES user_id=75003 Ok, I guess I have to dig out the mail I sent to dgp ... a year ago or so ... with some debug proposals for crc. ... Wait, this time I have access to an amd64 machine ... Can test it locally. dgp added on 2005-08-26 00:42:47: Logged In: YES user_id=80530 failures are still present kot added on 2004-10-08 05:24:47: Logged In: YES user_id=173641 Confirming here. The FreeBSD-i386 passes all tests properly. FreeBSD-amd64 fails a whole lot of PNG-related tests, and continues to fail the time-1.3 and hang on pop3, as tcllib-1.6 used to. Why even bother making a new release without checking on 64-bit systems with different endiannes? dgp added on 2004-10-08 05:15:17: Logged In: YES user_id=80530 It's a fair criticism, but it's also a fair question why neither you nor I tested the development sources in the last few weeks when we knew the 1.7 release was pending? After all, we're the ones with the 64-bit boxes. :^) kot added on 2004-10-08 05:12:15: Logged In: YES user_id=173641 Confirming here. The FreeBSD-i386 passes all tests properly. FreeBSD-amd64 fails a whole lot of PNG-related tests, and continues to fail the time-1.3 and hang on pop3, as tcllib-1.6 used to. Why even bother making a new release without checking on 64-bit systems with different endiannes? | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki