|
2012-06-05
| ||
| 20:49 | • Closed ticket [3530536fff]: zlib-7.4 fails on IRIX64 plus 6 other changes artifact: f241fd2bba user: dgp | |
| 20:49 | • Ticket [3530536fff]: 4 changes artifact: e4bf1ad18f user: dgp | |
|
2012-06-02
| ||
| 05:05 | • Pending ticket [3530536fff]. artifact: c26cf23ea2 user: nijtmans | |
| 04:12 | • Ticket [3530536fff]: 5 changes artifact: 2f4d60a5fd user: nijtmans | |
| 02:38 | • Ticket [3530536fff]: 4 changes artifact: e209b9b852 user: dgp | |
| 01:05 | • Ticket [3530536fff]: 4 changes artifact: 3b3838131c user: dgp | |
| 00:34 | • Ticket [3530536fff]: 4 changes artifact: 0b26e2604f user: dgp | |
| 00:21 | • Ticket [3530536fff]: 4 changes artifact: 718ca4fb7d user: dgp | |
|
2012-06-01
| ||
| 23:38 | • Ticket [3530536fff]: 4 changes artifact: 672db70d7f user: dgp | |
| 23:36 | • Ticket [3530536fff]: 4 changes artifact: 83e1ec9481 user: dgp | |
| 23:21 | • Ticket [3530536fff]: 4 changes artifact: 3adbd3f26e user: dgp | |
| 23:17 | • Ticket [3530536fff]: 4 changes artifact: 8cea0c20e6 user: dgp | |
| 23:11 | • Ticket [3530536fff]: 4 changes artifact: 07df5fc298 user: dgp | |
|
2012-05-30
| ||
| 12:00 | • Ticket [3530536fff]: 4 changes artifact: 39929cf78c user: nijtmans | |
|
2012-05-29
| ||
| 23:23 | • Ticket [3530536fff]: 6 changes artifact: 90b162b5f0 user: dgp | |
| 23:03 | • Ticket [3530536fff]: 4 changes artifact: 301b5ffc21 user: dgp | |
| 14:24 | • New ticket [3530536fff]. artifact: 6b63fb48bd user: dgp | |
zlib-7.4 fails on IRIX64
Closed / Fixed3530536fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 14 years ago
Descriptionplain2012-05-29 14:24:53
==== zlib-7.4 zlib stream FAILED
==== Contents of test case:
set s [zlib stream inflate]
$s put -finalize [zlib deflate abcdeEDCBA]
set data [$s get]
set result [list [$s get] [format %x [$s checksum]]]
$s close
lappend result $data
---- Result was:
{} 0 abcdeEDCBA
---- Result should have been (exact matching):
{} 1 abcdeEDCBA
==== zlib-7.4 FAILED
dgpplain2012-05-29 23:03:06
Failure starts with checkin eb14b7478ae677a60c50 2012-05-03 20:41:22
dgpplain2012-05-29 23:23:43
I don't know how much testing the zlib source code that bundles with Tcl actually gets. My understanding is that when Tcl is built, it prefers to use a zlib library already installed? Anyhow, the test IRIX64 system I'm using actually builds the zlib sources included with Tcl, and that explains why it gets different test results from checkin 08c5c40d934c74f1a37e171c1ecd6c1ce41a63d3 and the successor when the only difference between the two is the updated zlib 1.2.7 sources. They appear to compute a stream checksum differently.
nijtmansplain2012-05-30 12:00:51
Hm. Probably it has to do with the NOBYFOUR definition, or the ZSWAP32 macro Don, could you try to add -DNOBYFOUR to the CFLAGS. Or (in addition) test branch bug-3530536? We should defenitely report this to the zlib people. I suspect that for the Z_SOLO implementation, a part is removed from crc32.c which should not have been removed.
dgpplain2012-06-01 23:11:49
Forcing my more mainstream Centos Linux system to use the zlib 1.2.7 sources we distribute I get the same failure. This isn't something specific to ancient IRIX. Appears that zlib 1.2.7 really is incompatible with zlib 1.2.6 in this way.
dgpplain2012-06-01 23:17:11
The changes on bug-3530536 branch do not correct the failure.
dgpplain2012-06-01 23:21:29
Further adding -DNOBYFOUR on either branch also does not correct the failure.
dgpplain2012-06-01 23:36:53
Question is whether this change in result is a regression or a bug fix.
dgpplain2012-06-01 23:38:31
On these systems, I see the macro Z_U4 defined to be "unsigned" which is correct assuming the intent that Z_U4 should be the unsigned integral type that is exactly 4 bytes in size.
dgpplain2012-06-02 00:21:54
Worth noting that it's the adler32() checksum routine that is at issue here.
dgpplain2012-06-02 00:34:40
Even that may not be right.
dgpplain2012-06-02 01:05:29
The troublesome change is how the strm->adler field is initialized in inflate.c Comment suggests something changing in the way a Java test suite is accommodated.
dgpplain2012-06-02 02:38:44
I'm not confident about this, but it appears this test may have little to no value anyway, at least in the portion that attempts to verify the checksum value. It appears that for an inflate stream like the one tested, no checksum is even kept. We're testing nothing more than the initialization value.
nijtmansplain2012-06-02 04:12:45
The inflate() doc says: > When processing gzip-wrapped deflate data, strm->adler32 is set to the CRC-32 of the output > producted so far. The CRC-32 is checked against the gzip trailer. deflate(): > deflate() sets strm->adler to the adler32 checksum of all input read > so far (that is, total_in bytes). Looks you are right. Possible fix committed in branch bug-3530536. This proves that we merely are checking the initialization value: Changing the initialization value makes the test pass ;-) So, either that or simply don't check [$s checksum] in zlib-7.4. I think that the [$s checksum] in zlib-7.3 is equally questionable, even though the documentation says otherwise. Don, agreed?
nijtmansplain2012-06-02 05:05:14
Fixed on trunk. Don, please evaluate!
dgpplain2012-06-05 20:49:24
With the new checkin, the test no longer fails.
dgpplain2012-06-05 20:49:56
allow_comments - 1
Log in (anonymous is fine) to add a comment.