-
Notifications
You must be signed in to change notification settings - Fork 7.9k
main: fix msan #15759
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
main: fix msan #15759
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mstm
We already intercept Lines 520 to 529 in 6732b88
Not sure why this doesn't work for you... |
I'm currently investigating the optimal testing methods for php-src development. I'll get back to you as soon as I understand the cause of this issue :) https://github.com/zeriyoshi/php-containers-development/actions |
I'm still struggling with MSan detection on Clang/LLVM 14 on Debian 12 Bookworm... https://github.com/zeriyoshi/php-containers-development/actions/runs/10738681399/job/29782771727 (If you're interested, you can try it with the following Docker image: |
@zeriyoshi I think you may need the llvm package to provide an instrumented libc. |
@iluuu1994 I was able to make progress by installing the https://github.com/zeriyoshi/php-containers-development/actions/runs/10752149760 However, You can use the container images (security options are necessary for MSan):
The issue in
|
This was due to my test environment not being properly configured. sorry! hint: For Debian, always use the packages from apt.llvm.org. |
@iluuu1994 @Girgias |
But it sets |
Right, this is a false positive. Can you please check whether the |
Ahh, you're testing on PHP-8.2. This issue is only fixed on |
@bukka @iluuu1994 Currently, I'm uncertain whether the following MSan warnings are false positives or not:
Regarding However, since I'm unsure if this warning is a false positive, I don't know whether we should use |
This is already fixed. See #15806. I'll need to take a closer look at |
@iluuu1994 Regarding the issue with |
After retrying the tests on the latest branch, the NTS issue has been completely resolved! https://github.com/zeriyoshi/php-containers-development/actions/runs/10772695102 |
@zeriyoshi I backported existing fixes, and created a few new ones. This fixes all issues for me locally. |
@iluuu1994 |
By the way, are tests like these helpful for php-src development? https://github.com/zeriyoshi/php-containers-development/actions/runs/10752149760 I think they might be useful because by conducting tests on Linux using container images, we can provide developers with snapshot images, which could be beneficial. |
@zeriyoshi Note that I haven't looked at your repository. Generally, I wouldn't object to re-working GitHub actions, our configuration has lots of repetition. However, there are many special variations, especially in nightly, and I'm not sure it makes sense to just replace a fraction of them. |
@iluuu1994 Thank you. I plan to continue refining it until it can fully replace the current php-src nightly, while also seeking opinions on the Internals mailing list! |
The code is using
estrdup
on uninitialized memory allocated byemalloc
. While this likely doesn't cause harm, it triggers a warning from MemorySanitizer on clang >= 18.(I still have a lot of things I don't understand about this field. Please let me know if I'm mistaken.)