[tbb] 05/06: Attempt to debug pthread_create failures on mips
Steven Capper
capper-guest at moszumanska.debian.org
Sun Jul 23 18:01:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
capper-guest pushed a commit to branch steve-staging
in repository tbb.
commit 0f182aef8da44e44f93114ccf948d0cbda352d57
Author: Steve Capper <steven.capper at gmail.com>
Date: Sun Jul 23 16:15:46 2017 +0100
Attempt to debug pthread_create failures on mips
---
debian/patches/debug_alloc.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/debug_alloc.patch b/debian/patches/debug_alloc.patch
new file mode 100644
index 0000000..a9e2fba
--- /dev/null
+++ b/debian/patches/debug_alloc.patch
@@ -0,0 +1,18 @@
+Description: Add telemetry to pthread_create error path. This will show why it's failing on mips
+Author: Steve Capper <steven.capper at gmail.com>
+
+Index: tbb/src/test/harness.h
+===================================================================
+--- tbb.orig/src/test/harness.h
++++ tbb/src/test/harness.h
+@@ -527,7 +527,9 @@ public:
+ status = pthread_attr_setstacksize( &attr_stack, stack_size );
+ ASSERT(0==status, "NativeParallelFor: pthread_attr_setstacksize failed");
+ status = pthread_create(&thread_id, &attr_stack, thread_function, this);
+- ASSERT(0==status, "NativeParallelFor: pthread_create failed");
++ if (0 != status) {
++ REPORT_FATAL_ERROR("NativeParallelFor: pthread_create failed with %d\n", status);
++ }
+ pthread_attr_destroy(&attr_stack);
+ #if __ICC==1100
+ #pragma warning (pop)
diff --git a/debian/patches/series b/debian/patches/series
index b6718eb..eb781cc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ tweak-64bits-s390-hppa.patch
removejsquery.patch
cross.patch
fix-armel.patch
+debug_alloc.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/tbb.git
More information about the debian-science-commits
mailing list