Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UBSAN error 'applying non-zero offset ... to null pointer' #1607

Closed
jstrzebonski opened this issue Nov 12, 2021 · 0 comments · Fixed by #1608
Closed

Fix UBSAN error 'applying non-zero offset ... to null pointer' #1607

jstrzebonski opened this issue Nov 12, 2021 · 0 comments · Fixed by #1608
Assignees

Comments

@jstrzebonski
Copy link
Contributor

root@59b0e102a283:/# /build/vt/examples/hello_world/objgroup 
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_iterator.h:847:44: runtime error: applying non-zero offset 18446744073709551608 to null pointer
    #0 0x37290d7 in __gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >::operator--(int) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_iterator.h:847:44
    #1 0x370b673 in vt::arguments::ArgConfig::parseArguments[abi:cxx11](CLI::App&, int&, char**&) /vt/src/vt/configs/arguments/args.cc:689:33
    #2 0x370aa2e in vt::arguments::ArgConfig::parse[abi:cxx11](int&, char**&) /vt/src/vt/configs/arguments/args.cc:613:41
    #3 0x2ec2501 in vt::runtime::Runtime::Runtime(int&, char**&, short, bool, int, vt::runtime::eRuntimeInstance) /vt/src/vt/runtime/runtime.cc:156:18
    #4 0x36880e0 in std::_MakeUniq<vt::runtime::Runtime>::__single_object std::make_unique<vt::runtime::Runtime, int&, char**&, short const&, bool&, int&>(int&, char**&, short const&, bool&, int&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:857:34
    #5 0x3687ba6 in vt::CollectiveAnyOps<(vt::runtime::eRuntimeInstance)0>::initialize(int&, char**&, short, bool, int*) /vt/src/vt/collective/collective_ops.cc:68:31
    #6 0x364c17d in vt::initialize(int&, char**&, int*) /vt/src/vt/collective/startup.cc:62:10
    #7 0x1ab7025 in main /vt/examples/hello_world/objgroup.cc:60:3
    #8 0x7f01c04100b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
    #9 0x1a9575d in _start (/build/vt/examples/hello_world/objgroup+0x1a9575d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant