-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpm-4.11.3 fails to install packages built with zlib-1.2.9 installed #191
Comments
Fixed in 1.2.10. Thank you for the report. |
hzhuang1
pushed a commit
to Linaro/warpdrive-zlib
that referenced
this issue
Jul 31, 2019
…ed-value ==1==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x59fa93 in deflate_medium zlib-ng/deflate_medium.c:259:21 madler#1 0x590905 in zng_deflate zlib-ng/deflate.c:951:18 madler#2 0x587095 in zng_compress2 zlib-ng/compress.c:59:15 madler#3 0x5866e3 in check_compress_level zlib-ng/test/fuzz/compress_fuzzer.c:18:3 madler#4 0x5862fd in LLVMFuzzerTestOneInput zlib-ng/test/fuzz/compress_fuzzer.c:38:3 madler#5 0x4e9b48 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:575:15 madler#6 0x4a2f66 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6 madler#7 0x4b3adb in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:715:9 madler#8 0x4a2091 in main /src/libfuzzer/FuzzerMain.cpp:20:10 madler#9 0x7fea2fea482f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/libc-start.c:291 madler#10 0x41ec68 in _start Uninitialized value was created by a heap allocation #0 0x45f2a0 in malloc /src/llvm/projects/compiler-rt/lib/msan/msan_interceptors.cc:910 madler#1 0x587d42 in zng_deflateInit2_ zlib-ng/deflate.c:284:27 madler#2 0x5874fa in zng_deflateInit_ zlib-ng/deflate.c:224:12 madler#3 0x586c95 in zng_compress2 zlib-ng/compress.c:41:11 madler#4 0x5866e3 in check_compress_level zlib-ng/test/fuzz/compress_fuzzer.c:18:3 madler#5 0x5862fd in LLVMFuzzerTestOneInput zlib-ng/test/fuzz/compress_fuzzer.c:38:3 madler#6 0x4e9b48 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:575:15 madler#7 0x4a2f66 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6 madler#8 0x4b3adb in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:715:9 madler#9 0x4a2091 in main /src/libfuzzer/FuzzerMain.cpp:20:10 madler#10 0x7fea2fea482f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/libc-start.c:291
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've built and installed zlib-1.2.9 on my system (home rolled but based on Linux From Scratch). I've found that rpms created with this system cannot be installed. Nor can their contents be viewed with Midnight Commander (mc).
The error produced by rpm is:
[chris:~/rpm]$ sudo rpm -i x86_64/whois-5.2.14-1.x86_64.rpm
error: unpacking of archive failed on file /usr/bin/whois;586aad21: cpio: read failed - No such file or directory
error: whois-5.2.14-1.x86_64: install failed
When trying to view an rpm with mc a dialogue box pops up containing the message "Premature end of cpio archive".
If I revert to zlib-1.2.8 and rebuild the rpms, everything is OK, although rpms built when zlib-1.2.9 was installed still cannot be installed.
This table summarises what I have found:
BUILD INSTALL RESULT
1.2.8 1.2.8 GOOD
1.2.8 1.2.9 GOOD
1.2.9 1.2.8 FAIL
1.2.9 1.2.9 FAIL
I've bisected the problem and that ended with:
[chris:~/build/zlib]$ git bisect bad
4f1df00 is the first bad commit
commit 4f1df00
Author: Mark Adler [email protected]
Date: Tue Apr 5 03:09:59 2016 -0700
:100644 100644 efff93af013c756fd22808e171ce412d18606a36 f07731a423e5d19444c563bd1340ed83be271c41 M gzwrite.c
Unfortunately, this commit does not revert because of subsequent commits, so I haven't tried that.
The text was updated successfully, but these errors were encountered: