-
Notifications
You must be signed in to change notification settings - Fork 272
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
[BUG] sysroot: Incorrect definition of WIFSTOPPED
in <bits/wait.h>
#1878
Comments
@enh-google is this something you think you'll have time to fix this week? If so I can include it in r26 beta 1. |
yeah, i've just uploaded https://android-review.googlesource.com/c/platform/bionic/+/2575250 with the obvious fix:
i was worried that i'd introduced this bug during a refactoring, but it's been there since the initial import. it looks like this actually is correct for BSD, so that's probably where it came from. |
Presumably this would not be an issue if In OpenBSD code base, the definition of In bionic |
ah, that explains how we got here. thanks! |
(and thanks for the super detailed and actionable bug report!) |
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
Although this breaks job control in several shells (including mksh), this has been broken since the initial commit and no-one's noticed until now. Bug: android/ndk#1878 Test: treehugger Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
It looks like the fix for this was actually in r26 beta 1 and we just missed it in the changelog. Uploaded https://android-review.googlesource.com/c/platform/ndk/+/2697495 to fix that. (if my git spelunking is wrong and it wasn't in beta 1, it will be in rc 1, so closing either way) |
Description
Look at the definition of
WIFSTOPPED
andWIFCONTINUED
in<bits/wait.h>
:This implies that
WIFSTOPPED(__status)
is true wheneverWIFCONTINUED(__status)
is true, leading to that the following pattern does not work as expected:Unfortunately mksh bundled with Android adopts this pattern and so the job control in mksh is not working correctly:
https://android.googlesource.com/platform/external/mksh/+/refs/tags/android-13.0.0_r42/src/jobs.c#1394
https://android.googlesource.com/platform/external/mksh/+/refs/tags/android-13.0.0_r42/src/jobs.c#1398
This issue was initially reported in termux/termux-packages#15677.
Affected versions
r25
Canary version
No response
Host OS
Linux
Host OS version
Portage 3.0.46 (python 3.11.3-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r2, 5.4.203-gentoo x86_64)
Affected ABIs
armeabi-v7a, arm64-v8a, x86, x86_64
Build system
Other (specify below)
Other build system
No response
minSdkVersion
24
Device API level
31
The text was updated successfully, but these errors were encountered: