zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.72k stars 6.55k forks source link

test: tests/lib/multi_heap/libraries.multi_heap FAILED on up_squared #79195

Open KamilxPaszkiet opened 3 weeks ago

KamilxPaszkiet commented 3 weeks ago

Describe the bug Test libraries.multi_heap failed on up_squared. Repro 100%

To Reproduce twister --device-testing --hardware-map up2.map -s tests/lib/multi_heap/libraries.multi_heap or west build -p -b up_squared tests/lib/multi_heap -T libraries.multi_heap or west twister -p up_squared -s tests/lib/multi_heap/libraries.multi_heap

Logs and console output

DEBUG   - DEVICE: *** Booting Zephyr OS build v3.7.0-3643-gf810e1318f38 ***
DEBUG   - DEVICE: Running TESTSUITE mheap_api
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_k_aligned_alloc
DEBUG   - DEVICE: PASS - test_k_aligned_alloc in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_malloc_in_isr
DEBUG   - DEVICE: PASS - test_malloc_in_isr in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_malloc_in_thread
DEBUG   - DEVICE: PASS - test_malloc_in_thread in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_calloc
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:190: mheap_api_test_mheap_calloc: (mem is not NULL)
DEBUG   - DEVICE: calloc operation failed
DEBUG   - DEVICE: FAIL - test_mheap_calloc in 0.017 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_malloc_align4
DEBUG   - DEVICE: PASS - test_mheap_malloc_align4 in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_malloc_free
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:86: mheap_api_test_mheap_malloc_free: block_fail is not NULL
DEBUG   - DEVICE: FAIL - test_mheap_malloc_free in 0.015 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_realloc
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:132: mheap_api_test_mheap_realloc: block2 is not NULL
DEBUG   - DEVICE: FAIL - test_mheap_realloc in 0.014 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_threadsafe
DEBUG   - DEVICE: PASS - test_mheap_threadsafe in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_multi_heap
DEBUG   - DEVICE: PASS - test_multi_heap in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_sys_heap_mem_pool_assign
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:259: mheap_api_test_sys_heap_mem_pool_assign: ((char *)z_thread_malloc(BLK_SIZE_MAX * 2) is not NULL)
DEBUG   - DEVICE: overflow check failed
DEBUG   - DEVICE: FAIL - test_sys_heap_mem_pool_assign in 0.021 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: TESTSUITE mheap_api failed.
DEBUG   - DEVICE: ------ TESTSUITE SUMMARY START ------
DEBUG   - DEVICE: SUITE FAIL -  60.00% [mheap_api]: pass = 6, fail = 4, skip = 0, total = 10 duration = 0.073 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_k_aligned_alloc] duration = 0.001 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_malloc_in_isr] duration = 0.001 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_malloc_in_thread] duration = 0.001 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_mheap_calloc] duration = 0.017 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_mheap_malloc_align4] duration = 0.001 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_mheap_malloc_free] duration = 0.015 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_mheap_realloc] duration = 0.014 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_mheap_threadsafe] duration = 0.001 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_multi_heap] duration = 0.001 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_sys_heap_mem_pool_assign] duration = 0.021 seconds
DEBUG   - DEVICE: ------ TESTSUITE SUMMARY END ------

Expected behavior Test passed

Environment:

henrikbrixandersen commented 3 weeks ago

west boards -n up2 returns no boards here. Which board is this?

dkalowsk commented 3 weeks ago

@edersondisouza can you please assign this to the right Intel person

KamilxPaszkiet commented 3 weeks ago

west boards -n up2 returns no boards here. Which board is this?

@henrikbrixandersen @dkalowsk Sorry for my mistake. I meant up_squared board. I have updated the bug description.

kwd-doodling commented 2 weeks ago

@henrikbrixandersen @dkalowsk @KamilxPaszkiet could you assign the right owner? Although I'm one Intel guy, but I have no idea what up_squared board is.