Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The test mem_pool_threadsafe sporadically hangs forever #10058

Closed
SebastianBoe opened this issue Sep 18, 2018 · 2 comments
Closed

The test mem_pool_threadsafe sporadically hangs forever #10058

SebastianBoe opened this issue Sep 18, 2018 · 2 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@SebastianBoe
Copy link
Collaborator

The test "mem_pool_threadsafe" sporadically hangs forever when run with qemu_cortex_m3.

This causes sporadic CI failures.

It does so about 30% of the time.

Steps to reproduce:

git checkout 8fc5fd5
$ZEPHYR_BASE/scripts/sanitycheck -T$ZEPHYR_BASE/tests/kernel/mem_pool/mem_pool_threadsafe -p qemu_cortex_m3

Repeat up to 5 times or so if it does not trigger immediately.

To speed up the testing apply this patch:

diff --git a/tests/kernel/mem_pool/mem_pool_threadsafe/testcase.yaml b/tests/kernel/mem_pool/mem_pool_threadsafe/testcase.yaml
index dfa0450076..662b080981 100644
--- a/tests/kernel/mem_pool/mem_pool_threadsafe/testcase.yaml
+++ b/tests/kernel/mem_pool/mem_pool_threadsafe/testcase.yaml
@@ -1,3 +1,4 @@
 tests:
   kernel.memory_pool:
     tags: kernel mem_pool
+    timeout: 10 # Observed to run in 5 sec

@SebastianBoe SebastianBoe added bug The issue is a bug, or the PR is fixing a bug area: Testing labels Sep 18, 2018
@SebastianBoe
Copy link
Collaborator Author

AFAICT this is not a recent regression, but something that has been able to happen for a long time, at least before 1.11.0.

So perhaps it has always been sporadically failing.

@nashif nashif added the priority: medium Medium impact/importance bug label Sep 30, 2018
@andrewboie
Copy link
Contributor

I was able to reproduce this in 8fc5fd5 but not in current master, I think some recent fixes @andyross made to mem pools fixes this as well. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants