-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Arch: risc-vIssues related to the RISC-V (32-bit or 64-bit) architectureIssues related to the RISC-V (32-bit or 64-bit) architectureArea: Memory ManagementMemory Management issuesMemory Management issuesOS: LinuxIssues related to Linux (building system, etc)Issues related to Linux (building system, etc)Type: BugSomething isn't workingSomething isn't working
Description
Description / Steps to reproduce the issue
After commit 11d54b3, the mm_foreach (in mm/mm_heap/mm_foreach.c) occasionally gets stuck in busyloop, or asserts if CONFIG_DEBUG_ASSERTIONS=y.
Debugging the issue further, the node->size == 3, and the macro MM_SIZEOF_NODE returns 0 on line "nodesize = MM_SIZEOF_NODE(node);"
The issue is resolved if I configure the CONFIG_MM_DEFAULT_ALIGNMENT=0, which results alignment of 16
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu 22.04
NuttX Version
master
Issue Architecture
[Arch: risc-v]
Issue Area
[Area: Memory Management]
Host information
No response
Verification
- I have verified before submitting the report.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Arch: risc-vIssues related to the RISC-V (32-bit or 64-bit) architectureIssues related to the RISC-V (32-bit or 64-bit) architectureArea: Memory ManagementMemory Management issuesMemory Management issuesOS: LinuxIssues related to Linux (building system, etc)Issues related to Linux (building system, etc)Type: BugSomething isn't workingSomething isn't working