Closed kenji-miyake closed 4 years ago
Thanks for the detailed issue description. That was a tough one. Apparently boost::serialization
assumes that when two objects are serialized that have the same address, they must be identical. That goes wrong If the first object went out of scope in the process of serialization and the second object just happens to reuse the address of the first one.
The problem seems to happen with every version of boost, however when the compiler changes or is configured differently, the memory layout changes and the error disappears.
I fixed that now by making sure that no object that is serialized lives on the stack, but I am not sure if this behavior of boost is intentional.
Actually it turned out to be a bug in boost::serialization
with boost::variant
. I opened an issue there.
Hello, I found
TestBinHandler
fails on ROS Noetic. I suspect it's because some dependent libraries have destructive changes, but I'm not sure what they are.Would you help me to solve this problem?
Environment
https://www.ros.org/reps/rep-0003.html#noetic-ninjemys-may-2020-may-2025
Problem
How to reproduce the problem