$ cat gz.cpp
#include <zlib.h>
int main(){
gzopen("pyviz.tar.gz","rb");
}
$ g++ -g -Wall gz.cpp -lz
$ valgrind -q ./a.out
==31809== Conditional jump or move depends on uninitialised value(s)
==31809== at 0x4E33290: inflateReset2 (in /usr/lib/libz.so.1.2.3.4)
==31809== by 0x4E3337F: inflateInit2_ (in /usr/lib/libz.so.1.2.3.4)
==31809== by 0x4E2CC86: ??? (in /usr/lib/libz.so.1.2.3.4)
==31809== by 0x4005E6: main (gz.c:4)
==31809==
Это боян или как? У меня из за этой хрени тесты не проходят... ;-(
$ g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
$ valgrind --version
valgrind-3.6.0.SVN-Debian