Opened 6 years ago

Closed 4 years ago

Last modified 4 years ago

#14305 closed bug (fixed)

Assert in pthread_join

Reported by: miqlas Owned by: nobody
Priority: normal Milestone: R1/beta3
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by pulkomandy)

TBB test reports:

../../src/test/harness.h:575, assertion !status: pthread_join failed
Abort

The code is:

        int status = pthread_join( thread_id, NULL );
        ASSERT( !status, "pthread_join failed" );

Platform : Haiku shredder 1 hrev52138 Jul 26 2018 11:36:54 x86_64 x86_64 Haiku TBB : https://github.com/01org/tbb/pull/64

Change History (8)

comment:1 by korli, 6 years ago

Could you provide a small test case? ie with "gcc -E"

comment:2 by nielx, 6 years ago

There is also an issue reported with pthread_join when using Rust. See: https://github.com/nielx/rust/issues/3

comment:3 by waddlesplash, 5 years ago

Please retest after hrev52662.

comment:4 by nielx, 4 years ago

Retested with a dev build of rustc and cargo on hrev54088 (near beta2). Unfortunately still the same error.

comment:5 by pulkomandy, 4 years ago

Description: modified (diff)

comment:6 by axeld, 4 years ago

Nielx, is that the bug you recently fixed?

comment:7 by pulkomandy, 4 years ago

Milestone: R1R1/beta3
Resolution: fixed
Status: newclosed

Hard to say from the original report which doesn't give a lot of context. But it looks quite possible it would be the same, it's a similar pattern of creating a lot of threads and then waiting for them.

Let's close this and assume it is, then.

comment:8 by nielx, 4 years ago

This is probably the same, yes!

Note: See TracTickets for help on using tickets.