aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-11 20:53:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-12-11 21:24:51 +0300
commit5d43db41dcad9ee7683f80b966c8818ffbcd8e07 (patch)
treee278b24d819cecdf0bb4761dbb90a2dbe51cc530 /libbuild2
parentcb558e4bd2b817bc72275c2bbd90dfe9fe380af9 (diff)
Comment out broken tracing in create_new_target_locked()preprocessed-tests-failure
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/search.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/libbuild2/search.cxx b/libbuild2/search.cxx
index b341c85..f52905f 100644
--- a/libbuild2/search.cxx
+++ b/libbuild2/search.cxx
@@ -279,8 +279,13 @@ namespace build2
target_decl::prereq_new,
trace));
- l5 ([&]{trace << (r.second ? "new" : "existing") << " target " << r.first
- << " for prerequisite " << pk;});
+ // @@ Writing the target (r.first) to the stream ends up in target::ext()
+ // which tries to slock ctx.targets.mutex_, which is already ulock-ed
+ // (r.second) by the current thread. This results with
+ // system_error(errc::resource_deadlock_would_occur).
+ //
+ //l5 ([&]{trace << (r.second ? "new" : "existing") << " target " << r.first
+ // << " for prerequisite " << pk;});
return r;
}
}