Boost logo

Boost :

Subject: [boost] [serialization] uuid test_serialization ubsan error
From: James E. King, III (jking_at_[hidden])
Date: 2018-01-20 04:55:50


I'm getting a ubsan test error in uuid/test/test_serialization - is the
code in that test using archive the right way?

testing.capture-output
../../../bin.v2/libs/uuid/test/test_serialization.test/gcc-7/debug/link-static/threadapi-pthread/test_serialization.run
====== BEGIN OUTPUT ======
../../../boost/archive/detail/interface_oarchive.hpp:47:16: runtime error:
downcast of address 0x7ffca0c6fe30 which does not point to an object of
type 'text_oarchive'
0x7ffca0c6fe30: note: object is of type
'boost::archive::text_oarchive_impl<boost::archive::text_oarchive>'
 00 00 00 00 e0 2f 78 8f 48 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for
'boost::archive::text_oarchive_impl<boost::archive::text_oarchive>'

EXIT STATUS: 1
====== END OUTPUT ======

Thanks,

Jim


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk