[BUG} t2201.7+ Failure to Create Thread in 2.39.0-rc0
While running t2201.7 (and subsequent) for 2.39.0-rc0, I hit a condition where:
<snip>
+ test_when_finished rm trace.perf actual
+ test_config_global trace2.perfBrief 1
+ pwd
+ test_config_global trace2.perfTarget /home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/t/trash directory.t0211-trace2-perf/trace.perf
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
was encountered, causing the test to fail. Pointers on resolving this would be helpful.
Thanks,
Randall
--
Brief whoami: NonStop&UNIX developer since approximately UNIX(421664400)
NonStop(211288444200000000)
-- In real life, I talk too much.
[CC-ing Jeff, this is from the "stopwatch timers" topic]
Quoted 2 lines · On Thu, Nov 24 2022, [email protected] wrote:
While running t2201.7 (and subsequent) for 2.39.0-rc0, I hit a condition where:
Don't you mean t0211-trace2-perf.sh?
Quoted 10 lines
<snip>
+test_when_finishedrm trace.perf actual
+test_config_globaltrace2.perfBrief 1
+ pwd
+test_config_globaltrace2.perfTarget/home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/t/trashdirectory.t0211-trace2-perf/trace.perf
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
Quoted 2 lines
was encountered, causing the test to fail. Pointers on resolving this would be helpful.
Apparently we really could use a NO_PTHREADS=Y CI setup, because that's all that's needed to reproduce this on linux & elsewhere. Running the test with that:
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
error: last command exited with $?=128
For that all that's needed is this:
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 0b3436e8cac..cfba6861322 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' ' have_timer_event "main" "timer" "test" "test1" 5 actual ' -test_expect_success 'stopwatch timer test/test2' ' +test_expect_success PTHREADS 'stopwatch timer test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && @@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' ' have_counter_event "main" "counter" "test" "test1" 15 actual ' -test_expect_success 'global counter test/test2' ' +test_expect_success PTHREADS 'global counter test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&
I think that's the correct fix here, and it should go into rc1.
Quoted 53 lines · Ævar Arnfjörð Bjarmason
[CC-ing Jeff, this is from the "stopwatch timers" topic]
Quoted 3 lines · On Thu, Nov 24 2022, [email protected] wrote:
While running t2201.7 (and subsequent) for 2.39.0-rc0, I hit a condition
where:Don't you mean
t0211-trace2-perf.sh?Quoted 10 lines
<snip>
+test_when_finishedrm trace.perf actualtest_config_global
+ trace2.perfBrief 1 pwdtest_config_globaltrace2.perfTarget/home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/t/trashdirectory.t0211-trace2-perf/trace.perf
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]was encountered, causing the test to fail. Pointers on resolving this would be helpful.
Apparently we really could use a NO_PTHREADS=Y CI setup, because that's all that's needed to reproduce this on linux & elsewhere. Running the test with that:
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
error: last command exited with $?=128For that all that's needed is this:
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 0b3436e8cac..cfba6861322 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' ' have_timer_event "main" "timer" "test" "test1" 5 actual ' -test_expect_success 'stopwatch timer test/test2' ' +test_expect_success PTHREADS 'stopwatch timer test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && @@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' ' have_counter_event "main" "counter" "test" "test1" 15 actual ' -test_expect_success 'global counter test/test2' ' +test_expect_success PTHREADS 'global counter test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&
Quoted 1 line
I think that's the correct fix here, and it should go into rc1.
I assume we do not have to modify the platform's entry in config.mak.uname, which already has NO_PTHREADS=UnfortunatelyYes.
Thanks,
Randall
Quoted 54 lines · On Thu, Nov 24 2022, [email protected] wrote:
Quoted 53 lines · Ævar Arnfjörð Bjarmason
[CC-ing Jeff, this is from the "stopwatch timers" topic]
Quoted 3 lines · On Thu, Nov 24 2022, [email protected] wrote:
While running t2201.7 (and subsequent) for 2.39.0-rc0, I hit a condition
where:Don't you mean
t0211-trace2-perf.sh?Quoted 10 lines
<snip>
+test_when_finishedrm trace.perf actualtest_config_global
+ trace2.perfBrief 1 pwdtest_config_globaltrace2.perfTarget/home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/t/trashdirectory.t0211-trace2-perf/trace.perf
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]was encountered, causing the test to fail. Pointers on resolving this would be helpful.
Apparently we really could use a NO_PTHREADS=Y CI setup, because that's all that's needed to reproduce this on linux & elsewhere. Running the test with that:
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
error: last command exited with $?=128For that all that's needed is this:
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 0b3436e8cac..cfba6861322 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' ' have_timer_event "main" "timer" "test" "test1" 5 actual ' -test_expect_success 'stopwatch timer test/test2' ' +test_expect_success PTHREADS 'stopwatch timer test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && @@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' ' have_counter_event "main" "counter" "test" "test1" 15 actual ' -test_expect_success 'global counter test/test2' ' +test_expect_success PTHREADS 'global counter test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&
Quoted 3 lines
Quoted 1 line
I think that's the correct fix here, and it should go into rc1.
I assume we do not have to modify the platform's entry in config.mak.uname, which already has NO_PTHREADS=UnfortunatelyYes.
Yes, that's the part where you declare that the platform doesn't have threading, this is where the tests are then guarded using that setting.
Quoted 55 lines · Ævar Arnfjörð Bjarmason
[CC-ing Jeff, this is from the "stopwatch timers" topic]
Quoted 2 lines · On Thu, Nov 24 2022, [email protected] wrote:
While running t2201.7 (and subsequent) for 2.39.0-rc0, I hit a condition where:
Don't you mean
t0211-trace2-perf.sh?Quoted 10 lines
<snip>
+test_when_finishedrm trace.perf actual
+test_config_globaltrace2.perfBrief 1
+ pwd
+test_config_globaltrace2.perfTarget/home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/t/trashdirectory.t0211-trace2-perf/trace.perf
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]Quoted 2 lines
was encountered, causing the test to fail. Pointers on resolving this would be helpful.
Apparently we really could use a NO_PTHREADS=Y CI setup, because that's all that's needed to reproduce this on linux & elsewhere. Running the test with that:
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
error: last command exited with $?=128For that all that's needed is this:
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 0b3436e8cac..cfba6861322 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' ' have_timer_event "main" "timer" "test" "test1" 5 actual ' -test_expect_success 'stopwatch timer test/test2' ' +test_expect_success PTHREADS 'stopwatch timer test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && @@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' ' have_counter_event "main" "counter" "test" "test1" 15 actual ' -test_expect_success 'global counter test/test2' ' +test_expect_success PTHREADS 'global counter test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&
Quoted 1 line
I think that's the correct fix here, and it should go into rc1.
I submitted a fix at
https://lore.kernel.org/git/[email protected]/;
but I see that since your message-id's contain "$" I got the In-Reply-To wrong, sorry :)
Quoted 56 lines · Ævar Arnfjörð Bjarmason
Quoted 54 lines · Ævar Arnfjörð Bjarmason
[CC-ing Jeff, this is from the "stopwatch timers" topic]
Quoted 3 lines · On Thu, Nov 24 2022, [email protected] wrote:
While running t2201.7 (and subsequent) for 2.39.0-rc0, I hit a condition
where:Don't you mean
t0211-trace2-perf.sh?Quoted 10 lines
<snip>
+test_when_finishedrm trace.perf actualtest_config_global
+ trace2.perfBrief 1 pwdtest_config_globaltrace2.perfTarget/home/ituglib/randall/jenkins/.jenkins/workspace/Git_Pipeline/t/trashdirectory.t0211-trace2-perf/trace.perf
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]was encountered, causing the test to fail. Pointers on resolving this would be helpful.
Apparently we really could use a NO_PTHREADS=Y CI setup, because that's all that's needed to reproduce this on linux & elsewhere. Running the test with that:
+ test-tool trace2 101timer 5 10 3
fatal: failed to create thread[0]
error: last command exited with $?=128For that all that's needed is this:
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 0b3436e8cac..cfba6861322 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -203,7 +203,7 @@ test_expect_success 'stopwatch timer test/test1' ' have_timer_event "main" "timer" "test" "test1" 5 actual ' -test_expect_success 'stopwatch timer test/test2' ' +test_expect_success PTHREADS 'stopwatch timer test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" && @@ -249,7 +249,7 @@ test_expect_success 'global counter test/test1' ' have_counter_event "main" "counter" "test" "test1" 15 actual ' -test_expect_success 'global counter test/test2' ' +test_expect_success PTHREADS 'global counter test/test2' ' test_when_finished "rm trace.perf actual" && test_config_global trace2.perfBrief 1 && test_config_global trace2.perfTarget "$(pwd)/trace.perf" &&
Quoted 7 lines
Quoted 1 line
I think that's the correct fix here, and it should go into rc1.
I submitted a fix at
https://lore.kernel.org/git/patch-1.1-f7f21c94a6c-20221124T214813Z-
[email protected]/;
but I see that since your message-id's contain "$" I got the In-Reply-To wrong, sorry :)
Thanks