-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
lld-12.0.0-6 LTO segfault on gcc prefixes #8963
Comments
The only patch touching lld directly in 12.0.0-6 seems to be 41d7201. Getting a debug (or RelWithDebInfo) build can be problematic, though. Originally posted by @jeremyd2019 in #8868 (comment) |
Tested locally, with all other llvm/clang 12.0.0-6 packages but overwritten with manually downloaded (don't find a option Originally posted by @zufuliu in #8868 (comment) |
How hard is it to get to this stage? Could you provide a zip of the object files/whatever inputs to lld? This sounds quite suspiciously like the LTO patch I referenced earlier. I could make a build of lld without that patch to test, but I think that would be pretty much the same as what you did with everything 12.0.0-6 except lld 12.0.0-5... Originally posted by @jeremyd2019 in #8868 (comment) |
the build command https://github.com/zufuliu/notepad2/blob/master/build/mingw/build.bat#L60
Originally posted by @zufuliu in #8868 (comment) |
Cool, basically no dependencies then. Will do some testing Originally posted by @jeremyd2019 in #8868 (comment) |
does not occur on clang64 prefix. does occur on mingw32
Originally posted by @jeremyd2019 in #8868 (comment) |
testing for msys2#8963
I was able to build lld standalone, and thus with debug symbols! gdb analysis
Specifically, it seems to be calling |
Confirmed reverting (not applying) the patch from 41d7201 (https://reviews.llvm.org/D103012) allows the same inputs to link successfully. |
Thanks for narrowing it down that far! Lld has got a great option for packaging inputs for reproducing issues, add |
I was hoping for an option like that! I compressed it. Apprently github attachments only like gzip. I did that with a 'working' lld, not the 'broken' one with the patch applied, hopefully that doesn't matter. |
Thanks, that worked great for reproducing and debugging the issue. I posted a patch for the issue at https://reviews.llvm.org/D104605. |
That patch solved the crash here |
FWIW that fix is now committed. |
(Sorry, I replied to a stale copy of this thread, I see that it's all picked up and taken care of since a couple days.) |
The fix has been merged and the updated packages are in the repo. |
It seems lld-12.0.0-6 is also broken, see https://github.com/zufuliu/notepad2/actions/runs/951639414 for ucrt, x86_64 and i686 builds.
https://github.com/zufuliu/notepad2/runs/2863091346?check_suite_focus=true#step:7:203
While the 5 days ago lld-12.0.0-5 is working, see https://github.com/zufuliu/notepad2/actions/runs/934479857
Originally posted by @zufuliu in #8868 (comment)
The text was updated successfully, but these errors were encountered: