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

wasm2c: Fix warning on signed/unsigned comparison #2400

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

shravanrn
Copy link
Collaborator

No description provided.

@shravanrn shravanrn requested review from keithw and sbc100 March 14, 2024 23:32
@shravanrn shravanrn enabled auto-merge (rebase) March 14, 2024 23:33
Copy link
Member

@keithw keithw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm -- dupe of #2351 (I have the same question I had there but I assume the answer is basically "it happens on a newer compiler")

@shravanrn
Copy link
Collaborator Author

shravanrn commented Mar 15, 2024

lgtm -- dupe of #2351 (I have the same question I had there but I assume the answer is basically "it happens on a newer compiler")

I think it's more the case that this code is executed only if there is a custom "grow_failed" handler. So, we don't see the warning in this CI, but it shows up on the Firefox build. I'll update the wasm2c_rlbox test to integrate a custom grow failed handler when I get the chance to make sure this code is exercised.

Separately, any idea if there is something wrong with the CI runner? I'm trying to track down the CI crash but it seems like the crashes aren't related to this commit?

@sbc100
Copy link
Member

sbc100 commented Mar 15, 2024

Interesting, binaryen just ran into some santizer-only failures that were unrelated to any changes to binaryen itself. @kripken does this looks like the same issue?

@kripken
Copy link
Member

kripken commented Mar 15, 2024

Hmm, it could be! Same symptoms, which are the ASan build just exits with an error, no message, nothing else. We also saw a TSan error which actually did contain an error message.

WebAssembly/binaryen#6396 has my investigation and fixes in Binaryen. Basically my best guess is that the github actions bots changed something, and recent LLVM versions are needed to handle it. Clang 17 is enough for ASan, but clang 18 is needed to also fix TSan if you want that as well.

@keithw
Copy link
Member

keithw commented Mar 15, 2024

We're having this problem on a lot of our students' machines too. The recent update to Ubuntu 23.10 (to kernel 6.5.0-25-generic #25-Ubuntu) seems to have broken a lot of the ASan output from g++ 13.2 and clang++ 16.0.6. Apparently there's some ASLR-related change? Haven't searched for more yet. :-(

@shravanrn
Copy link
Collaborator Author

shravanrn commented Mar 17, 2024

Hmm... not sure what is the best way to proceed. Is this is something that is affecting all PRs. If yes, would it be reasonable to disable the failing CI builds for now? Also, happy to wait to land if someone is working on fixing the CI already

@shravanrn
Copy link
Collaborator Author

Testing a fix per
actions/runner#3207 (comment)

@shravanrn shravanrn disabled auto-merge March 17, 2024 20:36
@shravanrn shravanrn marked this pull request as draft March 17, 2024 20:36
@shravanrn
Copy link
Collaborator Author

shravanrn commented Mar 17, 2024

Looks like that fix worked. Will spin the CI workaround out into its own PR

@shravanrn shravanrn force-pushed the signed-warning-fix branch from 1764cdb to e3283f5 Compare March 18, 2024 21:10
@shravanrn shravanrn marked this pull request as ready for review March 20, 2024 16:31
@shravanrn shravanrn merged commit 923f60f into WebAssembly:main Mar 20, 2024
17 checks passed
@shravanrn shravanrn deleted the signed-warning-fix branch March 20, 2024 16:32
@keithw keithw mentioned this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants