-
Notifications
You must be signed in to change notification settings - Fork 421
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
Segment fault occurred when node was added to executor if the callback group variable created was local #2445
Comments
Hello @Chaochao0215, maybe we could build a debug type of this source code and use |
I tried your code, but I cannot find segment fault. |
|
I tried your code and I can't reproduce the segment fault. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread -g") and check if there's data race in |
hi, I found a quick way to reproduce the problem
|
I missed this step. |
I'm sorry i didn't specify the need to publish message at the beginning, hope you reproduce it successfully. |
|
@Chaochao0215 it would be helpful if you could provide self-contained reproducible test. |
@Chaochao0215 Did you find the cause of this problem in the end? How did you solve it? Program terminated with signal SIGSEGV, Segmentation fault. |
could you give a minimum demo code to regenerate this error ? I tried codes above, but it didn't crash. |
My code is mixed with a lot of logic, I don't know which call caused it, this crash is quite sporadic, The program only appears once every few days. |
This issue looks similar to ros2/rmw_fastrtps#777. |
ROS2
Bug report
Required Info:
Steps to reproduce issue
Create a node and call the create_callback_group interface to create a callback group local variable, then add the node to the executor and spin the executor, segment fault occuered sometimes.
The text was updated successfully, but these errors were encountered: