testing/nix: crash on running nix commands
This only started happening after the 2.20.1 upgrade recently.
Error log from nix-daemon
:
/usr/include/c++/13.2.1/string_view:258: constexpr const std::basic_string_view<_CharT, _Traits>::value_type& std::basic_string_view<_CharT, _Traits>::operator[](size_type) const [with _CharT = char; _Traits = std::char_traits<char>; const_reference = const char&; size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
How to reproduce (at least on my side):
- Start
nix-deamon
(my nix.conf allows @wheel group to connect to the Nix daemon) - Run a command that requires a connection to the Nix socket, .e.g
nix-collect-garbage
ornix search nixpkgs go
and it crashes
There is a coredump file each time it crashes, but we don't have nix-dbg
package for the debug symbol, so I can't get anything useful from it.