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

allocator-test-AllocationClassTest Failed On ARM #276

Open
Svelar opened this issue Nov 1, 2023 · 0 comments
Open

allocator-test-AllocationClassTest Failed On ARM #276

Svelar opened this issue Nov 1, 2023 · 0 comments

Comments

@Svelar
Copy link
Contributor

Svelar commented Nov 1, 2023

Describe the bug
When I ran unit tests on ARM server, I found that some of them are failed while X86 platform was working fine.
Such as 'ReleaseSlabMultithread' of 'allocator-test-AllocationClassTest', it leads to core dumped.
BTW, it won't cause core dumped but result error in GDB or single-core environment.
After taking a look at source code, I observed that something bad happened between asynchronously free 500 allocs and get firstSlabReleaseContext. I just assume that it is because difference of memory consistency model. ARM is WMO, maybe lack of memory barrier in this situation. (free operation doesn't lock completely) Cuz I'm not so familiar with whole project, seek guys' advice here.

To Reproduce
Steps to reproduce the behavior:

  1. Build unit tests
  2. Run 'allocator-test-AllocationClassTest'
  3. See 'core dumped''

Expected behavior
PASS all tests.

Screenshots
image

Server (please complete the following information):

  • OS: openEuler 22.03 SP1
  • Platform: ARM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant