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.62k stars 6.5k forks source link

acrn_ehl_crb: the test of tests/subsys/cpp/libcxx/ failed #36852

Closed enjiamai closed 2 years ago

enjiamai commented 3 years ago

Describe the bug The test case of tests/subsys/cpp/libcxx/ failed. (cpp.libcxx.cpp.libcxx.newlib.exception)

After bisect, the failure start from this commit : 615371900ed4165fefa5c03f7b6df34ac18bdefa, it previous commit 518dd32efee6ad999432327f316e3cf0feabe47b is good. "tests: cpp: libcxx: Use full version of newlib for testing"

Note: this issue only happened on acrn_ehl_crb board.

To Reproduce Steps to reproduce the behavior:

  1. Run this command from the zephyrproject: twister -p acrn_ehl_crb --device-testing --device-serial-pty="/opt/remotehw/acrn-test-pty.exp,ehlsku11" --west-flash="/opt/remotehw/remotehw-x86-acrn.sh,ehlsku11" -vv -T tests/subsys/cpp/libcxx/

2.Check handler.log in twister.out in directory to see the error log.

Expected behavior The test case is passed as expected.

Impact Not sure.

Logs and console output

ACRN:\>vm_console 0
----- Entering VM 0 Shell -----
*** Booting Zephyr OS build zephyr-v2.6.0-intel-ww28.2  ***
version 201703
Running test suite libcxx_tests
===================================================================
START - test_array
PASS - test_array in 0.1 seconds
===================================================================
START - test_vector
PASS - test_vector in 0.1 seconds
===================================================================
START - test_make_unique
PASS - test_make_unique in 0.1 seconds
===================================================================
START - test_exception
exit

Environment (please complete the following information):

Additional context

stephanosio commented 3 years ago

Note: this issue only happened on acrn_ehl_crb board.

@enjiamai Is the same failure also observed on acrn board?

stephanosio commented 3 years ago

@enjiamai Also you noted here that the failure starts from https://github.com/zephyrproject-rtos/zephyr/commit/518dd32efee6ad999432327f316e3cf0feabe47b.

Could you double check that it is actually from https://github.com/zephyrproject-rtos/zephyr/commit/518dd32efee6ad999432327f316e3cf0feabe47b and not https://github.com/zephyrproject-rtos/zephyr/commit/7e47ef281eccd7d1391bcdcf92affd7493c0dbd3?

enjiamai commented 3 years ago

@enjiamai Is the same failure also observed on acrn board?

Hi @stephanosio , this is also failed on acrn board.

enjiamai commented 3 years ago

Could you double check that it is actually from 518dd32 and not 7e47ef2?

Sorry, @stephanosio , after I double check it, the failed commit is start from 615371900ed4165fefa5c03f7b6df34ac18bdefa bad => 615371900ed4165fefa5c03f7b6df34ac18bdefa (tests: cpp: libcxx: Test with full and nano variants of newlib) good => 518dd32efee6ad999432327f316e3cf0feabe47b (tests: cpp: libcxx: Use full version of newlib for testing) good => f0e3280c61e6794038e01dcadc167943e8f1b990 (cpp: Fix C++ exception handling newlib dependency) good => 7e47ef281eccd7d1391bcdcf92affd7493c0dbd3 (linker: cpp: Fix C++ exception handling info section linking)

github-actions[bot] commented 3 years ago

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

yerabolu commented 3 years ago

cpp.libcxx.cpp.libcxx.newlib.exception cpp.libcxx.cpp.libcxx.newlib_nano.array cpp.libcxx.cpp.libcxx.newlib_nano.vector cpp.libcxx.cpp.libcxx.newlib_nano.make_unique cpp.libcxx.cpp.libcxx.newlib_nano.exception

Tests are still failing on commit: 5130db30058c

enjiamai commented 2 years ago

Hi @stephanosio , do you have any idea or suggestions about this issue? thanks!

stephanosio commented 2 years ago

Hi @stephanosio , do you have any idea or suggestions about this issue? thanks!

I have not had much success trying to set up a test environment to reproduce this.

It is likely linker (script)-related issue (maybe the ACRN x86 build does some other magickery that is different from the conventional x86 build -- e.g. qemu_x86).

From https://github.com/zephyrproject-rtos/zephyr/commit/7e47ef281eccd7d1391bcdcf92affd7493c0dbd3:

The `.eh_frame_hdr` and `.eh_frame` ROM sections, which contain read-
only C++ exception handling information
enjiamai commented 2 years ago

Hi @stephanosio , thanks for your suggestion and comments, I found this testcase failed due to timeout.