[Zlib-devel] fix for x86_64 optmized version of longest_match

Arkadiusz Miskiewicz arekm at maven.pl
Tue Feb 23 03:35:54 EST 2010


On Monday 22 of February 2010, Gilles Vollant wrote:
> the SSE portion of contrib\amd64\amd64-match.S can have the same bug than
> old gvmat64.asm (fixed in zlib 1.2.3.8)

For me this old and new match.S doesn't even pass test suite:

Starting program: /home/users/arekm/rpm/BUILD/zlib-1.2.3.9/example
zlib version 1.2.3.9 = 0x1239, compile flags = 0x2a9

Program received signal SIGSEGV, Segmentation fault.
0x00000000004118d0 in LookaheadLess ()
(gdb) where
#0  0x00000000004118d0 in LookaheadLess ()
#1  0x0000000000405c6e in deflate_slow (s=0x62ebf0, flush=4) at deflate.c:1657
#2  0x0000000000404171 in deflate (strm=0x7fffffffe380, flush=4) at 
deflate.c:822
#3  0x000000000040250f in compress2 (dest=0x61b350 "x\234", 
destLen=0x7fffffffe470, source=0x413848 "hello, hello!", sourceLen=14, 
level=-1)
    at compress.c:49
#4  0x00000000004025a0 in compress (dest=0x61b350 "x\234", 
destLen=0x7fffffffe470, source=0x413848 "hello, hello!", sourceLen=14) at 
compress.c:68
#5  0x0000000000400c01 in test_compress (compr=0x61b350 "x\234", 
comprLen=40000, uncompr=0x624fa0 "", uncomprLen=40000) at example.c:66
#6  0x000000000040231b in main (argc=1, argv=0x7fffffffe5d8) at example.c:543


-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/




More information about the Zlib-devel mailing list