Skip to content

tests: obj_tracing: Test fails on ESP32, semaphore count is more than what is created in the application #7106

@spoorthik

Description

@spoorthik

The obj_tracing test case at zephyr.git/tests/kernel/obj_tracing creates 5 semaphore objects and 1 for ztest. So the semaphore count has to be 6. But on ESP32, the semaphore count is found to be 10.

Please refer the sample log on ESP32 board below:

***** Booting Zephyr OS v1.11.0-719-g56c2bc9 *****
Running test suite obj_tracing
===================================================================
starting test - test_tracing
SEMAPHORE REF: 0x3ffb143c
SEMAPHORE REF: 0x3ffb1428
SEMAPHORE REF: 0x3ffb1414
SEMAPHORE REF: 0x3ffb1400
SEMAPHORE REF: 0x3ffb13ec
SEMAPHORE REF: 0x3ffb106c
SEMAPHORE REF: 0x3ffb1058
SEMAPHORE REF: 0x3ffb1044
SEMAPHORE REF: 0x3ffb1028
SEMAPHORE REF: 0x3ffb1014
SEMAPHORE REF: 0x3ffb0090
SEMAPHORE QUANTITY: 10
COOP: 0x3ffb0bb0 OPTIONS: 0x00, STATE: 0x00
COOP: 0x3ffb0f48 OPTIONS: 0x00, STATE: 0x02
COOP: 0x3ffb0e90 OPTIONS: 0x00, STATE: 0x02
COOP: 0x3ffb0dd8 OPTIONS: 0x00, STATE: 0x00
COOP: 0x3ffb0d20 OPTIONS: 0x00, STATE: 0x02
COOP: 0x3ffb0c68 OPTIONS: 0x00, STATE: 0x00
PREMPT: 0x3ffb1484 OPTIONS: 0x00, STATE: 0x02
COOP: 0x3ffb1140 OPTIONS: 0x01, STATE: 0x00
COOP: 0x3ffb11f8 OPTIONS: 0x01, STATE: 0x00
THREAD QUANTITY: 9

    Assertion failed at zephyr.git/tests/kernel/obj_tracing/src/object_monitor.c:101: object_monitor: (((thread_counter == TOTAL_THREADS) && (obj_counter == TOTAL_OBJECTS)) is false)
test failed
FAIL - test_tracing.
===================================================================
===================================================================
PROJECT EXECUTION FAILED

The test cases passes on x86, arm and arc boards. Please refer the sample log below:


***** Booting Zephyr OS v1.11.0-719-g56c2bc9 *****
Running test suite obj_tracing
===================================================================
starting test - test_tracing
SEMAPHORE REF: 0x004002d0
SEMAPHORE REF: 0x004002bc
SEMAPHORE REF: 0x004002a8
SEMAPHORE REF: 0x00400294
SEMAPHORE REF: 0x00400280
SEMAPHORE REF: 0x0042402c
SEMAPHORE REF: 0x0042425c
SEMAPHORE QUANTITY: 6
COOP: 0x00400040 OPTIONS: 0x00, STATE: 0x00
COOP: 0x00400200 OPTIONS: 0x00, STATE: 0x02
COOP: 0x004001a8 OPTIONS: 0x00, STATE: 0x02
COOP: 0x00400150 OPTIONS: 0x00, STATE: 0x00
COOP: 0x004000f8 OPTIONS: 0x00, STATE: 0x02
COOP: 0x004000a0 OPTIONS: 0x00, STATE: 0x00
PREMPT: 0x00401254 OPTIONS: 0x00, STATE: 0x02
COOP: 0x00401020 OPTIONS: 0x01, STATE: 0x00
COOP: 0x00401080 OPTIONS: 0x01, STATE: 0x00
THREAD QUANTITY: 9
PASS - test_tracing.
===================================================================
===================================================================
PROJECT EXECUTION SUCCESSFUL

Steps to reproduce:
cd zephyr.git/tests/kernel/obj_tracing
mkdir build && cd build
export ZEPHYR_TOOLCHAIN_VARIANT="espressif"
export ESP_IDF_PATH="/path/to/esp-idf"
export ESPRESSIF_TOOLCHAIN_PATH="/path/to/xtensa-esp32-elf/"

cmake -DBOARD=esp32 ..
make flash

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions