-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
ICU-22511 collator hang in comparison #2673
base: main
Are you sure you want to change the base?
Conversation
to test java run (Googlers- make sure you did the /etc/group trick on your machine to make the build faster first) |
83ee0ed
to
ce0c676
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
ce0c676
to
f86c6f7
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
@markusicu friendly ping. this bug was filed Nov 2, 2023 by fuzzer and and the PR is ready for review for a week. |
I think both are out of office for Thanksgiving week. |
I took a quick look at the code, and I am concerned. It appears to return as equal whenever three times in a row, a primary is equal. But then we would get the clearly incorrect: aaah = aaagh Each pass through the main loop should be resetting either the right or left CEs, or both. Because getting a ce advances an internal pointer, that should always terminate. So something fishy is going on. I suggest that you augment your printout to provide more readable information, since lines like the following are too hard to follow: I suggest when you print, break down the left and right ce values in to primary, secondary, tertiary, and put tabs between the fields so that this can be loaded into a spreadsheet. I can't remember, but you make also be able to fetch a code point offset from the ce; if so it would help to include that in the printout. |
sorry, I assume you look at the Java code first. My java change is indeed wrong. I should throw there not return equal. |
f86c6f7
to
1c70aa0
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
Thanks. I'm still a bit worried about the change, because of the aaah case, so I'd appreciate a printout for the test case along the lines I suggested. |
I looked at this and didn't understand what it was doing or why. I think I'll just defer to Mark here. |
@markusicu ping |
ping @markusicu . this is more urgent than other PR because it is now able to hang v8 with very simple script (see the bug for details) |
Somehow the bug is fixed between per fuzzer. Obsolete this PR |
reopen |
…cale ICU-22511 throw exception in java
1c70aa0
to
36ad138
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
The fix is not good enough. |
Avoid infinity loop by terminating and returning error if we loop the same for too many times.
Checklist