-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Closed
Copy link
Description
Logging is initialized by a call to rcl_logging_configure_with_output_handler() (e.g. from rclcpp::init()).
This calls RCUTILS_LOGGING_AUTOINIT and then sets the logger allocator:
Lines 65 to 66 in 4eccc3c
| RCUTILS_LOGGING_AUTOINIT; | |
| g_logging_allocator = *allocator; |
I think this is a bug, as RCUTILS_LOGGING_AUTOINIT resolves to rcutils_logging_initialize() which calls rcutils_logging_initialize_with_allocator(rcutils_get_default_allocator());, i.e. with the default allocator (malloc) instead of the provided one. So the logging hash table gets the default allocator and not the provided one (and probably all other allocations as well as, since this seems the only place where g_rcutils_logging_allocator is set).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels