Skip to content

Instantly share code, notes, and snippets.

@hia3
Created April 7, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hia3/6d1267ead31b935912d77ae88343edd7 to your computer and use it in GitHub Desktop.
Save hia3/6d1267ead31b935912d77ae88343edd7 to your computer and use it in GitHub Desktop.
hana asan crash
#include <boost/hana/tuple.hpp>
template <typename T>
struct tt
{
};
int main()
{
const tt<int> xn1; const tt<char> xn2;
boost::hana::tuple<tt<int>, tt<char> > tz(xn1, xn2);
// runtime error: constructor call on address 0x00256c51f6e2 with insufficient space for an object of type 'boost::hana::detail::elt<1, tt<char>, true>'
// note: pointer points here
// 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 59 10 64 90 f6 7f
// ^
// SUMMARY: AddressSanitizer: undefined-behavior in main+0xab
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment