Opened 5 years ago
Last modified 5 years ago
#13233 new Bugs
address sanitize dumps error
Reported by: | anonymous | Owned by: | Andrey Semashev |
---|---|---|---|
Milestone: | To Be Determined | Component: | log |
Version: | Boost 1.65.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
When compiler user code with -fsanitize=address -fsanitize=undefined,it dumps:
/usr/local/include/boost/smart_ptr/detail/shared_count.hpp:426:36: runtime error: member call on address 0x6030000134b0 which does not point to an object of type 'sp_counted_base' 0x6030000134b0: note: object is of type 'boost::detail::sp_counted_impl_p<boost::log::v2_mt_posix::core>' 03 00 80 6a 40 2a 4f fb b6 7f 00 00 05 00 00 00 01 00 00 00 b0 ed 00 00 20 60 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'boost::detail::sp_counted_impl_p<boost::log::v2_mt_posix::core>' /usr/local/include/boost/log/attributes/attribute_value.hpp:200:37: runtime error: member call on address 0x60400000cad0 which does not point to an object of type 'impl' 0x60400000cad0: note: object is of type 'boost::log::v2_mt_posix::attributes::attribute_value_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >' 01 00 00 43 88 2a 4f fb b6 7f 00 00 01 00 00 00 be be be be b0 22 01 00 30 60 00 00 1d 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'boost::log::v2_mt_posix::attributes::attribute_value_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >'
could you fix it?It may caused by logging::core instance
Attachments (1)
Change History (3)
by , 5 years ago
Attachment: | Sanitizer.txt added |
---|
comment:1 by , 5 years ago
Hi,
I seem to be hit by the same problem, however I only see the first of the two runtime errors:
/home/lukas/opt/boost_install/include/boost/smart_ptr/detail/shared_count.hpp:426:36: runtime error: member call on address 0x6030000070f0 which does not point to an object of type 'sp_counted_base' 0x6030000070f0: note: object is of type 'boost::detail::sp_counted_impl_p<boost::log::v2_mt_posix::core>' 01 00 00 3f 38 c5 66 c6 a6 7f 00 00 02 00 00 00 01 00 00 00 50 e9 00 00 20 60 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'boost::detail::sp_counted_impl_p<boost::log::v2_mt_posix::core>'
My instrumentation flags are
-fstack-protector -fsanitize=undefined -ftrapv -fno-sanitize-recover -fsanitize=address
comment:2 by , 5 years ago
Sorry, providing a little bit more information: I'm using boost 1.66.0 and GCC 5.4.0.
Note:
See TracTickets
for help on using tickets.
My version of the same error