-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Reproduceable using Clang 14.0.5 and zlib-ng develop snapshot (probably the same with any version of zlib-ng really).
export SZ_CODE=0 SZ_LINK=0 SZ_HEAP=0 SZ_STACK=1 SZ_CLEAN=1
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_BENCHMARKS=OFF -DCMAKE_C_COMPILER=/home/hansr/github/stabilizer/szcc -DCMAKE_CXX_COMPILER=/home/hansr/github/stabilizer/szcc++ -DCMAKE_C_FLAGS="-g" .
Can be reproduced about 80% of the time by running this:
ctest . -j 10 --exclude-regex "benchmark.*" --progress --output-on-failure
There are two tests that typically fail, sometimes only one of them and sometimes neither.
[ FAILED ] 2 tests, listed below:
[ FAILED ] deflate.concurrency
[ FAILED ] deflate_quick.bi_valid
Not much details available:
[ RUN ] deflate.concurrency
/home/hansr/github/zlib/zlib-ng/test/test_deflate_concurrency.cc:146: Failure
Expected equality of these values:
0
err
Which is: -3
invalid stored block lengths
[ FAILED ] deflate.concurrency (476 ms)
[----------] 11 tests from deflate (481 ms total)
[----------] 2 tests from deflate_quick
[ RUN ] deflate_quick.bi_valid
/home/hansr/github/zlib/zlib-ng/test/test_deflate_quick_bi_valid.cc:76: Failure
Expected equality of these values:
err
Which is: 0
1
/home/hansr/github/zlib/zlib-ng/test/test_deflate_quick_bi_valid.cc:79: Failure
Expected equality of these values:
err
Which is: -3
0
[ FAILED ] deflate_quick.bi_valid (0 ms)
Interesting that only these two tests repeatedly fails when we compile with -g, but none of the other 61 tests fail.
minigzip also fails, but less often, around 5-10% chance it seems like, at least on quite big files.
Note: SZ_CODE also fails 53/63 tests if enabled, but that seems to be an unrelated bug. I need to look at how to narrow that down to a cause.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working