You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SUMMARY: AddressSanitizer: container-overflow string:1734 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::__is_long[abi:ue170006]() const
Shadow bytes around the buggy address:
0x000107500700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x000107500780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x000107500800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x000107500880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x000107500900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x000107500980: fa fa fa fa fa fa fa fa fa fa fc fc[fc]fc fc fc
0x000107500a00: fa fa 00 00 00 00 00 00 fa fa fd fd fd fd fd fd
0x000107500a80: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x000107500b00: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x000107500b80: fa fa fd fd fd fd fd fd fa fa 00 00 00 00 00 fa
0x000107500c00: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==25645==ABORTING
To Reproduce
I just compiled the minimal example from the getting started with CMake in CLion IDE:
#include "duckdb.hpp"
int main(int argc, char** argv) {
duckdb::DuckDB db(nullptr);
duckdb::Connection con(db);
auto result = con.Query("SELECT 42");
result->Print();
}
OS:
OSX on M1
DuckDB Version:
0.10.2
DuckDB Client:
C++
Full Name:
Sebastian Höhn
Affiliation:
BFH
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include all code required to reproduce the issue?
Yes, I have
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
Yes, I have
The text was updated successfully, but these errors were encountered:
Thanks for the report! I suspect this has to do with the way that DuckDB is built/linked. Can you make sure the header that you are using belongs to the library you are linking against (i.e. the versions are identical)? Using the header of one version of the library together with the shared object of another can cause all manners of undefined behavior.
I thought about a false positive, too, but I could not justify, why it might be one.
The versions must be the same. I used CPM (https://github.com/cpm-cmake/CPM.cmake) to add the sources as a sub-module and compiled all the code with the same CMake settings. So I am 99% sure, that the versions of headers and libraries match.
Perhaps you have DuckDB in your include path elsewhere and it's grabbing the wrong header?
Could you provide a full set-up script that triggers the error, including your build process?
I don't really see how this can be anything other than a header mismatch or something funky happening in the build process. The address sanitizer reports an out-of-bounds on a concatenation of two std::strings, which is not possible when running C++ code normally.
What happens?
Address Sanitizer report a container-overflow, when running the constructor.
HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_container_overflow=0.
If you suspect a false positive see also: https://github.com/google/sanitizers/wiki/AddressSanitizerContainerOverflow.
To Reproduce
I just compiled the minimal example from the getting started with CMake in CLion IDE:
OS:
OSX on M1
DuckDB Version:
0.10.2
DuckDB Client:
C++
Full Name:
Sebastian Höhn
Affiliation:
BFH
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: