-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix a tail recursion bug #9463
Fix a tail recursion bug #9463
Conversation
CT Test Results 2 files 24 suites 6m 56s ⏱️ Results for commit a46f196. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
9e370aa
to
a3c7a0f
Compare
exit:_ -> | ||
?fatal(error_scanning_entity_ref,S) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an exit, double checked the code.
lib/xmerl/src/xmerl_scan.erl
Outdated
ok | ||
ok | ||
catch | ||
exit:{'EXIT',{cyclic,_}} -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sofs do error not exit
exit:{'EXIT',{cyclic,_}} -> | |
error:{'EXIT',{cyclic,_}} -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, should be: error:{cyclic,_} ->
- Rewrote some recursion when calling continuation fun in xmerl_sax_parser_base. - Remove all old style catch calls in xmerl
a3c7a0f
to
a46f196
Compare
Fixes xmerl_sax_parser:stream/2 stack keeps growing until the VM is OOM #9190