Guest User

Untitled

a guest
Nov 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 104.48 KB | None | 0 0
  1. Stack trace (most recent call last):
  2. #18 Object "", at 0xffffffffffffffff, in
  3. #17 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  4. #16 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  5. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  6. | 35: printf("Running main() from gtest_main.cc\n");
  7. | 36: testing::InitGoogleTest(&argc, argv);
  8. | > 37: return RUN_ALL_TESTS();
  9. | 38: }
  10. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  11. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  12. 2241:
  13. 2242: inline int RUN_ALL_TESTS() {
  14. >2243: return ::testing::UnitTest::GetInstance()->Run();
  15. 2244: }
  16. 2245:
  17. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  18. #14 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  19. 4267: }
  20. 4268: #endif // GTEST_HAS_SEH
  21. 4269:
  22. >4270: return internal::HandleExceptionsInMethodIfSupported(
  23. 4271: impl(),
  24. 4272: &internal::UnitTestImpl::RunAllTests,
  25. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  26. #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  27. | 2429: #if GTEST_HAS_EXCEPTIONS
  28. | 2430: try {
  29. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  30. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  31. | 2433: // This exception type can only be thrown by a failed Google
  32. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  33. 2392: }
  34. 2393: #else
  35. 2394: (void)location;
  36. >2395: return (object->*method)();
  37. 2396: #endif // GTEST_HAS_SEH
  38. 2397: }
  39. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  40. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  41. | 4657: test_index++) {
  42. | >4658: GetMutableTestCase(test_index)->Run();
  43. | 4659: }
  44. | 4660: }
  45. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  46. 2747: // Runs every test in this TestCase.
  47. 2748: void TestCase::Run() {
  48. >2749: if (!should_run_) return;
  49. 2750:
  50. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  51. 2752: impl->set_current_test_case(this);
  52. #11 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  53. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  54. | 2762: for (int i = 0; i < total_test_count(); i++) {
  55. | >2763: GetMutableTestInfo(i)->Run();
  56. | 2764: }
  57. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  58. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  59. 2617: // Creates the test object, runs it, records its result, and then
  60. 2618: // deletes it.
  61. 2619: void TestInfo::Run() {
  62. >2620: if (!should_run_) return;
  63. 2621:
  64. 2622: // Tells UnitTest where to store test result.
  65. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  66. #10 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  67. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  68. | 2644: // exception handling code.
  69. | >2645: test->Run();
  70. | 2646: }
  71. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  72. 2457: // Runs the test and updates the test result.
  73. 2458: void Test::Run() {
  74. >2459: if (!HasSameFixtureClass()) return;
  75. 2460:
  76. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  77. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  78. #9 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  79. 2464: // We will run the test only if SetUp() was successful.
  80. 2465: if (!HasFatalFailure()) {
  81. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  82. >2467: internal::HandleExceptionsInMethodIfSupported(
  83. 2468: this, &Test::TestBody, "the test body");
  84. 2469: }
  85. #8 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  86. | 2429: #if GTEST_HAS_EXCEPTIONS
  87. | 2430: try {
  88. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  89. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  90. | 2433: // This exception type can only be thrown by a failed Google
  91. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  92. 2392: }
  93. 2393: #else
  94. 2394: (void)location;
  95. >2395: return (object->*method)();
  96. 2396: #endif // GTEST_HAS_SEH
  97. 2397: }
  98. #7 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  99. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  100. 167: test_msgs__msg__Primitives__fini(&msg);
  101. 168: });
  102. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  103. 170: ret = rcl_take(&subscription, &msg, nullptr);
  104. 171: });
  105. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  106. #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  107. 248: // Call rmw_take_with_info.
  108. 249: bool taken = false;
  109. 250: rmw_ret_t ret =
  110. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  111. 252: if (ret != RMW_RET_OK) {
  112. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  113. 254: if (RMW_RET_BAD_ALLOC == ret) {
  114. #5 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  115. 212: return RMW_RET_ERROR;
  116. 213: }
  117. 214: DDS_InstanceHandle_t sending_publication_handle;
  118. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  119. 216: if (ret != RMW_RET_OK) {
  120. 217: // Error string is already set.
  121. 218: return RMW_RET_ERROR;
  122. #4 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 177, in _take
  123. 175: // fetch the incoming message as cdr stream
  124. 176: ConnextStaticCDRStream cdr_stream;
  125. > 177: if (!take(
  126. 178: topic_reader, subscriber_info->ignore_local_publications, &cdr_stream, taken,
  127. 179: sending_publication_handle))
  128. 180: {
  129. #3 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 110, in take(DDSDataReader*, bool, ConnextStaticCDRStream*, bool*, void*) [clone .constprop.0]
  130. 107: cdr_stream->buffer_length = dds_messages[0].serialized_data.length();
  131. 108: // TODO(karsten1987): This malloc has to go!
  132. 109: cdr_stream->buffer =
  133. > 110: reinterpret_cast<char *>(malloc(cdr_stream->buffer_length * sizeof(char)));
  134. 111:
  135. 112: if (cdr_stream->buffer_length > (std::numeric_limits<unsigned int>::max)()) {
  136. 113: RMW_SET_ERROR_MSG("cdr_stream->buffer_length unexpectedly larger than max unsiged int value");
  137. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 59, in unix_replacement_malloc
  138. 56: });
  139. 57:
  140. 58: using osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original;
  141. > 59: return custom_malloc_with_original(size, original_malloc, __func__, false);
  142. 60: }
  143. 61:
  144. 62: void *
  145. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 94, in osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original(unsigned long, void* (*)(unsigned long), char const*, bool)
  146. | 92: {
  147. | 93: try {
  148. | > 94: return custom_malloc_with_original_except(
  149. | 95: size,
  150. | 96: original_malloc,
  151. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 80, in osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original(unsigned long, void* (*)(unsigned long), char const*, bool)
  152. 77: " malloc (%s) %" PRIu64 " -> %p\n",
  153. 78: malloc_expected() ? " expected" : "not expected", fw_size, memory);
  154. 79: if (factory.should_print_backtrace()) {
  155. > 80: print_backtrace();
  156. 81: }
  157. 82: }
  158. 83: return memory;
  159. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  160. 40: {
  161. 41: #if !defined(_WIN32)
  162. 42: backward::StackTrace st;
  163. > 43: st.load_here(MaxStackDepth);
  164. 44: backward::Printer p;
  165. 45: p.print(st, out);
  166. 46: #else
  167. Stack trace (most recent call last):
  168. #20 Object "", at 0xffffffffffffffff, in
  169. #19 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  170. #18 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  171. #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  172. | 35: printf("Running main() from gtest_main.cc\n");
  173. | 36: testing::InitGoogleTest(&argc, argv);
  174. | > 37: return RUN_ALL_TESTS();
  175. | 38: }
  176. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  177. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  178. 2241:
  179. 2242: inline int RUN_ALL_TESTS() {
  180. >2243: return ::testing::UnitTest::GetInstance()->Run();
  181. 2244: }
  182. 2245:
  183. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  184. #16 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  185. 4267: }
  186. 4268: #endif // GTEST_HAS_SEH
  187. 4269:
  188. >4270: return internal::HandleExceptionsInMethodIfSupported(
  189. 4271: impl(),
  190. 4272: &internal::UnitTestImpl::RunAllTests,
  191. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  192. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  193. | 2429: #if GTEST_HAS_EXCEPTIONS
  194. | 2430: try {
  195. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  196. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  197. | 2433: // This exception type can only be thrown by a failed Google
  198. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  199. 2392: }
  200. 2393: #else
  201. 2394: (void)location;
  202. >2395: return (object->*method)();
  203. 2396: #endif // GTEST_HAS_SEH
  204. 2397: }
  205. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  206. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  207. | 4657: test_index++) {
  208. | >4658: GetMutableTestCase(test_index)->Run();
  209. | 4659: }
  210. | 4660: }
  211. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  212. 2747: // Runs every test in this TestCase.
  213. 2748: void TestCase::Run() {
  214. >2749: if (!should_run_) return;
  215. 2750:
  216. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  217. 2752: impl->set_current_test_case(this);
  218. #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  219. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  220. | 2762: for (int i = 0; i < total_test_count(); i++) {
  221. | >2763: GetMutableTestInfo(i)->Run();
  222. | 2764: }
  223. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  224. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  225. 2617: // Creates the test object, runs it, records its result, and then
  226. 2618: // deletes it.
  227. 2619: void TestInfo::Run() {
  228. >2620: if (!should_run_) return;
  229. 2621:
  230. 2622: // Tells UnitTest where to store test result.
  231. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  232. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  233. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  234. | 2644: // exception handling code.
  235. | >2645: test->Run();
  236. | 2646: }
  237. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  238. 2457: // Runs the test and updates the test result.
  239. 2458: void Test::Run() {
  240. >2459: if (!HasSameFixtureClass()) return;
  241. 2460:
  242. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  243. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  244. #11 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  245. 2464: // We will run the test only if SetUp() was successful.
  246. 2465: if (!HasFatalFailure()) {
  247. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  248. >2467: internal::HandleExceptionsInMethodIfSupported(
  249. 2468: this, &Test::TestBody, "the test body");
  250. 2469: }
  251. #10 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  252. | 2429: #if GTEST_HAS_EXCEPTIONS
  253. | 2430: try {
  254. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  255. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  256. | 2433: // This exception type can only be thrown by a failed Google
  257. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  258. 2392: }
  259. 2393: #else
  260. 2394: (void)location;
  261. >2395: return (object->*method)();
  262. 2396: #endif // GTEST_HAS_SEH
  263. 2397: }
  264. #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  265. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  266. 167: test_msgs__msg__Primitives__fini(&msg);
  267. 168: });
  268. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  269. 170: ret = rcl_take(&subscription, &msg, nullptr);
  270. 171: });
  271. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  272. #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  273. 248: // Call rmw_take_with_info.
  274. 249: bool taken = false;
  275. 250: rmw_ret_t ret =
  276. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  277. 252: if (ret != RMW_RET_OK) {
  278. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  279. 254: if (RMW_RET_BAD_ALLOC == ret) {
  280. #7 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  281. 212: return RMW_RET_ERROR;
  282. 213: }
  283. 214: DDS_InstanceHandle_t sending_publication_handle;
  284. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  285. 216: if (ret != RMW_RET_OK) {
  286. 217: // Error string is already set.
  287. 218: return RMW_RET_ERROR;
  288. #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  289. 182: return RMW_RET_ERROR;
  290. 183: }
  291. 184: // convert the cdr stream to the message
  292. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  293. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  294. 187: return RMW_RET_ERROR;
  295. 188: }
  296. #5 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 306, in to_message
  297. 303: }
  298. 304:
  299. 305: test_msgs::msg::dds_::Primitives_ * dds_message =
  300. > 306: test_msgs::msg::dds_::Primitives_TypeSupport::create_data();
  301. 307: if (cdr_stream->buffer_length > (std::numeric_limits<unsigned int>::max)()) {
  302. 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
  303. 309: return false;
  304. #4 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 76, in test_msgs::msg::dds_::Primitives_PluginSupport_create_data_w_params(DDS_TypeAllocationParams_t const*)
  305. 73: {
  306. 74: Primitives_ *sample = NULL;
  307. 75:
  308. > 76: sample = new (std::nothrow) Primitives_ ;
  309. 77: if (sample == NULL) {
  310. 78: return NULL;
  311. 79: }
  312. #3 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fd2b01cc20c, in operator new(unsigned long, std::nothrow_t const&)
  313. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 59, in unix_replacement_malloc
  314. 56: });
  315. 57:
  316. 58: using osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original;
  317. > 59: return custom_malloc_with_original(size, original_malloc, __func__, false);
  318. 60: }
  319. 61:
  320. 62: void *
  321. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 94, in osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original(unsigned long, void* (*)(unsigned long), char const*, bool)
  322. | 92: {
  323. | 93: try {
  324. | > 94: return custom_malloc_with_original_except(
  325. | 95: size,
  326. | 96: original_malloc,
  327. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 80, in osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original(unsigned long, void* (*)(unsigned long), char const*, bool)
  328. 77: " malloc (%s) %" PRIu64 " -> %p\n",
  329. 78: malloc_expected() ? " expected" : "not expected", fw_size, memory);
  330. 79: if (factory.should_print_backtrace()) {
  331. > 80: print_backtrace();
  332. 81: }
  333. 82: }
  334. 83: return memory;
  335. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  336. 40: {
  337. 41: #if !defined(_WIN32)
  338. 42: backward::StackTrace st;
  339. > 43: st.load_here(MaxStackDepth);
  340. 44: backward::Printer p;
  341. 45: p.print(st, out);
  342. 46: #else
  343. Stack trace (most recent call last):
  344. #22 Object "", at 0xffffffffffffffff, in
  345. #21 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  346. #20 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  347. #19 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  348. | 35: printf("Running main() from gtest_main.cc\n");
  349. | 36: testing::InitGoogleTest(&argc, argv);
  350. | > 37: return RUN_ALL_TESTS();
  351. | 38: }
  352. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  353. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  354. 2241:
  355. 2242: inline int RUN_ALL_TESTS() {
  356. >2243: return ::testing::UnitTest::GetInstance()->Run();
  357. 2244: }
  358. 2245:
  359. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  360. #18 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  361. 4267: }
  362. 4268: #endif // GTEST_HAS_SEH
  363. 4269:
  364. >4270: return internal::HandleExceptionsInMethodIfSupported(
  365. 4271: impl(),
  366. 4272: &internal::UnitTestImpl::RunAllTests,
  367. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  368. #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  369. | 2429: #if GTEST_HAS_EXCEPTIONS
  370. | 2430: try {
  371. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  372. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  373. | 2433: // This exception type can only be thrown by a failed Google
  374. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  375. 2392: }
  376. 2393: #else
  377. 2394: (void)location;
  378. >2395: return (object->*method)();
  379. 2396: #endif // GTEST_HAS_SEH
  380. 2397: }
  381. #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  382. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  383. | 4657: test_index++) {
  384. | >4658: GetMutableTestCase(test_index)->Run();
  385. | 4659: }
  386. | 4660: }
  387. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  388. 2747: // Runs every test in this TestCase.
  389. 2748: void TestCase::Run() {
  390. >2749: if (!should_run_) return;
  391. 2750:
  392. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  393. 2752: impl->set_current_test_case(this);
  394. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  395. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  396. | 2762: for (int i = 0; i < total_test_count(); i++) {
  397. | >2763: GetMutableTestInfo(i)->Run();
  398. | 2764: }
  399. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  400. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  401. 2617: // Creates the test object, runs it, records its result, and then
  402. 2618: // deletes it.
  403. 2619: void TestInfo::Run() {
  404. >2620: if (!should_run_) return;
  405. 2621:
  406. 2622: // Tells UnitTest where to store test result.
  407. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  408. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  409. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  410. | 2644: // exception handling code.
  411. | >2645: test->Run();
  412. | 2646: }
  413. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  414. 2457: // Runs the test and updates the test result.
  415. 2458: void Test::Run() {
  416. >2459: if (!HasSameFixtureClass()) return;
  417. 2460:
  418. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  419. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  420. #13 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  421. 2464: // We will run the test only if SetUp() was successful.
  422. 2465: if (!HasFatalFailure()) {
  423. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  424. >2467: internal::HandleExceptionsInMethodIfSupported(
  425. 2468: this, &Test::TestBody, "the test body");
  426. 2469: }
  427. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  428. | 2429: #if GTEST_HAS_EXCEPTIONS
  429. | 2430: try {
  430. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  431. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  432. | 2433: // This exception type can only be thrown by a failed Google
  433. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  434. 2392: }
  435. 2393: #else
  436. 2394: (void)location;
  437. >2395: return (object->*method)();
  438. 2396: #endif // GTEST_HAS_SEH
  439. 2397: }
  440. #11 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  441. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  442. 167: test_msgs__msg__Primitives__fini(&msg);
  443. 168: });
  444. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  445. 170: ret = rcl_take(&subscription, &msg, nullptr);
  446. 171: });
  447. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  448. #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  449. 248: // Call rmw_take_with_info.
  450. 249: bool taken = false;
  451. 250: rmw_ret_t ret =
  452. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  453. 252: if (ret != RMW_RET_OK) {
  454. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  455. 254: if (RMW_RET_BAD_ALLOC == ret) {
  456. #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  457. 212: return RMW_RET_ERROR;
  458. 213: }
  459. 214: DDS_InstanceHandle_t sending_publication_handle;
  460. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  461. 216: if (ret != RMW_RET_OK) {
  462. 217: // Error string is already set.
  463. 218: return RMW_RET_ERROR;
  464. #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  465. 182: return RMW_RET_ERROR;
  466. 183: }
  467. 184: // convert the cdr stream to the message
  468. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  469. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  470. 187: return RMW_RET_ERROR;
  471. 188: }
  472. #7 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 306, in to_message
  473. 303: }
  474. 304:
  475. 305: test_msgs::msg::dds_::Primitives_ * dds_message =
  476. > 306: test_msgs::msg::dds_::Primitives_TypeSupport::create_data();
  477. 307: if (cdr_stream->buffer_length > (std::numeric_limits<unsigned int>::max)()) {
  478. 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
  479. 309: return false;
  480. #6 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 81, in test_msgs::msg::dds_::Primitives_PluginSupport_create_data_w_params(DDS_TypeAllocationParams_t const*)
  481. 78: return NULL;
  482. 79: }
  483. 80:
  484. > 81: if (!test_msgs::msg::dds_::Primitives__initialize_w_params(sample,alloc_params)) {
  485. 82: delete sample;
  486. 83: sample=NULL;
  487. 84: }
  488. #5 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_.cxx", line 426, in test_msgs::msg::dds_::Primitives__initialize_w_params(test_msgs::msg::dds_::Primitives_*, DDS_TypeAllocationParams_t const*)
  489. 423: }
  490. 424:
  491. 425: if (allocParams->allocate_memory){
  492. > 426: sample->string_value_= DDS_String_alloc ((0));
  493. 427: if (sample->string_value_ == NULL) {
  494. 428: return RTI_FALSE;
  495. 429: }
  496. #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddsc.so", at 0x7fd2b1d6755e, in DDS_String_alloc
  497. #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19785f5, in RTIOsapiHeap_reallocateMemoryInternal
  498. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 93, in unix_replacement_calloc
  499. 90: });
  500. 91:
  501. 92: using osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original;
  502. > 93: return custom_calloc_with_original(count, size, original_calloc, __func__, false);
  503. 94: }
  504. 95:
  505. 96: void
  506. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 239, in osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original(unsigned long, unsigned long, void* (*)(unsigned long, unsigned long), char const*, bool)
  507. | 237: {
  508. | 238: try {
  509. | > 239: return custom_calloc_with_original_except(
  510. | 240: count,
  511. | 241: size,
  512. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 224, in osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original(unsigned long, unsigned long, void* (*)(unsigned long, unsigned long), char const*, bool)
  513. 221: " calloc (%s) %" PRIu64 " (%" PRIu64 " * %" PRIu64 ") -> %p\n",
  514. 222: calloc_expected() ? " expected" : "not expected", fw_total, fw_count, fw_size, memory);
  515. 223: if (factory.should_print_backtrace()) {
  516. > 224: print_backtrace();
  517. 225: }
  518. 226: }
  519. 227: return memory;
  520. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  521. 40: {
  522. 41: #if !defined(_WIN32)
  523. 42: backward::StackTrace st;
  524. > 43: st.load_here(MaxStackDepth);
  525. 44: backward::Printer p;
  526. 45: p.print(st, out);
  527. 46: #else
  528. Stack trace (most recent call last):
  529. #22 Object "", at 0xffffffffffffffff, in
  530. #21 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  531. #20 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  532. #19 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  533. | 35: printf("Running main() from gtest_main.cc\n");
  534. | 36: testing::InitGoogleTest(&argc, argv);
  535. | > 37: return RUN_ALL_TESTS();
  536. | 38: }
  537. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  538. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  539. 2241:
  540. 2242: inline int RUN_ALL_TESTS() {
  541. >2243: return ::testing::UnitTest::GetInstance()->Run();
  542. 2244: }
  543. 2245:
  544. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  545. #18 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  546. 4267: }
  547. 4268: #endif // GTEST_HAS_SEH
  548. 4269:
  549. >4270: return internal::HandleExceptionsInMethodIfSupported(
  550. 4271: impl(),
  551. 4272: &internal::UnitTestImpl::RunAllTests,
  552. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  553. #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  554. | 2429: #if GTEST_HAS_EXCEPTIONS
  555. | 2430: try {
  556. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  557. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  558. | 2433: // This exception type can only be thrown by a failed Google
  559. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  560. 2392: }
  561. 2393: #else
  562. 2394: (void)location;
  563. >2395: return (object->*method)();
  564. 2396: #endif // GTEST_HAS_SEH
  565. 2397: }
  566. #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  567. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  568. | 4657: test_index++) {
  569. | >4658: GetMutableTestCase(test_index)->Run();
  570. | 4659: }
  571. | 4660: }
  572. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  573. 2747: // Runs every test in this TestCase.
  574. 2748: void TestCase::Run() {
  575. >2749: if (!should_run_) return;
  576. 2750:
  577. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  578. 2752: impl->set_current_test_case(this);
  579. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  580. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  581. | 2762: for (int i = 0; i < total_test_count(); i++) {
  582. | >2763: GetMutableTestInfo(i)->Run();
  583. | 2764: }
  584. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  585. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  586. 2617: // Creates the test object, runs it, records its result, and then
  587. 2618: // deletes it.
  588. 2619: void TestInfo::Run() {
  589. >2620: if (!should_run_) return;
  590. 2621:
  591. 2622: // Tells UnitTest where to store test result.
  592. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  593. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  594. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  595. | 2644: // exception handling code.
  596. | >2645: test->Run();
  597. | 2646: }
  598. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  599. 2457: // Runs the test and updates the test result.
  600. 2458: void Test::Run() {
  601. >2459: if (!HasSameFixtureClass()) return;
  602. 2460:
  603. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  604. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  605. #13 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  606. 2464: // We will run the test only if SetUp() was successful.
  607. 2465: if (!HasFatalFailure()) {
  608. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  609. >2467: internal::HandleExceptionsInMethodIfSupported(
  610. 2468: this, &Test::TestBody, "the test body");
  611. 2469: }
  612. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  613. | 2429: #if GTEST_HAS_EXCEPTIONS
  614. | 2430: try {
  615. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  616. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  617. | 2433: // This exception type can only be thrown by a failed Google
  618. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  619. 2392: }
  620. 2393: #else
  621. 2394: (void)location;
  622. >2395: return (object->*method)();
  623. 2396: #endif // GTEST_HAS_SEH
  624. 2397: }
  625. #11 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  626. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  627. 167: test_msgs__msg__Primitives__fini(&msg);
  628. 168: });
  629. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  630. 170: ret = rcl_take(&subscription, &msg, nullptr);
  631. 171: });
  632. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  633. #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  634. 248: // Call rmw_take_with_info.
  635. 249: bool taken = false;
  636. 250: rmw_ret_t ret =
  637. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  638. 252: if (ret != RMW_RET_OK) {
  639. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  640. 254: if (RMW_RET_BAD_ALLOC == ret) {
  641. #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  642. 212: return RMW_RET_ERROR;
  643. 213: }
  644. 214: DDS_InstanceHandle_t sending_publication_handle;
  645. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  646. 216: if (ret != RMW_RET_OK) {
  647. 217: // Error string is already set.
  648. 218: return RMW_RET_ERROR;
  649. #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  650. 182: return RMW_RET_ERROR;
  651. 183: }
  652. 184: // convert the cdr stream to the message
  653. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  654. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  655. 187: return RMW_RET_ERROR;
  656. 188: }
  657. #7 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 311, in to_message
  658. 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
  659. 309: return false;
  660. 310: }
  661. > 311: if (Primitives_Plugin_deserialize_from_cdr_buffer(
  662. 312: dds_message,
  663. 313: cdr_stream->buffer,
  664. 314: static_cast<unsigned int>(cdr_stream->buffer_length)) != RTI_TRUE)
  665. #6 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 608, in test_msgs::msg::dds_::Primitives_Plugin_deserialize_from_cdr_buffer(test_msgs::msg::dds_::Primitives_*, char const*, unsigned int)
  666. 605: RTICdrStream_set(&stream, (char *)buffer, length);
  667. 606:
  668. 607: Primitives__finalize_optional_members(sample, RTI_TRUE);
  669. > 608: return Primitives_Plugin_deserialize_sample(
  670. 609: NULL, sample,
  671. 610: &stream, RTI_TRUE, RTI_TRUE,
  672. 611: NULL);
  673. #5 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 526, in test_msgs::msg::dds_::Primitives_Plugin_deserialize_sample(void*, test_msgs::msg::dds_::Primitives_*, RTICdrStream*, int, int, void*)
  674. 523: stream, &sample->uint64_value_)) {
  675. 524: goto fin;
  676. 525: }
  677. > 526: if (!RTICdrStream_deserializeStringEx(
  678. 527: stream,&sample->string_value_, (RTI_INT32_MAX-1) + 1,RTI_TRUE)) {
  679. 528: goto fin;
  680. 529: }
  681. #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b18af965, in RTICdrStream_deserializeStringEx
  682. #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19776f6, in RTIOsapiHeap_freeMemoryInternal
  683. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 113, in unix_replacement_free
  684. 110: });
  685. 111:
  686. 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
  687. > 113: custom_free_with_original(memory, original_free, __func__, false);
  688. 114: }
  689. 115:
  690. 116: } // extern "C"
  691. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 307, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  692. | 305: {
  693. | 306: try {
  694. | > 307: custom_free_with_original_except(
  695. | 308: memory,
  696. | 309: original_free,
  697. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 295, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  698. 292: free_expected() ? " expected" : "not expected", memory);
  699. 293: }
  700. 294: if (factory.should_print_backtrace()) {
  701. > 295: print_backtrace();
  702. 296: }
  703. 297: }
  704. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  705. 40: {
  706. 41: #if !defined(_WIN32)
  707. 42: backward::StackTrace st;
  708. > 43: st.load_here(MaxStackDepth);
  709. 44: backward::Printer p;
  710. 45: p.print(st, out);
  711. 46: #else
  712. Stack trace (most recent call last):
  713. #22 Object "", at 0xffffffffffffffff, in
  714. #21 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  715. #20 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  716. #19 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  717. | 35: printf("Running main() from gtest_main.cc\n");
  718. | 36: testing::InitGoogleTest(&argc, argv);
  719. | > 37: return RUN_ALL_TESTS();
  720. | 38: }
  721. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  722. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  723. 2241:
  724. 2242: inline int RUN_ALL_TESTS() {
  725. >2243: return ::testing::UnitTest::GetInstance()->Run();
  726. 2244: }
  727. 2245:
  728. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  729. #18 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  730. 4267: }
  731. 4268: #endif // GTEST_HAS_SEH
  732. 4269:
  733. >4270: return internal::HandleExceptionsInMethodIfSupported(
  734. 4271: impl(),
  735. 4272: &internal::UnitTestImpl::RunAllTests,
  736. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  737. #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  738. | 2429: #if GTEST_HAS_EXCEPTIONS
  739. | 2430: try {
  740. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  741. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  742. | 2433: // This exception type can only be thrown by a failed Google
  743. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  744. 2392: }
  745. 2393: #else
  746. 2394: (void)location;
  747. >2395: return (object->*method)();
  748. 2396: #endif // GTEST_HAS_SEH
  749. 2397: }
  750. #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  751. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  752. | 4657: test_index++) {
  753. | >4658: GetMutableTestCase(test_index)->Run();
  754. | 4659: }
  755. | 4660: }
  756. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  757. 2747: // Runs every test in this TestCase.
  758. 2748: void TestCase::Run() {
  759. >2749: if (!should_run_) return;
  760. 2750:
  761. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  762. 2752: impl->set_current_test_case(this);
  763. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  764. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  765. | 2762: for (int i = 0; i < total_test_count(); i++) {
  766. | >2763: GetMutableTestInfo(i)->Run();
  767. | 2764: }
  768. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  769. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  770. 2617: // Creates the test object, runs it, records its result, and then
  771. 2618: // deletes it.
  772. 2619: void TestInfo::Run() {
  773. >2620: if (!should_run_) return;
  774. 2621:
  775. 2622: // Tells UnitTest where to store test result.
  776. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  777. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  778. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  779. | 2644: // exception handling code.
  780. | >2645: test->Run();
  781. | 2646: }
  782. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  783. 2457: // Runs the test and updates the test result.
  784. 2458: void Test::Run() {
  785. >2459: if (!HasSameFixtureClass()) return;
  786. 2460:
  787. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  788. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  789. #13 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  790. 2464: // We will run the test only if SetUp() was successful.
  791. 2465: if (!HasFatalFailure()) {
  792. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  793. >2467: internal::HandleExceptionsInMethodIfSupported(
  794. 2468: this, &Test::TestBody, "the test body");
  795. 2469: }
  796. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  797. | 2429: #if GTEST_HAS_EXCEPTIONS
  798. | 2430: try {
  799. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  800. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  801. | 2433: // This exception type can only be thrown by a failed Google
  802. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  803. 2392: }
  804. 2393: #else
  805. 2394: (void)location;
  806. >2395: return (object->*method)();
  807. 2396: #endif // GTEST_HAS_SEH
  808. 2397: }
  809. #11 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  810. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  811. 167: test_msgs__msg__Primitives__fini(&msg);
  812. 168: });
  813. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  814. 170: ret = rcl_take(&subscription, &msg, nullptr);
  815. 171: });
  816. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  817. #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  818. 248: // Call rmw_take_with_info.
  819. 249: bool taken = false;
  820. 250: rmw_ret_t ret =
  821. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  822. 252: if (ret != RMW_RET_OK) {
  823. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  824. 254: if (RMW_RET_BAD_ALLOC == ret) {
  825. #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  826. 212: return RMW_RET_ERROR;
  827. 213: }
  828. 214: DDS_InstanceHandle_t sending_publication_handle;
  829. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  830. 216: if (ret != RMW_RET_OK) {
  831. 217: // Error string is already set.
  832. 218: return RMW_RET_ERROR;
  833. #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  834. 182: return RMW_RET_ERROR;
  835. 183: }
  836. 184: // convert the cdr stream to the message
  837. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  838. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  839. 187: return RMW_RET_ERROR;
  840. 188: }
  841. #7 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 311, in to_message
  842. 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
  843. 309: return false;
  844. 310: }
  845. > 311: if (Primitives_Plugin_deserialize_from_cdr_buffer(
  846. 312: dds_message,
  847. 313: cdr_stream->buffer,
  848. 314: static_cast<unsigned int>(cdr_stream->buffer_length)) != RTI_TRUE)
  849. #6 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 608, in test_msgs::msg::dds_::Primitives_Plugin_deserialize_from_cdr_buffer(test_msgs::msg::dds_::Primitives_*, char const*, unsigned int)
  850. 605: RTICdrStream_set(&stream, (char *)buffer, length);
  851. 606:
  852. 607: Primitives__finalize_optional_members(sample, RTI_TRUE);
  853. > 608: return Primitives_Plugin_deserialize_sample(
  854. 609: NULL, sample,
  855. 610: &stream, RTI_TRUE, RTI_TRUE,
  856. 611: NULL);
  857. #5 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 526, in test_msgs::msg::dds_::Primitives_Plugin_deserialize_sample(void*, test_msgs::msg::dds_::Primitives_*, RTICdrStream*, int, int, void*)
  858. 523: stream, &sample->uint64_value_)) {
  859. 524: goto fin;
  860. 525: }
  861. > 526: if (!RTICdrStream_deserializeStringEx(
  862. 527: stream,&sample->string_value_, (RTI_INT32_MAX-1) + 1,RTI_TRUE)) {
  863. 528: goto fin;
  864. 529: }
  865. #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b18af9b2, in RTICdrStream_deserializeStringEx
  866. #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19785f5, in RTIOsapiHeap_reallocateMemoryInternal
  867. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 93, in unix_replacement_calloc
  868. 90: });
  869. 91:
  870. 92: using osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original;
  871. > 93: return custom_calloc_with_original(count, size, original_calloc, __func__, false);
  872. 94: }
  873. 95:
  874. 96: void
  875. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 239, in osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original(unsigned long, unsigned long, void* (*)(unsigned long, unsigned long), char const*, bool)
  876. | 237: {
  877. | 238: try {
  878. | > 239: return custom_calloc_with_original_except(
  879. | 240: count,
  880. | 241: size,
  881. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 224, in osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original(unsigned long, unsigned long, void* (*)(unsigned long, unsigned long), char const*, bool)
  882. 221: " calloc (%s) %" PRIu64 " (%" PRIu64 " * %" PRIu64 ") -> %p\n",
  883. 222: calloc_expected() ? " expected" : "not expected", fw_total, fw_count, fw_size, memory);
  884. 223: if (factory.should_print_backtrace()) {
  885. > 224: print_backtrace();
  886. 225: }
  887. 226: }
  888. 227: return memory;
  889. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  890. 40: {
  891. 41: #if !defined(_WIN32)
  892. 42: backward::StackTrace st;
  893. > 43: st.load_here(MaxStackDepth);
  894. 44: backward::Printer p;
  895. 45: p.print(st, out);
  896. 46: #else
  897. Stack trace (most recent call last):
  898. #20 Object "", at 0xffffffffffffffff, in
  899. #19 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  900. #18 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  901. #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  902. | 35: printf("Running main() from gtest_main.cc\n");
  903. | 36: testing::InitGoogleTest(&argc, argv);
  904. | > 37: return RUN_ALL_TESTS();
  905. | 38: }
  906. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  907. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  908. 2241:
  909. 2242: inline int RUN_ALL_TESTS() {
  910. >2243: return ::testing::UnitTest::GetInstance()->Run();
  911. 2244: }
  912. 2245:
  913. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  914. #16 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  915. 4267: }
  916. 4268: #endif // GTEST_HAS_SEH
  917. 4269:
  918. >4270: return internal::HandleExceptionsInMethodIfSupported(
  919. 4271: impl(),
  920. 4272: &internal::UnitTestImpl::RunAllTests,
  921. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  922. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  923. | 2429: #if GTEST_HAS_EXCEPTIONS
  924. | 2430: try {
  925. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  926. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  927. | 2433: // This exception type can only be thrown by a failed Google
  928. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  929. 2392: }
  930. 2393: #else
  931. 2394: (void)location;
  932. >2395: return (object->*method)();
  933. 2396: #endif // GTEST_HAS_SEH
  934. 2397: }
  935. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  936. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  937. | 4657: test_index++) {
  938. | >4658: GetMutableTestCase(test_index)->Run();
  939. | 4659: }
  940. | 4660: }
  941. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  942. 2747: // Runs every test in this TestCase.
  943. 2748: void TestCase::Run() {
  944. >2749: if (!should_run_) return;
  945. 2750:
  946. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  947. 2752: impl->set_current_test_case(this);
  948. #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  949. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  950. | 2762: for (int i = 0; i < total_test_count(); i++) {
  951. | >2763: GetMutableTestInfo(i)->Run();
  952. | 2764: }
  953. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  954. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  955. 2617: // Creates the test object, runs it, records its result, and then
  956. 2618: // deletes it.
  957. 2619: void TestInfo::Run() {
  958. >2620: if (!should_run_) return;
  959. 2621:
  960. 2622: // Tells UnitTest where to store test result.
  961. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  962. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  963. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  964. | 2644: // exception handling code.
  965. | >2645: test->Run();
  966. | 2646: }
  967. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  968. 2457: // Runs the test and updates the test result.
  969. 2458: void Test::Run() {
  970. >2459: if (!HasSameFixtureClass()) return;
  971. 2460:
  972. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  973. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  974. #11 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  975. 2464: // We will run the test only if SetUp() was successful.
  976. 2465: if (!HasFatalFailure()) {
  977. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  978. >2467: internal::HandleExceptionsInMethodIfSupported(
  979. 2468: this, &Test::TestBody, "the test body");
  980. 2469: }
  981. #10 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  982. | 2429: #if GTEST_HAS_EXCEPTIONS
  983. | 2430: try {
  984. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  985. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  986. | 2433: // This exception type can only be thrown by a failed Google
  987. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  988. 2392: }
  989. 2393: #else
  990. 2394: (void)location;
  991. >2395: return (object->*method)();
  992. 2396: #endif // GTEST_HAS_SEH
  993. 2397: }
  994. #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  995. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  996. 167: test_msgs__msg__Primitives__fini(&msg);
  997. 168: });
  998. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  999. 170: ret = rcl_take(&subscription, &msg, nullptr);
  1000. 171: });
  1001. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  1002. #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  1003. 248: // Call rmw_take_with_info.
  1004. 249: bool taken = false;
  1005. 250: rmw_ret_t ret =
  1006. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  1007. 252: if (ret != RMW_RET_OK) {
  1008. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  1009. 254: if (RMW_RET_BAD_ALLOC == ret) {
  1010. #7 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  1011. 212: return RMW_RET_ERROR;
  1012. 213: }
  1013. 214: DDS_InstanceHandle_t sending_publication_handle;
  1014. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  1015. 216: if (ret != RMW_RET_OK) {
  1016. 217: // Error string is already set.
  1017. 218: return RMW_RET_ERROR;
  1018. #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  1019. 182: return RMW_RET_ERROR;
  1020. 183: }
  1021. 184: // convert the cdr stream to the message
  1022. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  1023. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  1024. 187: return RMW_RET_ERROR;
  1025. 188: }
  1026. #5 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 319, in to_message
  1027. 316: fprintf(stderr, "deserialize from cdr buffer failed\n");
  1028. 317: return false;
  1029. 318: }
  1030. > 319: bool success = convert_dds_to_ros(dds_message, untyped_ros_message);
  1031. 320: if (test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(dds_message) != DDS_RETCODE_OK) {
  1032. 321: return false;
  1033. 322: }
  1034. #4 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 233, in convert_dds_to_ros
  1035. 230: if (!ros_message->string_value.data) {
  1036. 231: rosidl_generator_c__String__init(&ros_message->string_value);
  1037. 232: }
  1038. > 233: bool succeeded = rosidl_generator_c__String__assign(
  1039. 234: &ros_message->string_value,
  1040. 235: dds_message->string_value_);
  1041. 236: if (!succeeded) {
  1042. #3 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rosidl/rosidl_generator_c/src/string_functions.c", line 85, in rosidl_generator_c__String__assignn
  1043. 82: if (n == SIZE_MAX) {
  1044. 83: return false;
  1045. 84: }
  1046. > 85: char * data = realloc(str->data, n + 1);
  1047. 86: if (!data) {
  1048. 87: return false;
  1049. 88: }
  1050. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 76, in unix_replacement_realloc
  1051. 73: });
  1052. 74:
  1053. 75: using osrf_testing_tools_cpp::memory_tools::custom_realloc_with_original;
  1054. > 76: return custom_realloc_with_original(memory_in, size, original_realloc, __func__, false);
  1055. 77: }
  1056. 78:
  1057. 79: void *
  1058. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 166, in osrf_testing_tools_cpp::memory_tools::custom_realloc_with_original(void*, unsigned long, void* (*)(void*, unsigned long), char const*, bool)
  1059. | 164: {
  1060. | 165: try {
  1061. | > 166: return custom_realloc_with_original_except(
  1062. | 167: memory_in,
  1063. | 168: size,
  1064. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 151, in osrf_testing_tools_cpp::memory_tools::custom_realloc_with_original(void*, unsigned long, void* (*)(void*, unsigned long), char const*, bool)
  1065. 148: " realloc (%s) %p %" PRIu64 " -> %p\n",
  1066. 149: realloc_expected() ? " expected" : "not expected", memory_in, fw_size, memory);
  1067. 150: if (factory.should_print_backtrace()) {
  1068. > 151: print_backtrace();
  1069. 152: }
  1070. 153: }
  1071. 154: return memory;
  1072. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  1073. 40: {
  1074. 41: #if !defined(_WIN32)
  1075. 42: backward::StackTrace st;
  1076. > 43: st.load_here(MaxStackDepth);
  1077. 44: backward::Printer p;
  1078. 45: p.print(st, out);
  1079. 46: #else
  1080. Stack trace (most recent call last):
  1081. #23 Object "", at 0xffffffffffffffff, in
  1082. #22 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  1083. #21 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  1084. #20 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  1085. | 35: printf("Running main() from gtest_main.cc\n");
  1086. | 36: testing::InitGoogleTest(&argc, argv);
  1087. | > 37: return RUN_ALL_TESTS();
  1088. | 38: }
  1089. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  1090. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  1091. 2241:
  1092. 2242: inline int RUN_ALL_TESTS() {
  1093. >2243: return ::testing::UnitTest::GetInstance()->Run();
  1094. 2244: }
  1095. 2245:
  1096. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  1097. #19 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  1098. 4267: }
  1099. 4268: #endif // GTEST_HAS_SEH
  1100. 4269:
  1101. >4270: return internal::HandleExceptionsInMethodIfSupported(
  1102. 4271: impl(),
  1103. 4272: &internal::UnitTestImpl::RunAllTests,
  1104. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  1105. #18 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  1106. | 2429: #if GTEST_HAS_EXCEPTIONS
  1107. | 2430: try {
  1108. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  1109. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  1110. | 2433: // This exception type can only be thrown by a failed Google
  1111. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  1112. 2392: }
  1113. 2393: #else
  1114. 2394: (void)location;
  1115. >2395: return (object->*method)();
  1116. 2396: #endif // GTEST_HAS_SEH
  1117. 2397: }
  1118. #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  1119. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  1120. | 4657: test_index++) {
  1121. | >4658: GetMutableTestCase(test_index)->Run();
  1122. | 4659: }
  1123. | 4660: }
  1124. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  1125. 2747: // Runs every test in this TestCase.
  1126. 2748: void TestCase::Run() {
  1127. >2749: if (!should_run_) return;
  1128. 2750:
  1129. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1130. 2752: impl->set_current_test_case(this);
  1131. #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  1132. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  1133. | 2762: for (int i = 0; i < total_test_count(); i++) {
  1134. | >2763: GetMutableTestInfo(i)->Run();
  1135. | 2764: }
  1136. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  1137. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  1138. 2617: // Creates the test object, runs it, records its result, and then
  1139. 2618: // deletes it.
  1140. 2619: void TestInfo::Run() {
  1141. >2620: if (!should_run_) return;
  1142. 2621:
  1143. 2622: // Tells UnitTest where to store test result.
  1144. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1145. #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  1146. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  1147. | 2644: // exception handling code.
  1148. | >2645: test->Run();
  1149. | 2646: }
  1150. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  1151. 2457: // Runs the test and updates the test result.
  1152. 2458: void Test::Run() {
  1153. >2459: if (!HasSameFixtureClass()) return;
  1154. 2460:
  1155. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1156. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  1157. #14 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  1158. 2464: // We will run the test only if SetUp() was successful.
  1159. 2465: if (!HasFatalFailure()) {
  1160. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  1161. >2467: internal::HandleExceptionsInMethodIfSupported(
  1162. 2468: this, &Test::TestBody, "the test body");
  1163. 2469: }
  1164. #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  1165. | 2429: #if GTEST_HAS_EXCEPTIONS
  1166. | 2430: try {
  1167. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  1168. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  1169. | 2433: // This exception type can only be thrown by a failed Google
  1170. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  1171. 2392: }
  1172. 2393: #else
  1173. 2394: (void)location;
  1174. >2395: return (object->*method)();
  1175. 2396: #endif // GTEST_HAS_SEH
  1176. 2397: }
  1177. #12 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  1178. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  1179. 167: test_msgs__msg__Primitives__fini(&msg);
  1180. 168: });
  1181. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  1182. 170: ret = rcl_take(&subscription, &msg, nullptr);
  1183. 171: });
  1184. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  1185. #11 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  1186. 248: // Call rmw_take_with_info.
  1187. 249: bool taken = false;
  1188. 250: rmw_ret_t ret =
  1189. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  1190. 252: if (ret != RMW_RET_OK) {
  1191. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  1192. 254: if (RMW_RET_BAD_ALLOC == ret) {
  1193. #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  1194. 212: return RMW_RET_ERROR;
  1195. 213: }
  1196. 214: DDS_InstanceHandle_t sending_publication_handle;
  1197. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  1198. 216: if (ret != RMW_RET_OK) {
  1199. 217: // Error string is already set.
  1200. 218: return RMW_RET_ERROR;
  1201. #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  1202. 182: return RMW_RET_ERROR;
  1203. 183: }
  1204. 184: // convert the cdr stream to the message
  1205. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  1206. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  1207. 187: return RMW_RET_ERROR;
  1208. 188: }
  1209. #8 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 320, in to_message
  1210. 317: return false;
  1211. 318: }
  1212. 319: bool success = convert_dds_to_ros(dds_message, untyped_ros_message);
  1213. > 320: if (test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(dds_message) != DDS_RETCODE_OK) {
  1214. 321: return false;
  1215. 322: }
  1216. 323: return success;
  1217. #7 Source "/opt/rti.com/rti_connext_dds-5.3.1/include/ndds/dds_cpp/generic/dds_cpp_data_TTypeSupport.gen", line 292, in test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(test_msgs::msg::dds_::Primitives_*, DDS_TypeDeallocationParams_t const&)
  1218. 289: #define TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport) concatenate(TTypePluginSupport, _destroy_data_w_params)
  1219. 290: #define TTypePluginSupport_delete_data_w_params TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport)
  1220. 291:
  1221. > 292: TTypePluginSupport_delete_data_w_params(a_data, &dealloc_params);
  1222. 293:
  1223. 294: return DDS_RETCODE_OK;
  1224. #6 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_Plugin.cxx", line 118, in test_msgs::msg::dds_::Primitives_PluginSupport_destroy_data_w_params(test_msgs::msg::dds_::Primitives_*, DDS_TypeDeallocationParams_t const*)
  1225. 115: Primitives_ *sample,
  1226. 116: const struct DDS_TypeDeallocationParams_t * dealloc_params) {
  1227. 117:
  1228. > 118: test_msgs::msg::dds_::Primitives__finalize_w_params(sample,dealloc_params);
  1229. 119:
  1230. 120: delete sample;
  1231. 121: sample=NULL;
  1232. #5 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_cpp/test_msgs/msg/dds_connext/Primitives_.cxx", line 476, in test_msgs::msg::dds_::Primitives__finalize_w_params(test_msgs::msg::dds_::Primitives_*, DDS_TypeDeallocationParams_t const*)
  1233. 473: }
  1234. 474:
  1235. 475: if (sample->string_value_ != NULL) {
  1236. > 476: DDS_String_free(sample->string_value_);
  1237. 477: sample->string_value_=NULL;
  1238. 478:
  1239. 479: }
  1240. #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddsc.so", at 0x7fd2b1d6759a, in DDS_String_free
  1241. #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19776f6, in RTIOsapiHeap_freeMemoryInternal
  1242. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 113, in unix_replacement_free
  1243. 110: });
  1244. 111:
  1245. 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
  1246. > 113: custom_free_with_original(memory, original_free, __func__, false);
  1247. 114: }
  1248. 115:
  1249. 116: } // extern "C"
  1250. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 307, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  1251. | 305: {
  1252. | 306: try {
  1253. | > 307: custom_free_with_original_except(
  1254. | 308: memory,
  1255. | 309: original_free,
  1256. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 295, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  1257. 292: free_expected() ? " expected" : "not expected", memory);
  1258. 293: }
  1259. 294: if (factory.should_print_backtrace()) {
  1260. > 295: print_backtrace();
  1261. 296: }
  1262. 297: }
  1263. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  1264. 40: {
  1265. 41: #if !defined(_WIN32)
  1266. 42: backward::StackTrace st;
  1267. > 43: st.load_here(MaxStackDepth);
  1268. 44: backward::Printer p;
  1269. 45: p.print(st, out);
  1270. 46: #else
  1271. Stack trace (most recent call last):
  1272. #19 Object "", at 0xffffffffffffffff, in
  1273. #18 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  1274. #17 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  1275. #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  1276. | 35: printf("Running main() from gtest_main.cc\n");
  1277. | 36: testing::InitGoogleTest(&argc, argv);
  1278. | > 37: return RUN_ALL_TESTS();
  1279. | 38: }
  1280. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  1281. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  1282. 2241:
  1283. 2242: inline int RUN_ALL_TESTS() {
  1284. >2243: return ::testing::UnitTest::GetInstance()->Run();
  1285. 2244: }
  1286. 2245:
  1287. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  1288. #15 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  1289. 4267: }
  1290. 4268: #endif // GTEST_HAS_SEH
  1291. 4269:
  1292. >4270: return internal::HandleExceptionsInMethodIfSupported(
  1293. 4271: impl(),
  1294. 4272: &internal::UnitTestImpl::RunAllTests,
  1295. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  1296. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  1297. | 2429: #if GTEST_HAS_EXCEPTIONS
  1298. | 2430: try {
  1299. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  1300. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  1301. | 2433: // This exception type can only be thrown by a failed Google
  1302. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  1303. 2392: }
  1304. 2393: #else
  1305. 2394: (void)location;
  1306. >2395: return (object->*method)();
  1307. 2396: #endif // GTEST_HAS_SEH
  1308. 2397: }
  1309. #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  1310. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  1311. | 4657: test_index++) {
  1312. | >4658: GetMutableTestCase(test_index)->Run();
  1313. | 4659: }
  1314. | 4660: }
  1315. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  1316. 2747: // Runs every test in this TestCase.
  1317. 2748: void TestCase::Run() {
  1318. >2749: if (!should_run_) return;
  1319. 2750:
  1320. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1321. 2752: impl->set_current_test_case(this);
  1322. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  1323. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  1324. | 2762: for (int i = 0; i < total_test_count(); i++) {
  1325. | >2763: GetMutableTestInfo(i)->Run();
  1326. | 2764: }
  1327. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  1328. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  1329. 2617: // Creates the test object, runs it, records its result, and then
  1330. 2618: // deletes it.
  1331. 2619: void TestInfo::Run() {
  1332. >2620: if (!should_run_) return;
  1333. 2621:
  1334. 2622: // Tells UnitTest where to store test result.
  1335. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1336. #11 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  1337. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  1338. | 2644: // exception handling code.
  1339. | >2645: test->Run();
  1340. | 2646: }
  1341. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  1342. 2457: // Runs the test and updates the test result.
  1343. 2458: void Test::Run() {
  1344. >2459: if (!HasSameFixtureClass()) return;
  1345. 2460:
  1346. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1347. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  1348. #10 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  1349. 2464: // We will run the test only if SetUp() was successful.
  1350. 2465: if (!HasFatalFailure()) {
  1351. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  1352. >2467: internal::HandleExceptionsInMethodIfSupported(
  1353. 2468: this, &Test::TestBody, "the test body");
  1354. 2469: }
  1355. #9 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  1356. | 2429: #if GTEST_HAS_EXCEPTIONS
  1357. | 2430: try {
  1358. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  1359. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  1360. | 2433: // This exception type can only be thrown by a failed Google
  1361. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  1362. 2392: }
  1363. 2393: #else
  1364. 2394: (void)location;
  1365. >2395: return (object->*method)();
  1366. 2396: #endif // GTEST_HAS_SEH
  1367. 2397: }
  1368. #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  1369. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  1370. 167: test_msgs__msg__Primitives__fini(&msg);
  1371. 168: });
  1372. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  1373. 170: ret = rcl_take(&subscription, &msg, nullptr);
  1374. 171: });
  1375. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  1376. #7 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  1377. 248: // Call rmw_take_with_info.
  1378. 249: bool taken = false;
  1379. 250: rmw_ret_t ret =
  1380. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  1381. 252: if (ret != RMW_RET_OK) {
  1382. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  1383. 254: if (RMW_RET_BAD_ALLOC == ret) {
  1384. #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  1385. 212: return RMW_RET_ERROR;
  1386. 213: }
  1387. 214: DDS_InstanceHandle_t sending_publication_handle;
  1388. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  1389. 216: if (ret != RMW_RET_OK) {
  1390. 217: // Error string is already set.
  1391. 218: return RMW_RET_ERROR;
  1392. #5 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
  1393. 182: return RMW_RET_ERROR;
  1394. 183: }
  1395. 184: // convert the cdr stream to the message
  1396. > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
  1397. 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
  1398. 187: return RMW_RET_ERROR;
  1399. 188: }
  1400. #4 Source "/home/michael/workspaces/ros2_ws3/build/test_msgs/rosidl_typesupport_connext_c/test_msgs/msg/dds_connext_c/primitives__type_support_c.cpp", line 320, in to_message
  1401. 317: return false;
  1402. 318: }
  1403. 319: bool success = convert_dds_to_ros(dds_message, untyped_ros_message);
  1404. > 320: if (test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(dds_message) != DDS_RETCODE_OK) {
  1405. 321: return false;
  1406. 322: }
  1407. 323: return success;
  1408. #3 Source "/opt/rti.com/rti_connext_dds-5.3.1/include/ndds/dds_cpp/generic/dds_cpp_data_TTypeSupport.gen", line 292, in test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(test_msgs::msg::dds_::Primitives_*, DDS_TypeDeallocationParams_t const&)
  1409. 289: #define TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport) concatenate(TTypePluginSupport, _destroy_data_w_params)
  1410. 290: #define TTypePluginSupport_delete_data_w_params TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport)
  1411. 291:
  1412. > 292: TTypePluginSupport_delete_data_w_params(a_data, &dealloc_params);
  1413. 293:
  1414. 294: return DDS_RETCODE_OK;
  1415. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 113, in unix_replacement_free
  1416. 110: });
  1417. 111:
  1418. 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
  1419. > 113: custom_free_with_original(memory, original_free, __func__, false);
  1420. 114: }
  1421. 115:
  1422. 116: } // extern "C"
  1423. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 307, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  1424. | 305: {
  1425. | 306: try {
  1426. | > 307: custom_free_with_original_except(
  1427. | 308: memory,
  1428. | 309: original_free,
  1429. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 295, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  1430. 292: free_expected() ? " expected" : "not expected", memory);
  1431. 293: }
  1432. 294: if (factory.should_print_backtrace()) {
  1433. > 295: print_backtrace();
  1434. 296: }
  1435. 297: }
  1436. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  1437. 40: {
  1438. 41: #if !defined(_WIN32)
  1439. 42: backward::StackTrace st;
  1440. > 43: st.load_here(MaxStackDepth);
  1441. 44: backward::Printer p;
  1442. 45: p.print(st, out);
  1443. 46: #else
  1444. Stack trace (most recent call last):
  1445. #17 Object "", at 0xffffffffffffffff, in
  1446. #16 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
  1447. #15 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
  1448. #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
  1449. | 35: printf("Running main() from gtest_main.cc\n");
  1450. | 36: testing::InitGoogleTest(&argc, argv);
  1451. | > 37: return RUN_ALL_TESTS();
  1452. | 38: }
  1453. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
  1454. 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
  1455. 2241:
  1456. 2242: inline int RUN_ALL_TESTS() {
  1457. >2243: return ::testing::UnitTest::GetInstance()->Run();
  1458. 2244: }
  1459. 2245:
  1460. 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
  1461. #13 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
  1462. 4267: }
  1463. 4268: #endif // GTEST_HAS_SEH
  1464. 4269:
  1465. >4270: return internal::HandleExceptionsInMethodIfSupported(
  1466. 4271: impl(),
  1467. 4272: &internal::UnitTestImpl::RunAllTests,
  1468. 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
  1469. #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  1470. | 2429: #if GTEST_HAS_EXCEPTIONS
  1471. | 2430: try {
  1472. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  1473. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  1474. | 2433: // This exception type can only be thrown by a failed Google
  1475. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
  1476. 2392: }
  1477. 2393: #else
  1478. 2394: (void)location;
  1479. >2395: return (object->*method)();
  1480. 2396: #endif // GTEST_HAS_SEH
  1481. 2397: }
  1482. #11 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
  1483. | 4656: for (int test_index = 0; test_index < total_test_case_count();
  1484. | 4657: test_index++) {
  1485. | >4658: GetMutableTestCase(test_index)->Run();
  1486. | 4659: }
  1487. | 4660: }
  1488. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
  1489. 2747: // Runs every test in this TestCase.
  1490. 2748: void TestCase::Run() {
  1491. >2749: if (!should_run_) return;
  1492. 2750:
  1493. 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1494. 2752: impl->set_current_test_case(this);
  1495. #10 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
  1496. | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
  1497. | 2762: for (int i = 0; i < total_test_count(); i++) {
  1498. | >2763: GetMutableTestInfo(i)->Run();
  1499. | 2764: }
  1500. | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
  1501. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
  1502. 2617: // Creates the test object, runs it, records its result, and then
  1503. 2618: // deletes it.
  1504. 2619: void TestInfo::Run() {
  1505. >2620: if (!should_run_) return;
  1506. 2621:
  1507. 2622: // Tells UnitTest where to store test result.
  1508. 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1509. #9 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
  1510. | 2643: // This doesn't throw as all user code that can throw are wrapped into
  1511. | 2644: // exception handling code.
  1512. | >2645: test->Run();
  1513. | 2646: }
  1514. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
  1515. 2457: // Runs the test and updates the test result.
  1516. 2458: void Test::Run() {
  1517. >2459: if (!HasSameFixtureClass()) return;
  1518. 2460:
  1519. 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  1520. 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
  1521. #8 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2467, in testing::Test::Run() [clone .part.603]
  1522. 2464: // We will run the test only if SetUp() was successful.
  1523. 2465: if (!HasFatalFailure()) {
  1524. 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
  1525. >2467: internal::HandleExceptionsInMethodIfSupported(
  1526. 2468: this, &Test::TestBody, "the test body");
  1527. 2469: }
  1528. #7 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2431, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  1529. | 2429: #if GTEST_HAS_EXCEPTIONS
  1530. | 2430: try {
  1531. | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
  1532. | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
  1533. | 2433: // This exception type can only be thrown by a failed Google
  1534. Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2395, in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
  1535. 2392: }
  1536. 2393: #else
  1537. 2394: (void)location;
  1538. >2395: return (object->*method)();
  1539. 2396: #endif // GTEST_HAS_SEH
  1540. 2397: }
  1541. #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/test/rcl/test_subscription.cpp", line 169, in TestSubscriptionFixture__rmw_connext_cpp_test_subscription_nominal_Test::TestBody()
  1542. 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
  1543. 167: test_msgs__msg__Primitives__fini(&msg);
  1544. 168: });
  1545. > 169: EXPECT_NO_MEMORY_OPERATIONS({
  1546. 170: ret = rcl_take(&subscription, &msg, nullptr);
  1547. 171: });
  1548. 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
  1549. #5 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
  1550. 248: // Call rmw_take_with_info.
  1551. 249: bool taken = false;
  1552. 250: rmw_ret_t ret =
  1553. > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
  1554. 252: if (ret != RMW_RET_OK) {
  1555. 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
  1556. 254: if (RMW_RET_BAD_ALLOC == ret) {
  1557. #4 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 215, in rmw_take_with_info
  1558. 212: return RMW_RET_ERROR;
  1559. 213: }
  1560. 214: DDS_InstanceHandle_t sending_publication_handle;
  1561. > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
  1562. 216: if (ret != RMW_RET_OK) {
  1563. 217: // Error string is already set.
  1564. 218: return RMW_RET_ERROR;
  1565. #3 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 192, in _take
  1566. 190: // the call to take allocates memory for the serialized message
  1567. 191: // we have to free this here again
  1568. > 192: free(cdr_stream.buffer);
  1569. 193:
  1570. 194: return RMW_RET_OK;
  1571. 195: }
  1572. #2 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./impl/unix_common.cpp", line 113, in unix_replacement_free
  1573. 110: });
  1574. 111:
  1575. 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
  1576. > 113: custom_free_with_original(memory, original_free, __func__, false);
  1577. 114: }
  1578. 115:
  1579. 116: } // extern "C"
  1580. #1 | Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 307, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  1581. | 305: {
  1582. | 306: try {
  1583. | > 307: custom_free_with_original_except(
  1584. | 308: memory,
  1585. | 309: original_free,
  1586. Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp", line 295, in osrf_testing_tools_cpp::memory_tools::custom_free_with_original(void*, void (*)(void*), char const*, bool)
  1587. 292: free_expected() ? " expected" : "not expected", memory);
  1588. 293: }
  1589. 294: if (factory.should_print_backtrace()) {
  1590. > 295: print_backtrace();
  1591. 296: }
  1592. 297: }
  1593. #0 Source "/home/michael/workspaces/ros2_ws3/src/osrf/osrf_testing_tools_cpp/osrf_testing_tools_cpp/src/memory_tools/./print_backtrace.hpp", line 43, in void osrf_testing_tools_cpp::memory_tools::print_backtrace<64>(_IO_FILE*)
  1594. 40: {
  1595. 41: #if !defined(_WIN32)
  1596. 42: backward::StackTrace st;
  1597. > 43: st.load_here(MaxStackDepth);
  1598. 44: backward::Printer p;
  1599. 45: p.print(st, out);
  1600. 46: #else
Add Comment
Please, Sign In to add comment