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

crash in v2.7 LTS when CONFIG_INSTRUMENT_THREAD_SWITCHING and CONFIG_THREAD_LOCAL_STORAGE are used together #53983

Closed
npitre opened this issue Jan 22, 2023 · 0 comments
Labels
bug The issue is a bug, or the PR is fixing a bug LTS Long term release branch related

Comments

@npitre
Copy link
Collaborator

npitre commented Jan 22, 2023

The z_thread_mark_switched_in() and z_thread_mark_switched_out()
functions make use of k_current_get(). When CONFIG_THREAD_LOCAL_STORAGE
is set, k_current_get() retrieves the current thread pointer from the
TLS area. However, during early boot, those tracing functions get involved
although the TLS area has not yet been initialized.

@npitre npitre added the bug The issue is a bug, or the PR is fixing a bug label Jan 22, 2023
@npitre npitre added the LTS Long term release branch related label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug LTS Long term release branch related
Projects
None yet
Development

No branches or pull requests

2 participants