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 hitting the perflog command rule #1481

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Fix crash when hitting the perflog command rule #1481

merged 1 commit into from
Jun 1, 2023

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented Jun 1, 2023

The root cause is that we didn't allow the entry when creating
the unique ptr. So it will be a null pointer when the command
was hitting the perflog rule.

This closes #1480

The root cause is that we didn't allow the entry when creating the
unique ptr. So it will be a null pointer when the command was hitting
the perflog rule.
@git-hulk git-hulk requested review from torwig and PragmaTwice June 1, 2023 14:25
@PragmaTwice
Copy link
Member

Good catch! My bad.

@torwig
Copy link
Contributor

torwig commented Jun 1, 2023

@git-hulk Thanks for reproducing and adding the appropriate test.

@git-hulk
Copy link
Member Author

git-hulk commented Jun 1, 2023

Good catch! My bad.

No problem. I also didn't catch this when reviewing. The main issue is that we didn't have any test cases for this command.

@git-hulk git-hulk changed the title Fix crash when the perflog mode was enabled Fix crash when hitting the perflog command rule Jun 1, 2023
@git-hulk
Copy link
Member Author

git-hulk commented Jun 1, 2023

Thanks all, merging...

@git-hulk git-hulk merged commit 58b9927 into apache:unstable Jun 1, 2023
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.

process crash when running perflog on macos
3 participants