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

The pthreads are not working on user space. ARM64 cortex_a53 but generic requirement. #42279

Closed
AshwinKrishn opened this issue Jan 28, 2022 · 2 comments
Labels
area: ARM64 ARM (64-bit) Architecture area: POSIX POSIX API Library area: Userspace Userspace bug The issue is a bug, or the PR is fixing a bug

Comments

@AshwinKrishn
Copy link

Describe the bug
Pthread is not working on ARM user space. The system exits when pthreads start.

Please also mention any information which could help others to understand
the problem you're facing:

  • The pthread requires stack to execute and creating the stack array is not possible in user space.
  • Is there a work around to provide it stack ?

To Reproduce
Steps to reproduce the behavior:

  1. enable pthreads with user space

Expected behavior
Pthreads must work when called.

Impact
Unable to run multithreaded applications on arm64.

Environment (please complete the following information):

  • OS: Linux,
  • Toolchain Zephyr SDK
@AshwinKrishn AshwinKrishn added the bug The issue is a bug, or the PR is fixing a bug label Jan 28, 2022
@dkalowsk dkalowsk added area: ARM64 ARM (64-bit) Architecture area: POSIX POSIX API Library area: Userspace Userspace labels Feb 1, 2022
@dkalowsk
Copy link
Contributor

dkalowsk commented Feb 1, 2022

This is not supported and closing as a bug. Please re-file as a feature request.

@dkalowsk dkalowsk closed this as completed Feb 1, 2022
@cfriedt
Copy link
Member

cfriedt commented Feb 1, 2022

@AshwinKrishn - just thought I would chime in. This has been a feature in development for a long time. It's been on the backburner for me for a while. But yea, the assessment is accurate. There needs to be a new first-class Zephyr object type for "automatic" thread stacks, which requires dynamic objects. It applies to userspace only, not kernel threads.

See also #26999, #24714, #25973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM64 ARM (64-bit) Architecture area: POSIX POSIX API Library area: Userspace Userspace bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

3 participants