1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-15 05:21:03 +01:00
nix/src
Robert Hensing 863419ca6b TMP: try delete levenshtein test
valgrind spotted use of uninitialised values here.
I couldn't reproduce the problem locally, so let's see if this
happens to fix CI.

valgrind ./src/libstore/tests/libnixstore-tests
==2314521== Memcheck, a memory error detector
==2314521== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==2314521== Using Valgrind-3.21.0 and LibVEX; rerun with -h for copyright info
==2314521== Command: ./src/libstore/tests/libnixstore-tests
==2314521==
Running main() from /build/source/googletest/src/gtest_main.cc
==2314521== Use of uninitialised value of size 8
==2314521==    at 0x4DC32D2: _itoa_word (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4DCCC6D: __printf_buffer (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4DEE975: __vsnprintf_internal (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4E89A13: __snprintf_chk (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4884320: testing::(anonymous namespace)::PrintByteSegmentInObjectTo(unsigned char const*, unsigned long, unsigned long, std::ostream*) (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48895CB: testing::internal::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*) (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x50AE35A: PrintValue<nix::LevenshteinDistanceParam> (gtest-printers.h:269)
==2314521==    by 0x50AE35A: PrintWithFallback<nix::LevenshteinDistanceParam> (gtest-printers.h:311)
==2314521==    by 0x50AE35A: PrintTo<nix::LevenshteinDistanceParam> (gtest-printers.h:440)
==2314521==    by 0x50AE35A: Print (gtest-printers.h:702)
==2314521==    by 0x50AE35A: UniversalPrint<nix::LevenshteinDistanceParam> (gtest-printers.h:999)
==2314521==    by 0x50AE35A: Print (gtest-printers.h:884)
==2314521==    by 0x50AE35A: PrintToString<nix::LevenshteinDistanceParam> (gtest-printers.h:1037)
==2314521==    by 0x50AE35A: testing::internal::ParameterizedTestSuiteInfo<nix::LevenshteinDistanceTest>::RegisterTests() (gtest-param-util.h:596)
==2314521==    by 0x48B1894: testing::internal::UnitTestImpl::RegisterParameterizedTests() (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48B193A: testing::internal::UnitTestImpl::PostFlagParsingInit() (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48540D2: main (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest_main.so.1.12.1)
==2314521==
==2314521== Conditional jump or move depends on uninitialised value(s)
==2314521==    at 0x4DC32E4: _itoa_word (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4DCCC6D: __printf_buffer (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4DEE975: __vsnprintf_internal (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4E89A13: __snprintf_chk (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4884320: testing::(anonymous namespace)::PrintByteSegmentInObjectTo(unsigned char const*, unsigned long, unsigned long, std::ostream*) (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48895CB: testing::internal::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*) (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x50AE35A: PrintValue<nix::LevenshteinDistanceParam> (gtest-printers.h:269)
==2314521==    by 0x50AE35A: PrintWithFallback<nix::LevenshteinDistanceParam> (gtest-printers.h:311)
==2314521==    by 0x50AE35A: PrintTo<nix::LevenshteinDistanceParam> (gtest-printers.h:440)
==2314521==    by 0x50AE35A: Print (gtest-printers.h:702)
==2314521==    by 0x50AE35A: UniversalPrint<nix::LevenshteinDistanceParam> (gtest-printers.h:999)
==2314521==    by 0x50AE35A: Print (gtest-printers.h:884)
==2314521==    by 0x50AE35A: PrintToString<nix::LevenshteinDistanceParam> (gtest-printers.h:1037)
==2314521==    by 0x50AE35A: testing::internal::ParameterizedTestSuiteInfo<nix::LevenshteinDistanceTest>::RegisterTests() (gtest-param-util.h:596)
==2314521==    by 0x48B1894: testing::internal::UnitTestImpl::RegisterParameterizedTests() (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48B193A: testing::internal::UnitTestImpl::PostFlagParsingInit() (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48540D2: main (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest_main.so.1.12.1)
==2314521==
==2314521== Conditional jump or move depends on uninitialised value(s)
==2314521==    at 0x4DCCCBF: __printf_buffer (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4DEE975: __vsnprintf_internal (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4E89A13: __snprintf_chk (in /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6)
==2314521==    by 0x4884320: testing::(anonymous namespace)::PrintByteSegmentInObjectTo(unsigned char const*, unsigned long, unsigned long, std::ostream*) (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48895CB: testing::internal::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*) (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x50AE35A: PrintValue<nix::LevenshteinDistanceParam> (gtest-printers.h:269)
==2314521==    by 0x50AE35A: PrintWithFallback<nix::LevenshteinDistanceParam> (gtest-printers.h:311)
==2314521==    by 0x50AE35A: PrintTo<nix::LevenshteinDistanceParam> (gtest-printers.h:440)
==2314521==    by 0x50AE35A: Print (gtest-printers.h:702)
==2314521==    by 0x50AE35A: UniversalPrint<nix::LevenshteinDistanceParam> (gtest-printers.h:999)
==2314521==    by 0x50AE35A: Print (gtest-printers.h:884)
==2314521==    by 0x50AE35A: PrintToString<nix::LevenshteinDistanceParam> (gtest-printers.h:1037)
==2314521==    by 0x50AE35A: testing::internal::ParameterizedTestSuiteInfo<nix::LevenshteinDistanceTest>::RegisterTests() (gtest-param-util.h:596)
==2314521==    by 0x48B1894: testing::internal::UnitTestImpl::RegisterParameterizedTests() (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48B193A: testing::internal::UnitTestImpl::PostFlagParsingInit() (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest.so.1.12.1)
==2314521==    by 0x48540D2: main (in /nix/store/21329dny6jffzcagsipcklh3fg6jzp87-gtest-1.12.1/lib/libgtest_main.so.1.12.1)
==2314521==
2023-07-03 17:31:09 +02:00
..
build-remote Put worker protocol items inside a WorkerProto struct 2023-06-19 12:08:23 -04:00
libcmd Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
libexpr Revert "Disable rapidcheck tests" 2023-07-03 17:29:12 +02:00
libfetchers Allow tarball URLs to redirect to a lockable immutable URL 2023-06-13 14:17:45 +02:00
libmain nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
libstore Revert "Disable rapidcheck tests" 2023-07-03 17:29:12 +02:00
libutil TMP: try delete levenshtein test 2023-07-03 17:31:09 +02:00
nix Create worker_proto::{Read,Write}Conn 2023-06-19 12:08:23 -04:00
nix-build nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-channel Add nix-channel --list-generations 2023-06-02 10:12:35 +02:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-instantiate nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-store Create worker_proto::{Read,Write}Conn 2023-06-19 12:08:23 -04:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00