Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Common Errors

bala219 edited this page Mar 11, 2020 · 3 revisions
  1. what(): Could not create dir 'cached': db-engine-paradigms/../data//cached/
    This error always occurs when the data is loaded for the first time. Just start the program again.

  2. fatal error: file 'db-engine-paradigms/include/../*.hpp' has been modified since the precompiled header 'include/hybrid/minimal_api.hpp.pch' was built
    If one of the headers included in the API header was changed, you'll have to remove the precompiled header and run the program again.

  3. Some error similar to this:

==12729==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000001ca0 at pc 0x5555557e227e bp 0x7fffffffb320 sp 0x7fffffffaac8
READ of size 2 at 0x606000001ca0 thread T0
    #0 0x5555557e227d in __interceptor_strlen.part.24 (/home/pshevche/Documents/ovgu/hiwi/develop/db-engine-paradigms/build/debug/run_hybrid+0x28e27d)
    #1 0x7ffff70e2018 in std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x114018)
    #2 0x5555558c261a in main /home/pshevche/Documents/ovgu/hiwi/develop/db-engine-paradigms/src/hybrid/run.cpp:328
    #3 0x7ffff6440b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x5555557b1959 in _start (/home/pshevche/Documents/ovgu/hiwi/develop/db-engine-paradigms/build/debug/run_hybrid+0x25d959)

This error usually happens, if a symbol with the given name can't be found in a shared library. In our particular implementation, it is often caused by changing the signature of the compiled function. In order to fix the issue, you'll have to find the new name of the symbol. One way to do it is by running nm -g src/hybrid/*.so

  1. error: PCH file was compiled for the target CPU XY but the current translation unit is being compiled for target YZ
    The reason behind this error is that the API header and the source code were compiled with different compiler settings. Make sure that the compilation flags in compilation_engine.cpp:precompileAPIHeader, compilation_engine.cpp:compileQueryCPP and compilation_engine.cpp:linkQueryLib are the same. Once fixed, remove the pre-compiled header and re-run the program.
    Alternatively, this issue can occur if you copy the code to a remote machine together with the pre-compiled header. If the architectures of your and remote machines are different, you can observe such error. In this case, just remove the pre-compiled header at remote and re-run the evaluation.

  2. ==26396==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 61 byte(s) in 1 object(s) allocated from: #0 0x688bd0 in __interceptor_realloc (/home/gurumurt/Student-Files/hiwi/db-engine-paradigms/run_hybrid+0x688bd0) #1 0x7f985f4e37aa in vasprintf (/lib/x86_64-linux-gnu/libc.so.6+0x767aa)

Direct leak of 23 byte(s) in 1 object(s) allocated from: #0 0x688820 in malloc (/home/gurumurt/Student-Files/hiwi/db-engine-paradigms/run_hybrid+0x688820) #1 0x7f985f4e37d7 in vasprintf (/lib/x86_64-linux-gnu/libc.so.6+0x767d7)

SUMMARY: AddressSanitizer: 84 byte(s) leaked in 2 allocation(s).

YET TO BE RESOLVED

Clone this wiki locally