Skip to content
Commit 7c17bda3 authored by Christopher Friedt's avatar Christopher Friedt Committed by jgl-meta
Browse files

tests: posix: pthread: init pthread_attr_t on each iteration



The `test_pthread_descriptor_leak` test was causing a kernel
panic on some platforms. Initially, it was not clear why.

The usual cases were examined - race conditions, stack sizes,
etc. Still no luck.

As it turns out, recycling a thread stack (or at least the
`pthread_attr_t`) in-place does not work on some platforms,
and we need to reinitialize the `pthread_attr_t` and set
set the stack property again prior to calling
`pthread_create()`.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent 27c25e9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment