Skip to content
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

Regression(962a2479b57f): Interpreter/execute.cpp failing on mac/arm64 #51495

Closed
nico opened this issue Oct 12, 2021 · 11 comments
Closed

Regression(962a2479b57f): Interpreter/execute.cpp failing on mac/arm64 #51495

nico opened this issue Oct 12, 2021 · 11 comments
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@nico
Copy link
Contributor

nico commented Oct 12, 2021

Bugzilla Link 52153
Resolution FIXED
Resolved on Oct 13, 2021 04:45
Version unspecified
OS All
CC @lhames,@zygoloid,@vgvassilev

Extended Description

http://45.33.8.238/macm1/19741/step_7.txt started failing recently, with this regression range: 52cb3af...e19bbd0

Very likely 962a247: 962a247

Not sure if clang-repl does something wrong, or if this is a regression in orcjit.

@nico
Copy link
Contributor Author

nico commented Oct 12, 2021

(962a247 doesn't mention a phab review, else I would've commented there.)

@lhames
Copy link
Contributor

lhames commented Oct 12, 2021

Hi Nico,

Thanks for the heads up. I'll look into this today.

-- Lang.

@lhames
Copy link
Contributor

lhames commented Oct 12, 2021

This should be fixed by 2815ed5.

The failure is probabilistic, so I'll leave this bug open for 24 hours and then review the bot to make sure we haven't seen any more failures.

@lhames
Copy link
Contributor

lhames commented Oct 12, 2021

Looks like I was still missing some calls to ExecutionSession::endSession. I have added these in 19b4e3c.

@lhames
Copy link
Contributor

lhames commented Oct 12, 2021

Also missing calls to ExecutorProcessControl::disconnect in some unit tests. This has been fixed in adf55ac.

@nico
Copy link
Contributor Author

nico commented Oct 13, 2021

The test is still failing: http://45.33.8.238/macm1/19832/step_7.txt

@nico
Copy link
Contributor Author

nico commented Oct 13, 2021

Consistently, too: http://45.33.8.238/macm1/summary.html

It's been broken all day. Maybe it's time to revert for now?

@lhames
Copy link
Contributor

lhames commented Oct 13, 2021

Oops -- Disregard previous updates, they were for a related but distinct bot failure. :P

I'm looking in to this one now. If getting the bot green tonight is a priority then the test should be disabled, rather than any patches reverted -- there have been quite a few landed since yesterday, and this is likely to be a relatively quick fix.

@lhames
Copy link
Contributor

lhames commented Oct 13, 2021

This was a long-standing bug in JITLink MachO/arm64 that was exposed by the memory manager refactor: negative immediates on LDRLiteral19 relocations weren't being masked, leading to them overwriting opcode bits. The issue had never come up before because LDRLiteral19s were all created inside JITLink itself, and pointed at segments that were (under the old memory manager) always laid out after segments containing the LDRLiteral19 relocation, so we had never encountered a negative immediate before.

This should (finally) be fixed in 447d301 -- I'll check back in on the M1 bot shortly. Apologies again for the earlier noise with the unrelated fixes.

@lhames
Copy link
Contributor

lhames commented Oct 13, 2021

Looks like the the builder is passing again as of http://45.33.8.238/macm1/19846/summary.html.

@nico
Copy link
Contributor Author

nico commented Oct 13, 2021

Fantastic. Thanks, Lang!

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
None yet
Development

No branches or pull requests

2 participants