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

tests/kernel/mem_pool/mem_pool_threadsafe/kernel.memory_pool fails sporadically #12559

Closed
nashif opened this issue Jan 18, 2019 · 6 comments
Closed
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@nashif
Copy link
Member

nashif commented Jan 18, 2019

Describe the bug
test fails sporadically on both qemu_x86 and mps2_an385

To Reproduce
sanitycheck -T tests/kernel/mem_pool/mem_pool_threadsafe

Booting from ROM..***** Booting Zephyr OS zephyr-v1.13.0-3307-g12f984995f *****
Running test suite mpool_threadsafe
===================================================================
starting test - test_mpool_threadsafe
ASSERTION FAIL [block_fits(p, block, lsz)] @ /home/nashif/github/zephyr/lib/mempool/mempool.c:162

on mps2_an385 (qemu):

***** Booting Zephyr OS zephyr-v1.13.0-3307-g12f984995f *****
Running test suite mpool_threadsafe
===================================================================
starting test - test_mpool_threadsafe
***** BUS FAULT *****
  Precise data bus error
  BFAR Address: 0x300005b0
***** Hardware exception *****
Current thread ID = 0x2000009c
Faulting instruction address = 0x4752
Fatal fault in ISR! Spinning...
@nashif nashif added bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug labels Jan 18, 2019
@andrewboie
Copy link
Contributor

Seen this also on qemu_nios2

@andyross
Copy link
Contributor

Partially addressed by #13770. Seems like all emulation platforms but ARM are fine now. There, though, the test shows a hilarious inversion of our normal pattern: it works well enough in a big sanitycheck, but if I run it in isolation I get pretty reproducible deadlocks. Still looking.

@andyross
Copy link
Contributor

Seems to be down to the swap-is-async priority bug detailed in #12553. Goes away with the trial patch in that bug.

@andyross
Copy link
Contributor

andyross commented Mar 7, 2019

See extensive notes in #12553. This test, on mps2_an385, is the only spurious qemu failure that I can't make go away in volume testing with careful control over machine load and host kernel tick rate. It's likely a real bug somewhere.

@andyross
Copy link
Contributor

Fix up in #14539 has crossed 5500 separate test cases now (790+ runs across the 8 default boards/variants) with no failures. Think this one is fixed.

@andyross
Copy link
Contributor

Fixed merged, but forgot "Fixes ..." in commit. Oops.

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