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

fix(haiku): execve not allowed if other pthreads have already been created #10953

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Sylvain78
Copy link
Contributor

Compiling for Haiku

…eated

Co-authored-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Anarchos <[email protected]>
Signed-off-by: Sylvain78 <[email protected]>
@anmonteiro anmonteiro changed the title Haiku fix(haiku): execve not allowed if other pthreads have already been created Sep 29, 2024
@anmonteiro
Copy link
Collaborator

@rgrinberg do you think this needs a changelog entry?

@Alizter
Copy link
Collaborator

Alizter commented Sep 30, 2024

I think it would be worth a changelog entry. I'm still unsure about the issue this is resolving since I've never seen it, so I wouldn't mind a link to some Haiku documentation explaining the issue here. I also don't have a Haiku VM avilable at the moment, so if somebody could double check they can build and run dune on Haiku that would be great.

@rgrinberg
Copy link
Member

I don't see why not. If this change is useful to anyone using Haiku, the change log entry would also be useful

@Sylvain78
Copy link
Contributor Author

Sylvain78 commented Sep 30, 2024

I think it would be worth a changelog entry. I'm still unsure about the issue this is resolving since I've never seen it, so I wouldn't mind a link to some Haiku documentation explaining the issue here. I also don't have a Haiku VM avilable at the moment, so if somebody could double check they can build and run dune on Haiku that would be great.

@Alizter I encounter this when compiling lwt : "dune exec..." leads to "Operation not supported" because of this line kernel/team.cpp#1981.

The fact that haiku can't call execve from other threads than the principal thread of a process (a team in haiku jargon), is a discrepancy to POSIX and hence there is a bug about it : https://dev.haiku-os.org/ticket/18665.

@Alizter
Copy link
Collaborator

Alizter commented Oct 4, 2024

@Sylvain78 Thank you for the context. I recall now seeing something similar to do this when I had a look at Haiku support before. What the Haiku designers will do upstream shouldn't be something we rely on obviously, so the fix that you've given here seems sensible and rigid.

Please add a changelog entry together with links to the Haiku issue and this should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants