Closed jeking3 closed 6 years ago
These are probably bogus. I took a fresh look at the implementation of object_hex_dump
and I don't see a problem. The point of object_hex_dump
is to print the first up to 16 bytes of the object's memory, in diagnostic_information
output, in case the object doesn't provide a way to be converted to a string.
I'm guessing that VALGRIND is just warning that the memory being accessed isn't initialized, which is fine, because it is part of a valid C++ object (which is trivially constructible).
Let me know if you still think this is an error.
It would be nice to annotate the code so valgrind can ignore it. That or actually have the test initialize the object. That way if something more serious popped up in a future PR it would not be in an "allowed failure" job and get ignored.
On Tue, Nov 13, 2018, 7:15 PM Emil Dotchevski <notifications@github.com wrote:
These are probably bogus. I took a fresh look at the implementation of object_hex_dump and I don't see a problem. The point of object_hex_dump is to print the first up to 16 bytes of the object's memory, in diagnostic_information output, in case the object doesn't provide a way to be converted to a string.
I'm guessing that VALGRIND is just warning that the memory being accessed isn't initialized, which is fine, because it is part of a valid C++ object (which is trivially constructible).
Let me know if you still think this is an error.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/boostorg/exception/issues/14#issuecomment-438488648, or mute the thread https://github.com/notifications/unsubscribe-auth/ALOdbR-w6KbgjrzZcAEQayPRU2Xh5aHSks5uu2C0gaJpZM4YafMq .
Build command:
VALGRIND_OPTS=--error-exitcode=1 /home/travis/build/jeking3/boost-root/b2 . toolset=clang-6.0 cxxstd=03,11,14,17,2a define=BOOST_NO_STRESS_TEST=1 testing.launcher=valgrind variant=debug -j3
This error appears to occurs in the same test 5 times, once for each language level that was run, so I copied in the first occurrence:
https://travis-ci.org/jeking3/exception/jobs/454168879#L1188