FLinuxPlatformMisc::DebugBreak when allocating memory

I’m using the c++ mysql connector found here: https://dev.mysql.com/downloads/connector/cpp/

I’m running Ubuntu 17.10

Compiles fine, but when using it, it crashes. This is the stack trace:

#0 FLinuxPlatformMisc::DebugBreak () at ~UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMisc.cpp:765

#1 0x00007ffff6e67ab2 in FGenericPlatformMemory::BinnedAllocFromOS (Size=3328210917751930880) at ~UnrealEngine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMemory.cpp:283

#2 0x00007ffff6f7c0f8 in FLinuxPlatformMemory::BinnedAllocFromOS (Size=<optimized out>) at ~UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMemory.cpp:362

#3 0x00007ffff6ed176b in TCachedOSPageAllocator<64u, 67108864u>::Allocate (this=0x8003a0, Size=3328210917751930880) at Runtime/Core/Public/HAL/Allocators/CachedOSPageAllocator.h:38

#4 FMallocBinned2::MallocExternal (this=<optimized out>, Size=3328210917751927360, Alignment=16) at ~UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/MallocBinned2.cpp:760

#5 0x00007fffe5d49095 in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

#6 0x00007fffe5d490ef in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

#7 0x00007ffee7870489 in sql::SQLString::SQLString(sql::SQLString const&) () from /usr/local/lib/libmysqlcppconn.so.7

#8 0x00007ffee787d5ed in sql::Variant::Variant(sql::SQLString const&) () from /usr/local/lib/libmysqlcppconn.so.7

#9 0x00007ffee7873df4 in sql::mysql::MySQL_Connection::MySQL_Connection(sql::Driver*, sql::mysql::NativeAPI::NativeConnectionWrapper&, sql::SQLString---Type <return> to continue, or q <return> to quit--- const&, sql::SQLString const&, sql::SQLString const&) () from /usr/local/lib/libmysqlcppconn.so.7

#10 0x00007ffee7885fff in sql::mysql::MySQL_Driver::connect(sql::SQLString const&, sql::SQLString const&, sql::SQLString const&) () from /usr/local/lib/libmysqlcppconn.so.7a

Any help is appreciated :slight_smile: