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

Fix a tail recursion bug #9463

Merged

Conversation

lthor
Copy link
Contributor

@lthor lthor commented Feb 19, 2025

@lthor lthor self-assigned this Feb 19, 2025
@lthor lthor added the team:PS Assigned to OTP team PS label Feb 19, 2025
@lthor lthor requested a review from dgud February 19, 2025 09:32
Copy link
Contributor

github-actions bot commented Feb 19, 2025

CT Test Results

    2 files     24 suites   6m 56s ⏱️
2 165 tests 2 157 ✅  8 💤 0 ❌
3 983 runs  3 948 ✅ 35 💤 0 ❌

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

@lthor lthor force-pushed the lars/xmerl/tail-recursion-bug-27/OTP-19496 branch 2 times, most recently from 9e370aa to a3c7a0f Compare February 19, 2025 11:53
@lthor lthor added the testing currently being tested, tag is used by OTP internal CI label Feb 19, 2025
Comment on lines +2888 to +2889
exit:_ ->
?fatal(error_scanning_entity_ref,S)
Copy link
Contributor

Choose a reason for hiding this comment

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

error ?

Copy link
Contributor Author

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.

ok
ok
catch
exit:{'EXIT',{cyclic,_}} ->
Copy link
Contributor

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

Suggested change
exit:{'EXIT',{cyclic,_}} ->
error:{'EXIT',{cyclic,_}} ->

Copy link
Contributor Author

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,_} ->

dgud
dgud previously approved these changes Feb 19, 2025
- Rewrote some recursion when calling continuation fun
  in xmerl_sax_parser_base.
- Remove all old style catch calls in xmerl
@lthor lthor force-pushed the lars/xmerl/tail-recursion-bug-27/OTP-19496 branch from a3c7a0f to a46f196 Compare February 20, 2025 14:48
@lthor lthor merged commit c626dc4 into erlang:maint Feb 21, 2025
24 checks passed
@lthor lthor removed the testing currently being tested, tag is used by OTP internal CI label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants