-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[libc] __support.File.platform_file_test.__unit__ fails #64663
Comments
@llvm/issue-subscribers-libc |
cc @jhuber6 |
I've encountered this myself, usually with some error message like "Bad stdio handle". The changes in a09bec6 should've been pretty superficial. The previous method relied on a global constructor to initialize the |
I think this error is caused by duplicate nm after commit
nm before commit
glibc:
Would guess that symbol versioning makes it not instantly break. |
Thanks for that, thinking through it I think I can assume what's going on. The test suite when operating in "overlay" mode has a unit test suite that uses a regular hosted system (e.g. glibc) to do its printing. The previous implementation shuttled the definitions of I don't actually know what a good solution here is. The LLVM C library likes to offer its "overlay" mode, which resolves statically certain |
At a high level, the solution seems to me that, since the symbols like |
In theory you'd have the |
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
…ct files. This is done so that tests which only require platform file but not the platform streams can be run as unit tests. The tests which use platform streams can only be hermetic tests to avoid conflicts with the system-libc streams. Fixes: llvm#64663 llvm#63558 Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D158193
Using git-bisect the following commit introduced the issue: a09bec6
bt:
Configuration:
The text was updated successfully, but these errors were encountered: