mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
Nix, the purely functional package manager
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== |
||
|---|---|---|
| .github | ||
| config | ||
| contrib | ||
| doc | ||
| m4 | ||
| maintainers | ||
| misc | ||
| mk | ||
| perl | ||
| scripts | ||
| src | ||
| tests | ||
| .dir-locals.el | ||
| .editorconfig | ||
| .gitignore | ||
| .version | ||
| boehmgc-coroutine-sp-fallback.diff | ||
| bootstrap.sh | ||
| configure.ac | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| default.nix | ||
| docker.nix | ||
| flake.lock | ||
| flake.nix | ||
| local.mk | ||
| Makefile | ||
| Makefile.config.in | ||
| precompiled-headers.h | ||
| README.md | ||
| shell.nix | ||
Nix
Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. Please refer to the Nix manual for more details.
Installation
On Linux and macOS the easiest way to install Nix is to run the following shell command (as a user other than root):
$ curl -L https://nixos.org/nix/install | sh
Information on additional installation methods is available on the Nix download page.
Building And Developing
See our Hacking guide in our manual for instruction on how to to set up a development environment and build Nix from source.
Additional Resources
- Nix manual
- Nix jobsets on hydra.nixos.org
- NixOS Discourse
- Matrix - #nix:nixos.org
- IRC - #nixos on libera.chat
License
Nix is released under the LGPL v2.1.