Advertisement
Guest User

Untitled

a guest
Jun 17th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. user in localdev in ~
  2. ❯ git clone git@github.com:oatpp/example-postgresql.git
  3. Cloning into 'example-postgresql'...
  4. remote: Enumerating objects: 247, done.
  5. remote: Counting objects: 100% (123/123), done.
  6. remote: Compressing objects: 100% (78/78), done.
  7. remote: Total 247 (delta 62), reused 94 (delta 41), pack-reused 124
  8. Receiving objects: 100% (247/247), 54.04 KiB | 403.00 KiB/s, done.
  9. Resolving deltas: 100% (123/123), done.
  10.  
  11. user in localdev in ~ took 2s
  12. ❯ cd example-postgresql/
  13.  
  14. user in localdev in example-postgresql on  master via △ v3.20.3
  15. ❯ mkdir build && cd build
  16.  
  17. user in localdev in example-postgresql/build on  master
  18. ❯ cmake ..
  19. -- The C compiler identification is GNU 7.3.1
  20. -- The CXX compiler identification is GNU 7.3.1
  21. -- Detecting C compiler ABI info
  22. -- Detecting C compiler ABI info - done
  23. -- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc - skipped
  24. -- Detecting C compile features
  25. -- Detecting C compile features - done
  26. -- Detecting CXX compiler ABI info
  27. -- Detecting CXX compiler ABI info - done
  28. -- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ - skipped
  29. -- Detecting CXX compile features
  30. -- Detecting CXX compile features - done
  31. -- Configuring done
  32. -- Generating done
  33. -- Build files have been written to: /home/user/example-postgresql/build
  34.  
  35. user in localdev in example-postgresql/build on  master via △ v3.20.3
  36. ❯ make
  37. [ 14%] Building CXX object CMakeFiles/example-postgresql-lib.dir/src/service/UserService.cpp.o
  38. [ 28%] Building CXX object CMakeFiles/example-postgresql-lib.dir/src/ErrorHandler.cpp.o
  39. [ 42%] Linking CXX static library libexample-postgresql-lib.a
  40. [ 42%] Built target example-postgresql-lib
  41. [ 57%] Building CXX object CMakeFiles/example-postgresql-test.dir/test/tests.cpp.o
  42. [ 71%] Linking CXX executable example-postgresql-test
  43. [ 71%] Built target example-postgresql-test
  44. [ 85%] Building CXX object CMakeFiles/example-postgresql-exe.dir/src/App.cpp.o
  45. [100%] Linking CXX executable example-postgresql-exe
  46. [100%] Built target example-postgresql-exe
  47.  
  48. user in localdev in example-postgresql/build on  master via △ v3.20.3 took 6s
  49. ❯ ./example-postgresql-exe
  50. Segmentation fault (core dumped)
  51.  
  52. user in localdev in example-postgresql/build on  master via △ v3.20.3
  53. ❯ valgrind ./example-postgresql-exe
  54. ==607== Memcheck, a memory error detector
  55. ==607== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  56. ==607== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
  57. ==607== Command: ./example-postgresql-exe
  58. ==607==
  59. ==607==
  60. ==607== Process terminating with default action of signal 11 (SIGSEGV)
  61. ==607== Bad permissions for mapped region at address 0x73BC30
  62. ==607== at 0x73BC33: ??? (in /home/user/example-postgresql/build/example-postgresql-exe)
  63. ==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)
  64. ==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)
  65. ==607== by 0x6A5778: oatpp::base::StrBuffer::allocShared(void const*, long, bool) (in /home/user/example-postgresql/build/example-postgresql-exe)
  66. ==607== by 0x5F9108: oatpp::base::StrBuffer::createFromCString(char const*, bool) (in /home/user/example-postgresql/build/example-postgresql-exe)
  67. ==607== by 0x5F9224: oatpp::data::mapping::type::String::String(char const*, bool) (in /home/user/example-postgresql/build/example-postgresql-exe)
  68. ==607== by 0x5FCF8C: oatpp::parser::json::mapping::Serializer::Config::Config() (in /home/user/example-postgresql/build/example-postgresql-exe)
  69. ==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)
  70. ==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)
  71. ==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)
  72. ==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)
  73. ==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)
  74. ==607==
  75. ==607== HEAP SUMMARY:
  76. ==607== in use at exit: 48,662 bytes in 74 blocks
  77. ==607== total heap usage: 89 allocs, 15 frees, 49,636 bytes allocated
  78. ==607==
  79. ==607== LEAK SUMMARY:
  80. ==607== definitely lost: 0 bytes in 0 blocks
  81. ==607== indirectly lost: 0 bytes in 0 blocks
  82. ==607== possibly lost: 0 bytes in 0 blocks
  83. ==607== still reachable: 48,662 bytes in 74 blocks
  84. ==607== of which reachable via heuristic:
  85. ==607== stdstring : 590 bytes in 10 blocks
  86. ==607== suppressed: 0 bytes in 0 blocks
  87. ==607== Rerun with --leak-check=full to see details of leaked memory
  88. ==607==
  89. ==607== For lists of detected and suppressed errors, rerun with: -s
  90. ==607== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
  91. Segmentation fault (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement