You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After compiling, use objdump to check if the instrumentation is successful.
objdump -t ./test_executor| grep asan
0000000000000000 l df *ABS* 0000000000000000 asan_preinit.cpp
000000000027b9f6 g O .bss 0000000000000001 __odr_asan._ZN7testing28FLAGS_gtest_break_on_failureE
0000000000000000 F *UND* 0000000000000000 __asan_report_load4
000000000027ad9d g O .bss 0000000000000001 __odr_asan._ZN49TestExecutor_remove_callback_group_null_node_Test10test_info_E
0000000000000000 F *UND* 0000000000000000 __asan_stack_malloc_4
0000000000000000 F *UND* 0000000000000000 __asan_report_store4
0000000000000000 F *UND* 0000000000000000 __asan_report_store_n
000000000027ada1 g O .bss 0000000000000001 __odr_asan._ZN54TestExecutor_constructor_bad_guard_condition_init_Test10test_info_E
000000000027ad97 g O .bss 0000000000000001 __odr_asan._ZN43TestExecutor_spin_all_invalid_duration_Test10test_info_E
I'm still new to ROS, but it seems that unchecked memory access on NodeBaseInterface, causes this UAF, it would be so nice of you that can help me figure this problem out.
The text was updated successfully, but these errors were encountered:
sorry for the ambiguous here, the program is a demo program called test_executor within ros2-humble source code, the execution path is /path/to/ros/build/rclcpp/test/rclcpp/test_executor
Before the execution, we may need to export ASAN_OPTIONS=new_delete_type_mismatch=0 to disable certain irrelevant information.
Bug report
Required Info:
Ubuntu 20.04
Source Code
Humble
FastRTPS
RCLCPP
Steps to reproduce issue
To reproduce this issue we need to install ros2-humble with the Clang compiler, and with ASAN enabled, then run demo program test_executor.
After compiling, use objdump to check if the instrumentation is successful.
then this problem can be triggered.
Expected behavior
Program execute without error
Actual behavior
ASAN panic with the following console output:
https://pastebin.com/wdzRyJrZ
Additional information
I'm still new to ROS, but it seems that unchecked memory access on NodeBaseInterface, causes this UAF, it would be so nice of you that can help me figure this problem out.
The text was updated successfully, but these errors were encountered: