!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

930 Members
For people hacking on the Nix package manager itself194 Servers

Load older messages


SenderMessageTime
1 Apr 2026
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Hm I did see a crash in runtime roots scanning15:39:11
@dramforever:matrix.orgdramforever secondly i'm getting a sigsegv on this boost::regex_match https://github.com/NixOS/nix/blob/b8b3e37b38d2bcc4a4633bf2c7d67e60603308a6/src/libstore/local-gc.cc#L74 15:39:41
@dramforever:matrix.orgdramforeveri don't know why15:39:43
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah that’s what I got too. It’s strange. Since it’s const surely there’s no way it’s not thread-safe right?15:40:26
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Right????15:40:33
@dramforever:matrix.orgdramforeveroh, i can't tell if the first hunk here is necessary15:40:53
@dramforever:matrix.orgdramforever anyway i made that if (procDir && false) 15:42:06
@dramforever:matrix.orgdramforeverit shouldn't matter, right? builder should do their own temproots15:42:14
@dramforever:matrix.orgdramforeverand now the real fun begins15:42:18
@dramforever:matrix.orgdramforever

these things probably have the same cause, i think - the build can have paths gc'd from under them

       > checking for riscv64-unknown-linux-gnu-gcc... riscv64-unknown-linux-gnu-gcc
       > checking whether the C compiler works... no
       > configure: error: in '/build/hello-2.12.3':
       > configure: error: C compiler cannot create executables
       > See 'config.log' for more details
terminating due to unexpected unrecoverable internal error: Assertion 'false' failed in nix::DerivationTrampolineGoal::init()::<lambda()> at ../src/libstore/build/derivation-trampoline-goal.cc:125
15:44:25
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Hm, that is on master right?15:44:52
@dramforever:matrix.orgdramforever b8b3e37b38d2bcc4a4633bf2c7d67e60603308a6 with #15469 merged in 15:45:40
@dramforever:matrix.orgdramforeverbut i think i managed to get similar things on 2.34.415:45:52
@dramforever:matrix.orgdramforever

this one is probably the fetcher thing?

       … while calling the 'import' builtin
         at /home/dram/code/config/flake.nix:53:24:
           52|     flake-utils.lib.eachDefaultSystem (system: {
           53|       legacyPackages = import nixpkgs {
             |                        ^
           54|         inherit system;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: path '/nix/store/yxn9vm8hjp9j9vkn1979bh9rzg2gga94-source' is not valid
15:47:19
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Hm fetcher cache is busted in that regard yes15:47:45
@dramforever:matrix.orgdramforever yxn9v... is indeed supposed to be nixpkgs 15:48:13
@dramforever:matrix.orgdramforeveractually wait that's my flake15:48:27
@dramforever:matrix.orgdramforever* actually wait that's importing my flake15:48:41
@dramforever:matrix.orgdramforeveri lied lol nixpkgs on my computer is my flake 15:49:57
@dramforever:matrix.orgdramforeveri hope it's not relevant, i'll try again later with actual nixpkgs15:49:58
@dramforever:matrix.orgdramforever

here's another error from the gc process

finding garbage collector roots...
deleting garbage...
deleting '/nix/store/tmp-942181-1014327575'
1 store paths deleted, 0.0 KiB freed
error:
       … While deleting garbage in store directory "/home/dram/tmp/teststore/nix/store/tmp-942181-1014327575"

       error: opening directory "/home/dram/tmp/teststore/nix/store/tmp-942181-1014327575/x/pkgs/by-name/an/anime4k": No such file or directory
15:51:56
@dramforever:matrix.orgdramforeverstill looks like fetcher problems?15:52:17
@dramforever:matrix.orgdramforeverlooks like the fetcher is not locking the tmp path?15:52:29
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Hm the boost regex thing is actually baffling https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/background/thread_safety.html15:52:37
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)The docs say it is thread safee...15:52:49
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

But:


#0  std::_List_iterator<std::pair<std::shared_ptr<boost::re_detail_500::cpp_regex_traits_implementation<char> const>, boost::re_detail_500::cpp_regex_traits_base<char> const*> >::operator++ (this=<optimized out>)
    at /nix/store/yps9cjmi8g58mh0f7pw902br7gxwg2dz-gcc-14.3.0/include/c++/14.3.0/bits/stl_list.h:290
#1  std::__cxx11::list<std::pair<std::shared_ptr<boost::re_detail_500::cpp_regex_traits_implementation<char> const>, boost::re_detail_500::cpp_regex_traits_base<char> const*>, std::allocator<std::pair<std::shared_ptr<boost::re_detail_500::cpp_regex_traits_implementation<char> const>, boost::re_detail_500::cpp_regex_traits_base<char> const*> > >::splice (this=0x7ff093ffcc00, __position={...},
    __i=<error reading variable: Cannot access memory at address 0x50>, __x=...)
    at /nix/store/yps9cjmi8g58mh0f7pw902br7gxwg2dz-gcc-14.3.0/include/c++/14.3.0/bits/stl_list.h:1672
#2  std::__cxx11::list<std::pair<std::shared_ptr<boost::re_detail_500::cpp_regex_traits_implementation<char> const>, boost::re_detail_500::cpp_regex_traits_base<char> const*>, std::allocator<std::pair<std::shared_ptr<boost::re_detail_500::cpp_regex_traits_implementation<char> const>, boost::re_detail_500::cpp_regex_traits_base<char> const*> > >::splice (this=0x7ff093ffcc00, __position={...},
    __i=<error reading variable: Cannot access memory at address 0x50>, __x=...)
    at /nix/store/yps9cjmi8g58mh0f7pw902br7gxwg2dz-gcc-14.3.0/include/c++/14.3.0/bits/stl_list.h:1699
#3  boost::object_cache<boost::re_detail_500::cpp_regex_traits_base<char>, boost::re_detail_500::cpp_regex_traits_implementation<char> >::do_get (k=..., l_max_cache_size=l_max_cache_size@entry=5)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/object_cache.hpp:100
#4  0x00007ff4bd772e95 in boost::object_cache<boost::re_detail_500::cpp_regex_traits_base<char>, boost::re_detail_500::cpp_regex_traits_implementation<char> >::get (k=..., l_max_cache_size=5)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/object_cache.hpp:70
#5  boost::re_detail_500::create_cpp_regex_traits<char> (l=Python Exception <class 'gdb.error'>: There is no member named _M_impl.
)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/cpp_regex_traits.hpp:729
#6  0x00007ff4bd772d7f in boost::cpp_regex_traits<char>::cpp_regex_traits (this=0x7ff08c009ef0)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/cpp_regex_traits.hpp:749
#7  boost::regex_traits<char, boost::cpp_regex_traits<char> >::regex_traits (this=0x7ff08c009ef0)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/regex_traits.hpp:39
#8  boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > >::regex_traits_wrapper (this=0x7ff08c009ef0)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/regex_traits.hpp:121
#9  boost::re_detail_500::regex_data<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::regex_data (this=0x7ff08c009d50)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/basic_regex.hpp:172
#10 0x00007ff4bd7729bd in boost::re_detail_500::basic_regex_implementation<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::basic_regex_implementation (this=0x7ff08c009d50)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/basic_regex.hpp:212
#11 boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign (
    this=this@entry=0x7ff4bd90cad0 <nix::quoteRegexChars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::specialRegex>, p1=p1@entry=0x7ff4bd580f79 <.L.str.27> "[.^$\\\\*+?()\\[\\]{}|]", p2=0x7ff4bd580f8c <.L.str.27+19> "", f=f@entry=0)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/basic_regex.hpp:640
#12 0x00007ff4bd76d593 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign (
    this=0x7ff4bd90cad0 <nix::quoteRegexChars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::specialRegex>, p1=0x7ff4bd580f79 <.L.str.27> "[.^$\\\\*+?()\\[\\]{}|]", p2=0x7ff093ffcc00 "", p2@entry=0x0, f=0)
    at /nix/store/zw6w6chqvqsh2c6jfsb4pw9bpgdkmjnh-boost-1.87.0-dev/include/boost/regex/v5/basic_regex.hpp:387
#13 boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign (
    this=0x7ff4bd90cad0 <nix::quoteRegexChars(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::specialRegex>, p=0x7ff4bd580f79 <.L.str.27> "[.^$\\\\*+?()\\[\\]{}|]", f=0)
15:53:18
@dramforever:matrix.orgdramforeverwhich ones have you reproduced yet15:53:28
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Consistently hitting the boost sigsev, nothing else yet15:53:53
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Ohhhh15:54:27
@dramforever:matrix.orgdramforever

yeah i just...

diff --git a/src/libstore/local-gc.cc b/src/libstore/local-gc.cc
index e3c74f357..32a20c0ea 100644
--- a/src/libstore/local-gc.cc
+++ b/src/libstore/local-gc.cc
@@ -66,3 +66,3 @@ Roots findRuntimeRootsUnchecked(const StoreDirConfig & config)
     auto procDir = AutoCloseDir{opendir("/proc")};
-    if (procDir) {
+    if (procDir && false) {
         struct dirent * ent;
15:55:24

Show newer messages


Back to Room ListRoom Version: 6