Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

test_halt.exe hangs (v2.1)

sg_kim
Beginner
352 Views

Hello,

I've tried to build tbb2.1(commercially aligned release)ona Xeon server but 'text_halt.exe' hangs while "make all".

text_halt.exe linked with libtbb_debug.so passed the test run.

only therelease version hangs.

Any comments?

Here is the system information:

CPU:two Xeon E5345 processors

OS: linux kernel 2.6.23.1

Compiler: gcc 4.1.2 with libc 2.6

0 Kudos
5 Replies
Alexey-Kukanov
Employee
352 Views

Thanks for informing about the issue. Could you please answer a couple questions to help me reproduce and investigate the issue?

- Can you provide the output of `cat /etc/issue` and`uname -rm`?
- Did you use the pre-built binaries downloaded from the site, or you built TBB from sources?

Change to the initial post: `uname -a` was an overkill, I only need the kernel version (which you already named) and whether it is 32 or 64 bits. So `uname -rm` is enough.

0 Kudos
sg_kim
Beginner
352 Views

the linux is 2.6.23.1-21.fc7 x86_64 (FC7 Moonshine), and I built TBB from sources.

It seems that it's not relevant whether the test suite is release/debug version.

I've tried to build TBBmore times, andthe debug version of test_halt.exepassed occasionally.

0 Kudos
Alexey-Kukanov
Employee
352 Views

I was unable to reproduce the issue on a Fedora 7 machine here; though the kernel version was 2.6.21.something, older than yours.

Could you possibly provide the binaries built on your machine (*.so.2 librariesas well as test_halt.exe, for both debug and release)?

0 Kudos
sg_kim
Beginner
352 Views

I attatched the binaries and thank you for your efforts.

test_halt.exe hangs when it calls pthread_join() at line 1594 of task.cpp, whose call chain begins at the destructor of task_scheduler_init.

(and now I think it possibly may not bethe problem of TBB).

0 Kudos
Alexey-Kukanov
Employee
352 Views

I ran your binaries for 100 times on a FC7 machine:

for((i=0;i<100;i++)); do ./test_halt.exe 4:8 || echo $i: failed; done

butneither debug nor release version failed even once.

Of courseit does not mean there is no issue. But at the moment, the best thing I can suggest for you is to try building TBB binaries using the most recent TBB developer update. We have some post-2.1 fixes, in particular we have fixed a futex-related bug and I think it might be relevant. If that does not help, there must be something on your system that either breaks TBB or reveals a hidden bug in it.

0 Kudos
Reply