Commit 0e0fce2
fix segfault in GenericPublisher on Jazzy due to uninitialized callbacks_ member
The callbacks_ member was passed to the rclcpp::PublisherBase base class
constructor before it was initialized (C++ UB), causing a segfault inside
rclcpp::JumpHandler::JumpHandler on Jazzy. Replace with a default-constructed
temporary rclcpp::PublisherEventCallbacks{} and remove the now-unused member.
Fixes #112
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c59c52d commit 0e0fce2
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
0 commit comments