Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user in localdev in ~
- ❯ git clone git@github.com:oatpp/example-postgresql.git
- Cloning into 'example-postgresql'...
- remote: Enumerating objects: 247, done.
- remote: Counting objects: 100% (123/123), done.
- remote: Compressing objects: 100% (78/78), done.
- remote: Total 247 (delta 62), reused 94 (delta 41), pack-reused 124
- Receiving objects: 100% (247/247), 54.04 KiB | 403.00 KiB/s, done.
- Resolving deltas: 100% (123/123), done.
- user in localdev in ~ took 2s
- ❯ cd example-postgresql/
- user in localdev in example-postgresql on master via △ v3.20.3
- ❯ mkdir build && cd build
- user in localdev in example-postgresql/build on master
- ❯ cmake ..
- -- The C compiler identification is GNU 7.3.1
- -- The CXX compiler identification is GNU 7.3.1
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc - skipped
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ - skipped
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /home/user/example-postgresql/build
- user in localdev in example-postgresql/build on master via △ v3.20.3
- ❯ make
- [ 14%] Building CXX object CMakeFiles/example-postgresql-lib.dir/src/service/UserService.cpp.o
- [ 28%] Building CXX object CMakeFiles/example-postgresql-lib.dir/src/ErrorHandler.cpp.o
- [ 42%] Linking CXX static library libexample-postgresql-lib.a
- [ 42%] Built target example-postgresql-lib
- [ 57%] Building CXX object CMakeFiles/example-postgresql-test.dir/test/tests.cpp.o
- [ 71%] Linking CXX executable example-postgresql-test
- [ 71%] Built target example-postgresql-test
- [ 85%] Building CXX object CMakeFiles/example-postgresql-exe.dir/src/App.cpp.o
- [100%] Linking CXX executable example-postgresql-exe
- [100%] Built target example-postgresql-exe
- user in localdev in example-postgresql/build on master via △ v3.20.3 took 6s
- ❯ ./example-postgresql-exe
- Segmentation fault (core dumped)
- user in localdev in example-postgresql/build on master via △ v3.20.3
- ❯ valgrind ./example-postgresql-exe
- ==607== Memcheck, a memory error detector
- ==607== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==607== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
- ==607== Command: ./example-postgresql-exe
- ==607==
- ==607==
- ==607== Process terminating with default action of signal 11 (SIGSEGV)
- ==607== Bad permissions for mapped region at address 0x73BC30
- ==607== at 0x73BC33: ??? (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x62E514: void std::allocator_traits<oatpp::base::memory::CustomPoolSharedObjectAllocator<oatpp::base::StrBuffer, oatpp::base::memory::ThreadDistributedMemoryPool> >::destroy<oatpp::base::StrBuffer>(oatpp::base::memory::CustomPoolSharedObjectAllocator<oatpp::base::StrBuffer, oatpp::base::memory::ThreadDistributedMemoryPool>&, oatpp::base::StrBuffer*) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x62C502: std::_Sp_counted_ptr_inplace<oatpp::base::StrBuffer, oatpp::base::memory::CustomPoolSharedObjectAllocator<oatpp::base::StrBuffer, oatpp::base::memory::ThreadDistributedMemoryPool>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x6A5778: oatpp::base::StrBuffer::allocShared(void const*, long, bool) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x5F9108: oatpp::base::StrBuffer::createFromCString(char const*, bool) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x5F9224: oatpp::data::mapping::type::String::String(char const*, bool) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x5FCF8C: oatpp::parser::json::mapping::Serializer::Config::Config() (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x62539D: void __gnu_cxx::new_allocator<oatpp::parser::json::mapping::Serializer::Config>::construct<oatpp::parser::json::mapping::Serializer::Config>(oatpp::parser::json::mapping::Serializer::Config*) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x622834: void std::allocator_traits<std::allocator<oatpp::parser::json::mapping::Serializer::Config> >::construct<oatpp::parser::json::mapping::Serializer::Config>(std::allocator<oatpp::parser::json::mapping::Serializer::Config>&, oatpp::parser::json::mapping::Serializer::Config*) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x61E370: std::_Sp_counted_ptr_inplace<oatpp::parser::json::mapping::Serializer::Config, std::allocator<oatpp::parser::json::mapping::Serializer::Config>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<>(std::allocator<oatpp::parser::json::mapping::Serializer::Config>) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x619895: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<oatpp::parser::json::mapping::Serializer::Config, std::allocator<oatpp::parser::json::mapping::Serializer::Config>>(std::_Sp_make_shared_tag, oatpp::parser::json::mapping::Serializer::Config*, std::allocator<oatpp::parser::json::mapping::Serializer::Config> const&) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607== by 0x614C65: std::__shared_ptr<oatpp::parser::json::mapping::Serializer::Config, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<oatpp::parser::json::mapping::Serializer::Config>>(std::_Sp_make_shared_tag, std::allocator<oatpp::parser::json::mapping::Serializer::Config> const&) (in /home/user/example-postgresql/build/example-postgresql-exe)
- ==607==
- ==607== HEAP SUMMARY:
- ==607== in use at exit: 48,662 bytes in 74 blocks
- ==607== total heap usage: 89 allocs, 15 frees, 49,636 bytes allocated
- ==607==
- ==607== LEAK SUMMARY:
- ==607== definitely lost: 0 bytes in 0 blocks
- ==607== indirectly lost: 0 bytes in 0 blocks
- ==607== possibly lost: 0 bytes in 0 blocks
- ==607== still reachable: 48,662 bytes in 74 blocks
- ==607== of which reachable via heuristic:
- ==607== stdstring : 590 bytes in 10 blocks
- ==607== suppressed: 0 bytes in 0 blocks
- ==607== Rerun with --leak-check=full to see details of leaked memory
- ==607==
- ==607== For lists of detected and suppressed errors, rerun with: -s
- ==607== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
- Segmentation fault (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement