-
Notifications
You must be signed in to change notification settings - Fork 436
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
core dumped in rcl_logging_external_log after ctrl+c in some case #1418
Comments
Could you confirm this issue? |
@iuhilnehc-ynos Can you extend the explanation of the issue? |
Let me try to explain this. Please refer to the following steps, it seems that
main thread:
deferred_signal_handler thread:
rcl_logging/rcl_logging_spdlog/src/rcl_logging_spdlog.cpp
BTW: I don't think it's a good method to fix this issue by checking pointer |
Thanks for your information.
Yes. It seems you had already discussed this kind of issue, which asynchronously shutting down causes some problems.
Yes, but it might be just a workaround, I thought that |
Maybe that isn't a bad idea, but I'm not sure if that avoids completely a segfault. |
I'm not sure how this is happening, when logging finalization and the output handler are synchronized:
|
Thank you for your response.
|
Maybe there is another fix method,
Updated: I'll check it tomorrow. |
That patch makes sense to me |
Fixed in ros2/rcl#844. |
Bug report
Required Info:
Steps to reproduce issue
Using directly call for the executable file can easily reproduce the issue(frequency: 1/3),
Expected behavior
No core dumped
Actual behavior
Additional information
backtrace
NOTE:
rcl_logging_fini
in__delete_context
rclcpp/rclcpp/src/rclcpp/context.cpp
Lines 326 to 341 in 5d9db5d
The text was updated successfully, but these errors were encountered: