-
Notifications
You must be signed in to change notification settings - Fork 13.5k
The dsymutil tool left a directory in the tmpdir. #61920
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
Comments
Here's a potential fix https://reviews.llvm.org/D147498 |
So fast! Will this fix be picked to clang 14? And when will mac use this fix? |
I'm not sure if there will be another release in either the 14 or 15 versions. As far as the apple shipped versions they lag behind quite a bit. I would recommend finding another workaround in the meantime 🫤 |
If you pass |
It works! Does this option have any side effect? |
The default is that if dsymutil crashes it will produce a reproducer for filing a bug report. So with this option you will not get that. |
Got it! Thank you! |
In the case the reproducer isn't generated, we don't want to leave around an empty temporary directory. Fixes llvm#61920 Differential Revision: https://reviews.llvm.org/D147498
Thanks for fixing the original issue. |
ha, no not really expected. I don't think the patch should be too bad to fix it. I think we could just change the logic to check the directory for any contents before removing. Want to submit a PR? |
dsymutil creates a temporary directory in tmpdir when it's working, but forgets to remove it upon exiting.
This issue has been present since Clang 14.0.3 or earlier, but not before 14.0.0.
It causes Golang compilation to fail on macOS. See golang/go#59026.
Here is how to reproduce:
Until Clang 15.0.7, this issue still exists.
The text was updated successfully, but these errors were encountered: