Skip to content
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

Segfault in evaluation or libstore #4178

Closed
roberth opened this issue Oct 22, 2020 · 17 comments
Closed

Segfault in evaluation or libstore #4178

roberth opened this issue Oct 22, 2020 · 17 comments
Labels
Milestone

Comments

@roberth
Copy link
Member

roberth commented Oct 22, 2020

Describe the bug

Nix segfaults when when evaluating. (although bisect suggests it's due to libstore)

Steps To Reproduce

# get files that trigger the bug. I don't think the expressions are special in any other way than triggering the bug.
git clone https://github.com/hercules-ci/hercules-ci-agent
cd hercules-ci-agent
git checkout 5b454900a0b2e0ebd95900ce3c28304adcbbad09

nix build nix/21830cb0447f2ad3d436a8b9df43222a787bb80e#defaultPackage.x86_64-linux -o built; ./built/bin/nix-instantiate ./nix/shellFor.nix

Expected behavior

No segfault; successful evaluation.

Version

master since #4030

system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 3.0pre19700101_dirty, channels(user): "", channels(root): "", nixpkgs: /home/user/system-config/nix/like-nixpkgs

Additional context

I've tested run this bisect with a nix-daemon from master, regardless of the revision under test. The bug might not be triggered when the daemon is older than #4030. This also happens when nix-daemon is 2.3.7. Also the protocol changed between commits in that PR, so the commit found by bisect actually reports a protocol incompatibility rather than a crash.

Running it in gdb avoided the crash.

valgrind finds four Conditional jump or move depends on uninitialised value(s) in boehmgc and later crashes itself.

valgrind log
valgrind -- ./built/bin/nix-instantiate ~/h/hercules-ci-agent/nix/shellFor.nix
==11986== Memcheck, a memory error detector
==11986== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==11986== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==11986== Command: ./built/bin/nix-instantiate /home/user/h/hercules-ci-agent/nix/shellFor.nix
==11986== 
==11986== Conditional jump or move depends on uninitialised value(s)
==11986==    at 0x4AA1D4B: GC_push_all_eager (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AA6954: GC_with_callee_saves_pushed (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AA74EB: GC_push_roots (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB7B6: GC_mark_some (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB9D4: GC_stopped_mark (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AACFF3: GC_try_to_collect_inner (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAEA78: GC_init (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x498CF3D: nix::initGC() (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x55824E: nix::mainWrapped(int, char**) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4D4926C: nix::handleExceptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()>) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixmain.so)
==11986==    by 0x45D32A: main (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986== 
==11986== Conditional jump or move depends on uninitialised value(s)
==11986==    at 0x4AA1D46: GC_push_all_eager (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AA6954: GC_with_callee_saves_pushed (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AA74EB: GC_push_roots (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB7B6: GC_mark_some (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB9D4: GC_stopped_mark (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AACFF3: GC_try_to_collect_inner (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAEA78: GC_init (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x498CF3D: nix::initGC() (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x55824E: nix::mainWrapped(int, char**) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4D4926C: nix::handleExceptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()>) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixmain.so)
==11986==    by 0x45D32A: main (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986== 
==11986== Conditional jump or move depends on uninitialised value(s)
==11986==    at 0x4AA1D46: GC_push_all_eager (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAFD9F: GC_push_all_stacks (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB7B6: GC_mark_some (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB9D4: GC_stopped_mark (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AACFF3: GC_try_to_collect_inner (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAEA78: GC_init (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x498CF3D: nix::initGC() (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x55824E: nix::mainWrapped(int, char**) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4D4926C: nix::handleExceptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()>) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixmain.so)
==11986==    by 0x45D32A: main (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986== 
==11986== Conditional jump or move depends on uninitialised value(s)
==11986==    at 0x4AA1D4B: GC_push_all_eager (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAFD9F: GC_push_all_stacks (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB7B6: GC_mark_some (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB9D4: GC_stopped_mark (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AACFF3: GC_try_to_collect_inner (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAEA78: GC_init (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x498CF3D: nix::initGC() (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x55824E: nix::mainWrapped(int, char**) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4D4926C: nix::handleExceptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()>) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixmain.so)
==11986==    by 0x45D32A: main (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986== 
==11986== Warning: set address range perms: large range [0xcd0a000, 0x24d0a000) (defined)
==11986== Warning: client switching stacks?  SP change: 0x1ffefeec80 --> 0x2896ae80
==11986==          to suppress, use: --max-stackframe=136741142016 or greater
==11986== Warning: client switching stacks?  SP change: 0x2896adb0 --> 0x1ffefeec80
==11986==          to suppress, use: --max-stackframe=136741142224 or greater
==11986== Warning: client switching stacks?  SP change: 0x1ffefeec80 --> 0x2896adb0
==11986==          to suppress, use: --max-stackframe=136741142224 or greater
==11986==          further instances of this message will not be shown.

valgrind: m_mallocfree.c:303 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
valgrind: Heap block lo/hi size mismatch: lo = 65616, hi = 77113613.
This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata.  If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away.  Please try that before reporting this as a bug.


host stacktrace:
==11986==    at 0x580449AA: show_sched_status_wrk (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x58044AC7: report_and_quit (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x58044C5A: vgPlain_assert_fail (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x5804DBEA: mergeWithFreeNeighbours (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x580057A1: create_MC_Chunk (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x58005989: vgMemCheck_new_block (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x58005B86: vgMemCheck___builtin_new (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x5809EA5E: vgPlain_scheduler (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)
==11986==    by 0x580EDED5: run_a_thread_NORETURN (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/memcheck-amd64-linux)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 11986)
==11986==    at 0x4837DB2: operator new(unsigned long) (in /nix/store/kbb7bjxpgmgl8piw588xsmqm14pzlfh2-valgrind-3.16.1/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11986==    by 0x53B7AAC: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) (in /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28)
==11986==    by 0x53B90BA: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long) (in /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28)
==11986==    by 0x50701E4: nix::Store::printStorePath[abi:cxx11](nix::StorePath const&) const (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixstore.so)
==11986==    by 0x4A13622: nix::prim_derivationStrict(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4984614: nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A25E: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x52F1B7: nix::EvalState::forceValue(nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4A0451E: nix::prim_getAttr(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4984614: nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A25E: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x52F1B7: nix::EvalState::forceValue(nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x498BF85: nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498C61A: nix::ExprAssert::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x52F1B7: nix::EvalState::forceValue(nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x498BF85: nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498CE5F: nix::ExprOpNEq::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4A085E8: nix::anyOrAll(bool, nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4984614: nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A25E: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4A093C9: nix::prim_filter(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4984614: nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A25E: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4A0966B: nix::prim_concatMap(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4984614: nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A25E: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x52F1B7: nix::EvalState::forceValue(nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x498A42D: nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498AFBD: nix::ExprOpConcatLists::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498AFD0: nix::ExprOpConcatLists::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x52F1B7: nix::EvalState::forceValue(nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x498A42D: nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498CE47: nix::ExprOpNEq::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498C85D: nix::ExprOpImpl::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498C5F5: nix::ExprAssert::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x52F1B7: nix::EvalState::forceValue(nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x498A42D: nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498C61A: nix::ExprAssert::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498C61A: nix::ExprAssert::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A235: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4A06F14: nix::prim_isAttrs(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4984614: nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A25E: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498C497: nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498BD6D: nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A8E7: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498BD6D: nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A8E7: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x498A90C: nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4989F49: nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x49E1E94: nix::getDerivations(nix::EvalState&, nix::Value&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Bindings&, std::__cxx11::list<nix::DrvInfo, traceable_allocator<nix::DrvInfo> >&, std::set<nix::Bindings*, std::less<nix::Bindings*>, std::allocator<nix::Bindings*> >&, bool) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x49E28D3: nix::getDerivations(nix::EvalState&, nix::Value&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Bindings&, std::__cxx11::list<nix::DrvInfo, traceable_allocator<nix::DrvInfo> >&, bool) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixexpr.so)
==11986==    by 0x4C309A: processExpr(nix::EvalState&, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool, bool, nix::Bindings&, bool, OutputKind, bool, nix::Expr*) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4C4DEC: main_nix_instantiate(int, char**) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x55840A: nix::mainWrapped(int, char**) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
==11986==    by 0x4D4926C: nix::handleExceptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()>) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixmain.so)
==11986==    by 0x45D32A: main (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/bin/nix)
client stack range: [0x1FFEFCE000 0x1FFF000FFF] client SP: 0x1FFEFF3A10
valgrind stack range: [0x1002CAA000 0x1002DA9FFF] top usage: 8680 of 1048576

Thread 2: status = VgTs_WaitSys syscall 128 (lwpid 11987)
==11986==    at 0x560CC7C: sigtimedwait (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
==11986==    by 0x55C5AE3: sigwait (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x522EF64: nix::signalHandlerThread(__sigset_t) (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixutil.so)
==11986==    by 0x52366CC: std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> > >::_M_run() (in /nix/store/cbqxml92cq8xd8f9fjx9yy18lbsihpg2-nix-3.0pre20201021_21830cb/lib/libnixutil.so)
==11986==    by 0x534E92F: ??? (in /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x6B6F000 0x736DFFF] client SP: 0x736DA90
valgrind stack range: [0x1006067000 0x1006166FFF] top usage: 3416 of 1048576

Thread 3: status = VgTs_WaitSys syscall 202 (lwpid 11988)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x74F0000 0x7CEEFFF] client SP: 0x7CDEB20
valgrind stack range: [0x1006387000 0x1006486FFF] top usage: 3624 of 1048576

Thread 4: status = VgTs_WaitSys syscall 202 (lwpid 11989)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x7CF1000 0x84EFFFF] client SP: 0x84DFB20
valgrind stack range: [0x100668F000 0x100678EFFF] top usage: 2696 of 1048576

Thread 5: status = VgTs_WaitSys syscall 202 (lwpid 11990)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x84F2000 0x8CF0FFF] client SP: 0x8CE0B20
valgrind stack range: [0x1006993000 0x1006A92FFF] top usage: 3400 of 1048576

Thread 6: status = VgTs_WaitSys syscall 202 (lwpid 11991)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x8CF3000 0x94F1FFF] client SP: 0x94E1B20
valgrind stack range: [0x1006C97000 0x1006D96FFF] top usage: 2696 of 1048576

Thread 7: status = VgTs_WaitSys syscall 202 (lwpid 11992)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x94F4000 0x9CF2FFF] client SP: 0x9CE2B20
valgrind stack range: [0x1006F9B000 0x100709AFFF] top usage: 3272 of 1048576

Thread 8: status = VgTs_WaitSys syscall 202 (lwpid 11993)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0x9CF5000 0xA4F3FFF] client SP: 0xA4E3B20
valgrind stack range: [0x100729F000 0x100739EFFF] top usage: 3128 of 1048576

Thread 9: status = VgTs_WaitSys syscall 202 (lwpid 11994)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0xA4F6000 0xACF4FFF] client SP: 0xACE4B20
valgrind stack range: [0x10075A3000 0x10076A2FFF] top usage: 2696 of 1048576

Thread 10: status = VgTs_WaitSys syscall 202 (lwpid 11995)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0xACF7000 0xB4F5FFF] client SP: 0xB4E5B20
valgrind stack range: [0x10078A7000 0x10079A6FFF] top usage: 3304 of 1048576

Thread 11: status = VgTs_WaitSys syscall 202 (lwpid 11996)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0xB4F8000 0xBCF6FFF] client SP: 0xBCE6B20
valgrind stack range: [0x1007BAB000 0x1007CAAFFF] top usage: 3400 of 1048576

Thread 12: status = VgTs_WaitSys syscall 202 (lwpid 11997)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0xBCF9000 0xC4F7FFF] client SP: 0xC4E7B20
valgrind stack range: [0x1007EAF000 0x1007FAEFFF] top usage: 2696 of 1048576

Thread 13: status = VgTs_WaitSys syscall 202 (lwpid 11998)
==11986==    at 0x55C188D: pthread_cond_wait@@GLIBC_2.3.2 (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x4AAAEC6: GC_wait_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB349: GC_help_marker (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x4AAB41E: GC_mark_thread (in /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1.4.3)
==11986==    by 0x55BAEAC: start_thread (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread-2.31.so)
==11986==    by 0x56CBD2E: clone (in /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc-2.31.so)
client stack range: [0xC4FA000 0xCCF8FFF] client SP: 0xCCE8B20
valgrind stack range: [0x10081B3000 0x10082B2FFF] top usage: 3288 of 1048576


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.
git bisect session
git bisect start
# git bisect bad 21830cb0447f2ad3d436a8b9df43222a787bb80e # master when I ran the bisect
git bisect good 3f264916dbfe346a71fa4182c9037332ac54f9d9
cat ./crash.sh
#!/usr/bin/env bash
if ! nix build .#defaultPackage.x86_64-linux -o built;
then exit 125
fi
if ! ./built/bin/nix-instantiate ~/h/hercules-ci-agent/nix/shellFor.nix
then exit 1
fi

git bisect run ./crash.sh
running ./crash.sh
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/x4fbxirhfwf6gl4ar8rd6npzxls7axk2-ghc-shell-for-packages-0.drv
Bisecting: 214 revisions left to test after this (roughly 8 steps)
[10202bbf29128a5ef639388e4613111104385955] Merge remote-tracking branch 'upstream/master' into ca-floating-upstream
running ./crash.sh
./crash.sh: line 9: 27562 Segmentation fault      (core dumped) ./built/bin/nix-instantiate ~/h/hercules-ci-agent/nix/shellFor.nix
Bisecting: 112 revisions left to test after this (roughly 7 steps)
[5080d4e7b2525d1656282c65a217a22ff8381df3] Merge branch 'document-store-options' of https://github.com/tweag/nix
running ./crash.sh
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/x4fbxirhfwf6gl4ar8rd6npzxls7axk2-ghc-shell-for-packages-0.drv
Bisecting: 58 revisions left to test after this (roughly 6 steps)
[35a0ac183858ecb03e313e088562c84fe211e20d] Style fixes
running ./crash.sh
./crash.sh: line 9:   503 Segmentation fault      (core dumped) ./built/bin/nix-instantiate ~/h/hercules-ci-agent/nix/shellFor.nix
Bisecting: 26 revisions left to test after this (roughly 5 steps)
[ca30abb3fb36440e5a13161c39647189036fc18f] Document addCAToStore/addToStoreFromDump source drainage
running ./crash.sh
./crash.sh: line 9:  5249 Segmentation fault      (core dumped) ./built/bin/nix-instantiate ~/h/hercules-ci-agent/nix/shellFor.nix
Bisecting: 12 revisions left to test after this (roughly 4 steps)
[649d3aaf2481b928120b6ce77d68b1b7c68f69e6] Merge pull request #3829 from obsidiansystems/remove-storetype-delegate-regStore
running ./crash.sh
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/x4fbxirhfwf6gl4ar8rd6npzxls7axk2-ghc-shell-for-packages-0.drv
Bisecting: 6 revisions left to test after this (roughly 3 steps)
[e34fe47d0ce19fc7657970fb0e610bffbc3e43f0] Overhaul wopAddToStore
running ./crash.sh
error: --- Error ---------------------------------------------------------------------------------------------------------------------------------------------------------- nix-instantiate
error: --- SerialisationError --- nix-daemon
serialised integer 512 is too large for type 'b'
(use '--show-trace' to show detailed location information)
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[29c82ccc77714a74e8948ce8c531de5a8d870176] Add Source.drainInto(Sink)
running ./crash.sh
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/x4fbxirhfwf6gl4ar8rd6npzxls7axk2-ghc-shell-for-packages-0.drv
Bisecting: 0 revisions left to test after this (roughly 1 step)
[14b30b3f3d5af75c210a15cb128e67c0eff66149] Move FramedSource and FramedSink, extract withFramedSink
running ./crash.sh
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/x4fbxirhfwf6gl4ar8rd6npzxls7axk2-ghc-shell-for-packages-0.drv
e34fe47d0ce19fc7657970fb0e610bffbc3e43f0 is the first bad commit
commit e34fe47d0ce19fc7657970fb0e610bffbc3e43f0
Author: Robert Hensing <[email protected]>
Date:   Thu Sep 17 19:27:11 2020 +0200

    Overhaul wopAddToStore

 src/libstore/daemon.cc          |  97 +++++++++++++++++++++++--------------
 src/libstore/remote-store.cc    | 103 ++++++++++++++++++++++++----------------
 src/libstore/remote-store.hh    |   7 ++-
 src/libstore/worker-protocol.hh |   2 +-
 4 files changed, 129 insertions(+), 80 deletions(-)
bisect run success
@roberth roberth added the bug label Oct 22, 2020
@edolstra
Copy link
Member

Valgrind warnings in boehmgc are largely meaningless since it's normal behaviour for the collector to scan uninitialized memory.

@edolstra
Copy link
Member

I couldn't reproduce this on master:

$ nix-instantiate ./nix/shellFor.nix
(lots of building)
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/x4fbxirhfwf6gl4ar8rd6npzxls7axk2-ghc-shell-for-packages-0.drv

Since it is doing IFD, it's possible that the bug is on the daemon side.

Maybe you can get a stack trace out of the core dump (gdb /path/to/nix core, bt or thread apply all bt)?

@roberth
Copy link
Member Author

roberth commented Oct 22, 2020

The daemon's raise() call looks like as expected, aborting when no next operation can be read (because the client is gone). Correct me if I'm wrong.

daemon raise
(gdb) thread apply all bt

Thread 1 (Thread 0x7f44a0333a00 (LWP 2975)):
#0  0x00007f44a134308a in raise () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#1  0x00007f44a132d528 in abort () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#2  0x00007f44a16ea693 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#3  0x00007f44a16f5f06 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#4  0x00007f44a16f5009 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#5  0x00007f44a16f5934 in __gxx_personality_v0 () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#6  0x00007f44a14fbda3 in _Unwind_RaiseException_Phase2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libgcc_s.so.1
#7  0x00007f44a14fc301 in _Unwind_RaiseException () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libgcc_s.so.1
#8  0x00007f44a16f61b7 in __cxa_throw () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#9  0x00007f44a1888e52 in nix::FdSource::readUnbuffered(unsigned char*, unsigned long) [clone .cold] () at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:260
#10 0x00007f44a18e0a92 in nix::BufferedSource::read (this=0x7ffe029b4280, data=0x7ffe029b3a90 "", len=8) at src/libutil/serialise.cc:124
#11 0x00007f44a18e14d8 in nix::Source::operator() (this=0x7ffe029b4280, data=data@entry=0x7ffe029b3a90 "", len=len@entry=8) at src/libutil/serialise.cc:90
#12 0x000000000046ef34 in nix::readNum<unsigned int> (source=...) at src/libutil/serialise.hh:331
#13 0x00007f44a1aea67b in nix::readInt (source=...) at src/libutil/serialise.hh:433
#14 nix::FramedSource::~FramedSource (this=0x7ffe029b3c80, __in_chrg=<optimized out>) at src/libutil/serialise.hh:433
#15 0x00007f44a1a1dca1 in nix::daemon::processConnection(nix::ref<nix::Store>, nix::FdSource&, nix::FdSink&, nix::daemon::TrustedFlag, nix::daemon::RecursiveFlag, std::function<void (nix::Store&)>) [clone .cold] () at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/ext/new_allocator.h:89
#16 0x00000000004a1235 in <lambda()>::operator() (__closure=0x1729340) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/new:174
#17 std::_Function_handler<void(), daemonLoop(char**)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:300
#18 0x00007f44a1901d9c in std::function<void ()>::operator()() const (this=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:683
#19 nix::<lambda()>::operator() (__closure=0x7ffe029b4490, __closure=0x7ffe029b4490) at src/libutil/util.cc:1006
#20 std::_Function_handler<void(), nix::startProcess(std::function<void()>, const nix::ProcessOptions&)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:300
#21 0x00007f44a18fe749 in std::function<void ()>::operator()() const (this=0x7ffe029b4490) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:683
#22 nix::doFork(bool, std::function<void()>) (allowVfork=<optimized out>, fun=...) at src/libutil/util.cc:990
#23 0x00007f44a1901c89 in nix::startProcess(std::function<void ()>, nix::ProcessOptions const&) (fun=..., options=...) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/new:174
#24 0x00000000004a23f3 in daemonLoop (argv=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:87
#25 main_nix_daemon (argc=<optimized out>, argv=<optimized out>) at src/nix-daemon/nix-daemon.cc:326
#26 0x000000000055840b in std::function<void (int, char**)>::operator()(int, char**) const (__args#1=<optimized out>, __args#0=<optimized out>, this=0x7ffe029b5000) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:683
#27 nix::mainWrapped (argc=<optimized out>, argv=<optimized out>) at src/nix/main.cc:169
#28 0x00007f44a1d7326d in std::function<void ()>::operator()() const (this=0x7ffe029b56e0) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/std_function.h:683
#29 nix::handleExceptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()>) (programName="nix-daemon", fun=...) at src/libmain/shared.cc:312
#30 0x000000000045d32b in main (argc=<optimized out>, argv=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/ext/new_allocator.h:80

nix-instantiate appears to have crashed in forceValue. Perhaps an invalid Value was passed to it, but the stack trace looks broken. Is that a known problem or is the stack corrupted?

client crash
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000052f195 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
[Current thread is 1 (Thread 0x7fc029fb3a00 (LWP 2962))]
(gdb) bt
#0  0x000000000052f195 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#1  0x0000000000000000 in ?? ()
(gdb) thread apply all bt

Thread 14 (Thread 0x7fc00bdd1700 (LWP 6626)):
#0  0x00007fc02b15bf74 in read () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02b562d7e in read (__nbytes=32768, __buf=0x1a042a0, __fd=<optimized out>) at /nix/store/4wy9j24psf9ny4di3anjs7yk2fvfb0gq-glibc-2.31-dev/include/bits/unistd.h:44
#2  nix::FdSource::readUnbuffered (this=0x19fc238, data=0x1a042a0 "stla", len=32768) at src/libutil/serialise.cc:146
#3  0x00007fc02b560a32 in nix::BufferedSource::read (this=0x19fc238, data=0x7fc00bdd0820 "stla", len=8) at src/libutil/serialise.cc:124
#4  0x00007fc02b561478 in nix::Source::operator() (this=0x19fc238, data=data@entry=0x7fc00bdd0820 "stla", len=len@entry=8) at src/libutil/serialise.cc:90
#5  0x00007fc02b765ba1 in nix::readNum<unsigned long> (source=...) at src/libutil/serialise.hh:331
#6  0x00007fc02b8135fc in nix::RemoteStore::Connection::processStderr (this=0x19fc1f0, sink=0x0, source=0x0, flush=<optimized out>) at src/libstore/remote-store.cc:838
#7  0x00007fc02b81583a in nix::ConnectionHandle::processStderr (sink=0x0, flush=false, source=0x0, this=0x7ffd51f05240) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/shared_ptr_base.h:1020
#8  nix::ConnectionHandle::<lambda()>::operator() (__closure=0xa0a8f38, __closure=0xa0a8f38) at src/libstore/remote-store.cc:910
#9  std::__invoke_impl<void, nix::ConnectionHandle::withFramedSink(std::function<void(nix::Sink&)>)::<lambda()> > (__f=...) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/invoke.h:60
#10 std::__invoke<nix::ConnectionHandle::withFramedSink(std::function<void(nix::Sink&)>)::<lambda()> > (__fn=...) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/invoke.h:95
#11 std::thread::_Invoker<std::tuple<nix::ConnectionHandle::withFramedSink(std::function<void(nix::Sink&)>)::<lambda()> > >::_M_invoke<0> (this=0xa0a8f38) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/thread:244
#12 std::thread::_Invoker<std::tuple<nix::ConnectionHandle::withFramedSink(std::function<void(nix::Sink&)>)::<lambda()> > >::operator() (this=0xa0a8f38) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/thread:251
#13 std::thread::_State_impl<std::thread::_Invoker<std::tuple<nix::ConnectionHandle::withFramedSink(std::function<void(nix::Sink&)>)::<lambda()> > > >::_M_run(void) (this=0xa0a8f30) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/thread:195
#14 0x00007fc02b39f930 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#15 0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#16 0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 13 (Thread 0x7fc025e25700 (LWP 2971)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 12 (Thread 0x7fc024e23700 (LWP 2973)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 11 (Thread 0x7fc025624700 (LWP 2972)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
--Type <RET> for more, q to quit, c to continue without paging--
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 10 (Thread 0x7fc029fad700 (LWP 2963)):
#0  0x00007fc02afc3c7c in sigtimedwait () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#1  0x00007fc02b15cae4 in sigwait () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#2  0x00007fc02b580f05 in nix::signalHandlerThread (set=...) at src/libutil/util.cc:1546
#3  0x00007fc02b58866d in std::__invoke_impl<void, void (*)(__sigset_t), __sigset_t> (__f=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/invoke.h:89
#4  std::__invoke<void (*)(__sigset_t), __sigset_t> (__fn=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/bits/invoke.h:95
#5  std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> >::_M_invoke<0ul, 1ul> (this=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/thread:244
#6  std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> >::operator() (this=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/thread:251
#7  std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> > >::_M_run (this=<optimized out>) at /nix/store/h31cy7jm6g7cfqbhc5pm4rf9c53i3qfb-gcc-9.3.0/include/c++/9.3.0/thread:195
#8  0x00007fc02b39f930 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#9  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#10 0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 9 (Thread 0x7fc02862a700 (LWP 2966)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 8 (Thread 0x7fc024622700 (LWP 2974)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 7 (Thread 0x7fc026626700 (LWP 2970)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
--Type <RET> for more, q to quit, c to continue without paging--

Thread 6 (Thread 0x7fc027e29700 (LWP 2967)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 5 (Thread 0x7fc027628700 (LWP 2968)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 4 (Thread 0x7fc026e27700 (LWP 2969)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 3 (Thread 0x7fc028e2b700 (LWP 2965)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 2 (Thread 0x7fc02962c700 (LWP 2964)):
#0  0x00007fc02b15888d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007fc02ba22ec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007fc02ba2334a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007fc02ba2341f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007fc02b151ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007fc02b082d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 1 (Thread 0x7fc029fb3a00 (LWP 2962)):
#0  0x000000000052f195 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#1  0x0000000000000000 in ?? ()

@edolstra
Copy link
Member

Yeah it looks like the stack frame is corrupted.

The daemon crash is a separate (but real) issue: we're not handling an exception in a destructor (~FramedSource). We should add a ignoreException() there since we don't want the daemon aborting when a client disconnects.

@roberth
Copy link
Member Author

roberth commented Oct 28, 2020

Some observations on another commit (agent fb5e6c4f0752bda6bbd443e3d1eb02e215df3aee)

The segfault occurs while a thread is in https://github.com/NixOS/nix/blob/20d2140e450b066a521933dd322d089fd6c248fa/src/libstore/remote-store.cc#L475 pointing towards a problem with a source.

The derivation being evaluated (the pre-commit-check) has a source that produces a stack overflow when an expression equivalent to the actual source input is evaluated separately.

Perhaps the segfault handler for stack overflows doesn't do its job in some cases.

I'll try with tail recursion later.

@roberth
Copy link
Member Author

roberth commented Oct 28, 2020

That did the trick. It appears that master can't provide as many recursions as earlier versions. Applying a patch that reduces stack usage solves the problem for this instance.
I'll prepare a PR soon.

@roberth
Copy link
Member Author

roberth commented Oct 29, 2020

#4200 is an example that still fails. The stack overflow is not a sufficient explanation, even if it solves one example of the bug.

@mammothbane
Copy link

Another datapoint that seems related? Can move to another issue if it seems to be a different problem.

$ nix build --impure .
querying info about missing pathsfree(): invalid pointer
[1]    15478 abort (core dumped)  nix build . --impure

$ nix --version
nix (Nix) 3.0pre20201020_e0ca98c
`thread apply all bt` (client)
Thread 14 (Thread 0x7fffd7f23700 (LWP 16499)):
#0  0x00007ffff726ebad in pthread_cond_timedwait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7aeda72 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<nix::ProgressBar::ProgressBar(bool, bool)::{lambda()#1}> > >::_M_run() () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixmain.so
#2  0x00007ffff74b5930 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#3  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#4  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 13 (Thread 0x7ffff0734700 (LWP 16498)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 12 (Thread 0x7ffff0f35700 (LWP 16497)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 11 (Thread 0x7ffff1736700 (LWP 16496)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 10 (Thread 0x7ffff1f37700 (LWP 16495)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 9 (Thread 0x7ffff2738700 (LWP 16494)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 8 (Thread 0x7ffff2f39700 (LWP 16493)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 7 (Thread 0x7ffff373a700 (LWP 16492)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 6 (Thread 0x7ffff3f3b700 (LWP 16491)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 5 (Thread 0x7ffff473c700 (LWP 16490)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 4 (Thread 0x7ffff4f3d700 (LWP 16489)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 3 (Thread 0x7ffff573e700 (LWP 16488)):
#0  0x00007ffff726e88d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#1  0x00007ffff7b1fec7 in GC_wait_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b2034a in GC_help_marker () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b2041f in GC_mark_thread () from /nix/store/qgdd8i3nh7055ffig9mhn55wsxbln1rd-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#5  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 2 (Thread 0x7ffff60bf700 (LWP 16487)):
#0  0x00007ffff70d9c7c in sigtimedwait () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#1  0x00007ffff7272ae4 in sigwait () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#2  0x00007ffff7692e75 in nix::signalHandlerThread(__sigset_t) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixutil.so
#3  0x00007ffff769a5dd in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> > >::_M_run() () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixutil.so
#4  0x00007ffff74b5930 in ?? () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#5  0x00007ffff7267ead in start_thread () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0
#6  0x00007ffff7198d2f in clone () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6

Thread 1 (Thread 0x7ffff60c5a00 (LWP 16482)):
#0  0x00007ffff71260ae in malloc () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#1  0x00007ffff748c615 in operator new(unsigned long) () from /nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib/lib/libstdc++.so.6
#2  0x0000000000494a78 in void std::vector<std::__detail::_State<char>, std::allocator<std::__detail::_State<char> > >::_M_realloc_insert<std::__detail::_State<char> >(__gnu_cxx::__normal_iterator<std::__detail::_State<char>*, std::vector<std::__detail::_State<char>, std::allocator<std::__detail::_State<char> > > >, std::__detail::_State<char>&&) ()
#3  0x0000000000499a42 in std::__detail::_NFA<std::__cxx11::regex_traits<char> >::_M_insert_matcher(std::function<bool (char)>) ()
#4  0x000000000049b923 in void std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_insert_any_matcher_posix<false, false>() ()
#5  0x00000000004a5b33 in std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_atom() ()
#6  0x00000000004a6150 in std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_alternative() ()
#7  0x00000000004a639c in std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_disjunction() ()
#8  0x00000000004a6ad3 in std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_Compiler(char const*, char const*, std::locale const&, std::regex_constants::syntax_option_type) ()
#9  0x00007ffff7ece089 in nix::prim_match(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#10 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#11 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#12 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#13 0x00007ffff7e44468 in nix::ExprOpNEq::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#14 0x00007ffff7e43ab8 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#15 0x00007ffff7e43adf in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#16 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#17 0x00007ffff7ebff9d in nix::prim_foldlStrict(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#18 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#19 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#20 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#21 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#22 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#23 0x00007ffff7e4338e in nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#24 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#25 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#26 0x00007ffff7ec913b in nix::prim_addErrorContext(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#27 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#28 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#29 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#30 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#31 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#32 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#33 0x00007ffff7ec048c in nix::prim_concatMap(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#34 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#35 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#36 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#37 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#38 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#39 0x00007ffff7ec06c4 in nix::prim_concatMap(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#40 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#41 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#42 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#43 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#44 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#45 0x00007ffff7ebe044 in nix::prim_length(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#46 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#47 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#48 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#49 0x00007ffff7ec11c9 in nix::prim_lessThan(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#50 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#51 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#52 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#53 0x00007ffff7e40d69 in nix::ExprOpNot::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#54 0x00007ffff7e43ab8 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#55 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#56 0x00007ffff7e42652 in nix::EvalState::forceInt(nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#57 0x00007ffff7ec0b5c in nix::prim_genList(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#58 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#59 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#60 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#61 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#62 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#63 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#64 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#65 0x00007ffff7e425de in nix::ExprOpConcatLists::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#66 0x00007ffff7ebe044 in nix::prim_length(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#67 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#68 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#69 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#70 0x00007ffff7ec11c9 in nix::prim_lessThan(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#71 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#72 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#73 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#74 0x00007ffff7e40d69 in nix::ExprOpNot::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#75 0x00007ffff7e43ab8 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#76 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#77 0x00007ffff7e42652 in nix::EvalState::forceInt(nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#78 0x00007ffff7ec0b5c in nix::prim_genList(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#79 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#80 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#81 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#82 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#83 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#84 0x00007ffff7ebee16 in nix::prim_map(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#85 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#86 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#87 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#88 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#89 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#90 0x00007ffff7e425de in nix::ExprOpConcatLists::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#91 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#92 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#93 0x00007ffff7ebee16 in nix::prim_map(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#94 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#95 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#96 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#97 0x00007ffff7ec0079 in nix::prim_foldlStrict(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#98 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#99 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#100 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#101 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#102 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#103 0x00007ffff7e41f08 in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#104 0x00007ffff7e41f08 in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#105 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#106 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#107 0x00007ffff7e443c8 in nix::ExprOpEq::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#108 0x00007ffff7e43ab8 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#109 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#110 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#111 0x00007ffff7e43f9b in nix::ExprOpAnd::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#112 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#113 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#114 0x00007ffff7e43ab8 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#115 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#116 0x00007ffff7ec048c in nix::prim_concatMap(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#117 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#118 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#119 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#120 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#121 0x00007ffff7ebd437 in nix::prim_listToAttrs(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#122 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#123 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#124 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#125 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#126 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#127 0x00007ffff7ebe5e6 in nix::prim_mapAttrs(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#128 0x00007ffff7e3bc45 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#129 0x00007ffff7e4187f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#130 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#131 0x00007ffff7e41198 in nix::ExprOpUpdate::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#132 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#133 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#134 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#135 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#136 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#137 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#138 0x00007ffff7e43adf in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#139 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#140 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#141 0x00007ffff7e43adf in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#142 0x00007ffff7e43adf in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#143 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#144 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#145 0x00007ffff7e4338e in nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#146 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#147 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#148 0x00007ffff7e41f08 in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#149 0x00007ffff7e41f08 in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#150 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#151 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#152 0x00007ffff7e443c8 in nix::ExprOpEq::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#153 0x00007ffff7e43ab8 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#154 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#155 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#156 0x0000000000541f68 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#157 0x00007ffff7e41a4e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#158 0x00007ffff7e43f3e in nix::ExprOpAnd::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#159 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#160 0x00007ffff7e41f2d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#161 0x00007ffff7e43f9b in nix::ExprOpAnd::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#162 0x00007ffff7e4156a in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#163 0x00007ffff7eb67a6 in nix::addPath(nix::EvalState&, nix::Pos const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Value*, nix::FileIngestionMethod, std::optional<nix::Hash>, nix::Value&)::{lambda(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)#1}::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixexpr.so
#164 0x00007ffff762c4da in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixutil.so
#165 0x00007ffff7675ef8 in void boost::context::detail::fiber_entry<boost::context::detail::fiber_record<boost::context::fiber, boost::context::basic_fixedsize_stack<boost::context::stack_traits>, boost::coroutines2::detail::pull_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::control_block::control_block<boost::context::basic_fixedsize_stack<boost::context::stack_traits>, nix::sinkToSource(std::function<void (nix::Sink&)>, std::function<void ()>)::SinkToSource::read(unsigned char*, unsigned long)::{lambda(boost::coroutines2::detail::push_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)#1}>(boost::context::preallocated, boost::context::basic_fixedsize_stack<boost::context::stack_traits>&&, nix::sinkToSource(std::function<void (nix::Sink&)>, std::function<void ()>)::SinkToSource::read(unsigned char*, unsigned long)::{lambda(boost::coroutines2::detail::push_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)#1}&&)::{lambda(boost::context::fiber&&)#1}> >(boost::context::detail::transfer_t) () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libnixutil.so
#166 0x00007ffff65ea1ef in make_fcontext () from /nix/store/d3mli5a7ac4li9ixxnjxyn2dhyv1v7ws-nix-3.0pre20201020_e0ca98c/lib/libboost_context.so.1.69.0
#167 0x0a3b7d202020200a in ?? ()
#168 0x6174656d20202020 in ?? ()
#169 0x2020200a7b203d20 in ?? ()
#170 0x7263736564202020 in ?? ()
#171 0x3d206e6f69747069 in ?? ()
#172 0x676e697274532220 in ?? ()
#173 0x2d206c6974553a3a in ?? ()
#174 0x676e69727453202d in ?? ()
#175 0x0000000000020000 in ?? ()
#176 0x0000000009940390 in ?? ()
#177 0x0000000000020000 in ?? ()
#178 0x0000000009940340 in ?? ()
#179 0x00000000098c9170 in ?? ()
#180 0x6474732068746977 in ?? ()
#181 0x2e62696c2e766e65 in ?? ()
#182 0x7365736e6563696c in ?? ()
#183 0x0000000000000000 in ?? ()

roberth added a commit to hercules-ci/nix that referenced this issue Oct 30, 2020
Crucially this introduces BoehmGCStackAllocator, but it also
adds a bunch of wiring to avoid making libutil depend on bdw-gc.

Part of the solutions for NixOS#4178, NixOS#4200
@lopsided98
Copy link

I'm seeing something maybe related while evaluating a NixOS configuration. I tested with NixOS/nixpkgs#102932 and it doesn't fix the issue.

Backtrace

Thread 9 (Thread 0x7ffff271e640 (LWP 4178485)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 8 (Thread 0x7ffff2f1f640 (LWP 4178484)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 7 (Thread 0x7ffff3720640 (LWP 4178483)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 6 (Thread 0x7ffff3f21640 (LWP 4178482)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
--Type <RET> for more, q to quit, c to continue without paging--c
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 5 (Thread 0x7ffff4722640 (LWP 4178481)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 4 (Thread 0x7ffff4f23640 (LWP 4178480)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 3 (Thread 0x7ffff5724640 (LWP 4178479)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 2 (Thread 0x7ffff60a5640 (LWP 4178478)):
#0  0x00007ffff70c6f0c in sigtimedwait () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6
#1  0x00007ffff7261304 in sigwait () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#2  0x00007ffff768b255 in nix::signalHandlerThread(__sigset_t) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#3  0x00007ffff76929bd in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> > >::_M_run() () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#4  0x00007ffff74a6930 in ?? () from /nix/store/xbwr3krv4kkyv5h8ici7vkpnsx5w3cv3-gcc-9.3.0-lib/lib/libstdc++.so.6
#5  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#6  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 1 (Thread 0x7ffff60aba00 (LWP 4178474)):
#0  0x00007ffff7b10d40 in GC_push_all_eager () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#1  0x00007ffff7b1eda0 in GC_push_all_stacks () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a7b7 in GC_mark_some () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a9d5 in GC_stopped_mark () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7b1bff4 in GC_try_to_collect_inner () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#5  0x00007ffff7b1c368 in GC_collect_or_expand () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#6  0x00007ffff7b1c728 in GC_allocobj () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#7  0x00007ffff7b1cabf in GC_generic_malloc_inner () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#8  0x00007ffff7b2186e in GC_generic_malloc_many () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#9  0x00007ffff7b21a52 in GC_malloc_kind () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#10 0x00007ffff7e36946 in nix::EvalState::allocValue() () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#11 0x00007ffff7e36981 in nix::Expr::maybeThunk(nix::EvalState&, nix::Env&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#12 0x00007ffff7e3e338 in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#13 0x0000000000544d98 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#14 0x00007ffff7e3de6e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#15 0x00007ffff7e407e8 in nix::ExprOpEq::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#16 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#17 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#18 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#19 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#20 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#21 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#22 0x00007ffff7e4035e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#23 0x00007ffff7e3d189 in nix::ExprOpNot::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#24 0x00007ffff7e3da13 in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#25 0x00007ffff7eb2f06 in nix::addPath(nix::EvalState&, nix::Pos const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Value*, nix::FileIngestionMethod, std::optional<nix::Hash>, nix::Value&)::{lambda(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)#1}::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#26 0x00007ffff76215aa in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#27 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#28 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#29 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#30 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#31 0x00007ffff766cd78 in void boost::context::detail::fiber_entry<boost::context::detail::fiber_record<boost::context::fiber, nix::VirtualStackAllocator, boost::coroutines2::detail::pull_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::control_block::control_block<nix::VirtualStackAllocator, nix::sinkToSource(std::function<void (nix::Sink&)>, std::function<void ()>)::SinkToSource::read(unsigned char*, unsigned long)::{lambda(boost::coroutines2::detail::push_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)#1}>(boost::context::preallocated, nix::VirtualStackAllocator&&, nix::sinkToSource(std::function<void (nix::Sink&)>, std::function<void ()>)::SinkToSource::read(unsigned char*, unsigned long)::{lambda(boost::coroutines2::detail::push_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)#1}&&)::{lambda(boost::context::fiber&&)#1}> >(boost::context::detail::transfer_t) () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#32 0x00007ffff708a1ef in make_fcontext () from /nix/store/19n4g8ydzf92yn7pagvmhxs6cisz5s4q-nix-2.4pre20201105_cdc840d_patched/lib/libboost_context.so.1.69.0
#33 0x0000000000000000 in ?? ()

@roberth
Copy link
Member Author

roberth commented Nov 16, 2020

@lopsided98 It seems like the stack overflow protection page was going to be scanned. This is a likely cause for your trace.

I've updated NixOS/nixpkgs#102932 with a patch. Could you test again with the updated PR?

@lopsided98
Copy link

That doesn't fix it; the backtrace looks pretty much the same to me (the exact crash location is non-deterministic, so a simple diff isn't that useful).

Backtrace

Thread 9 (Thread 0x7ffff271e640 (LWP 9556)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 8 (Thread 0x7ffff2f1f640 (LWP 9555)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 7 (Thread 0x7ffff3720640 (LWP 9554)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 6 (Thread 0x7ffff3f21640 (LWP 9553)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 5 (Thread 0x7ffff4722640 (LWP 9552)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 4 (Thread 0x7ffff4f23640 (LWP 9551)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 3 (Thread 0x7ffff5724640 (LWP 9550)):
#0  0x00007ffff725d15d in pthread_cond_wait@@GLIBC_2.3.2 () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#1  0x00007ffff7b19ec7 in GC_wait_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a34a in GC_help_marker () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a41f in GC_mark_thread () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#5  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 2 (Thread 0x7ffff60a5640 (LWP 9549)):
#0  0x00007ffff70c6f0c in sigtimedwait () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6
#1  0x00007ffff7261304 in sigwait () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#2  0x00007ffff768b255 in nix::signalHandlerThread(__sigset_t) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#3  0x00007ffff76929bd in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)(__sigset_t), __sigset_t> > >::_M_run() () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#4  0x00007ffff74a6930 in ?? () from /nix/store/xbwr3krv4kkyv5h8ici7vkpnsx5w3cv3-gcc-9.3.0-lib/lib/libstdc++.so.6
#5  0x00007ffff7256e9e in start_thread () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libpthread.so.0
#6  0x00007ffff718566f in clone () from /nix/store/2wrfwfdpklhaqhjxgq6yd257cagdxgph-glibc-2.32/lib/libc.so.6

Thread 1 (Thread 0x7ffff60aba00 (LWP 9545)):
#0  0x00007ffff7b10d40 in GC_push_all_eager () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#1  0x00007ffff7b1eda0 in GC_push_all_stacks () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#2  0x00007ffff7b1a7b7 in GC_mark_some () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7b1a9d5 in GC_stopped_mark () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7b1bff4 in GC_try_to_collect_inner () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#5  0x00007ffff7b1c368 in GC_collect_or_expand () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#6  0x00007ffff7b1c728 in GC_allocobj () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#7  0x00007ffff7b1cabf in GC_generic_malloc_inner () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#8  0x00007ffff7b2186e in GC_generic_malloc_many () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#9  0x00007ffff7b21a52 in GC_malloc_kind () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#10 0x00007ffff7b21d0f in GC_strndup () from /nix/store/0phlidpg14j1696i6kl7scf0cn1n02cg-boehm-gc-8.0.4/lib/libgc.so.1
#11 0x00007ffff7e3683e in nix::mkString(nix::Value&, std::basic_string_view<char, std::char_traits<char> >, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#12 0x00007ffff7eb2d7c in nix::prim_toString(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#13 0x00007ffff7e38085 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#14 0x00007ffff7e3dc9f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#15 0x00007ffff7e3e34d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#16 0x0000000000544d98 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#17 0x00007ffff7e42403 in nix::EvalState::coerceToString(nix::Pos const&, nix::Value&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, bool, bool) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#18 0x00007ffff7eb37b1 in nix::prim_baseNameOf(nix::EvalState&, nix::Pos const&, nix::Value**, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#19 0x00007ffff7e38085 in nix::EvalState::callPrimOp(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#20 0x00007ffff7e3dc9f in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#21 0x00007ffff7e3e34d in nix::ExprApp::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#22 0x0000000000544d98 in nix::EvalState::forceValue(nix::Value&, nix::Pos const&) ()
#23 0x00007ffff7e3de6e in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#24 0x00007ffff7e407e8 in nix::ExprOpEq::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#25 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#26 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#27 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#28 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#29 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#30 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#31 0x00007ffff7e4029e in nix::ExprOpOr::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#32 0x00007ffff7e3d189 in nix::ExprOpNot::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#33 0x00007ffff7e3da13 in nix::EvalState::callFunction(nix::Value&, nix::Value&, nix::Value&, nix::Pos const&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#34 0x00007ffff7eb2ee6 in nix::addPath(nix::EvalState&, nix::Pos const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Value*, nix::FileIngestionMethod, std::optional<nix::Hash>, nix::Value&)::{lambda(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)#1}::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixexpr.so
#35 0x00007ffff76215aa in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#36 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#37 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#38 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#39 0x00007ffff762177d in nix::dump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nix::Sink&, std::function<bool (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>&) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#40 0x00007ffff766cd78 in void boost::context::detail::fiber_entry<boost::context::detail::fiber_record<boost::context::fiber, nix::VirtualStackAllocator, boost::coroutines2::detail::pull_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::control_block::control_block<nix::VirtualStackAllocator, nix::sinkToSource(std::function<void (nix::Sink&)>, std::function<void ()>)::SinkToSource::read(unsigned char*, unsigned long)::{lambda(boost::coroutines2::detail::push_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)#1}>(boost::context::preallocated, nix::VirtualStackAllocator&&, nix::sinkToSource(std::function<void (nix::Sink&)>, std::function<void ()>)::SinkToSource::read(unsigned char*, unsigned long)::{lambda(boost::coroutines2::detail::push_coroutine<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)#1}&&)::{lambda(boost::context::fiber&&)#1}> >(boost::context::detail::transfer_t) () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libnixutil.so
#41 0x00007ffff708a1ef in make_fcontext () from /nix/store/hnp824kj9vlhmzv7vrvy2cb2crmqq1xc-nix-2.4pre20201105_cdc840d_patched/lib/libboost_context.so.1.69.0
#42 0x0000000000000000 in ?? ()

@roberth
Copy link
Member Author

roberth commented Nov 17, 2020

@lopsided98 I've added a workaround you can try, although it's probably not final: #4264 (comment).

@lopsided98
Copy link

Thanks, that fixes the problem.

@jonringer
Copy link
Contributor

jonringer commented Dec 4, 2020

For others who land on this page.

Until there's a proper fix, you may try adding GC_DONT_GC=1 to the command.

GC_DONT_GC=1 nix build ...

this seems to allow IFD to complete successfully for me

@willbush
Copy link
Member

If anyone wants an nix flake pinned repro (though not minimal):

git clone https://github.com/willbush/system.git
cd system
git checkout 9226f2e2885e4a1d4b5f1a4a16b94a641a19f300
nix build ".#iso"

The GC_DONT_GC=1 workaround works for me. I only started seeing this issue recently when updating and doing nix flake check.

@asymmetric
Copy link
Contributor

asymmetric commented Apr 25, 2021

@willbush FYI you can skip the git clone and rewrite the above as

nix build github:willbush/system/9226f2e2885e4a1d4b5f1a4a16b94a641a19f300#iso

More on topic: I could reproduce the error on that flake.

@thufschmitt thufschmitt added this to the nix-2.4 milestone Jun 1, 2021
@roberth
Copy link
Member Author

roberth commented Jul 1, 2021

#4944 solves the problem for my example and I wasn't able to reproduce it in the examples linked by others either.
Two of those may not have been exactly reproducible because of <nixpkgs> aka mutable NIX_PATH, and a missing flake lock file. I haven't tested all indirectly linked examples either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants