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 crash when dealing with IBs where m_skip==true #129

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

shanminchao
Copy link
Collaborator

This is a case where m_start_node_stack assumes that packets exist in every IB, which is obviously not true for IBs that are "skipped". No packets get pushed on that stack, and then it gets popped at the end of OnIbEnd(). This causes a crash later. Fixed by using the m_new_ib_start flag to determine if any packets were pushed onto the stack, and not doing any of the usual things if nothing is pushed.

This is a case where m_start_node_stack assumes that packets
exist in every IB, which is obviously not true for IBs that
are "skipped". No packets get pushed on that stack, and then
it gets popped at the end of OnIbEnd(). This causes a crash
later. Fixed by using the m_new_ib_start flag to determine
if any packets were pushed onto the stack, and not doing
any of the usual things if nothing is pushed.
@shanminchao shanminchao merged commit a4b0067 into google:main Aug 22, 2024
7 checks passed
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.

2 participants