Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stack trace (most recent call last):
- #18 Object "", at 0xffffffffffffffff, in
- #17 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #16 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #14 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #11 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #10 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #4 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 177, in _take
- 175: // fetch the incoming message as cdr stream
- 176: ConnextStaticCDRStream cdr_stream;
- > 177: if (!take(
- 178: topic_reader, subscriber_info->ignore_local_publications, &cdr_stream, taken,
- 179: sending_publication_handle))
- 180: {
- #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]
- 107: cdr_stream->buffer_length = dds_messages[0].serialized_data.length();
- 108: // TODO(karsten1987): This malloc has to go!
- 109: cdr_stream->buffer =
- > 110: reinterpret_cast<char *>(malloc(cdr_stream->buffer_length * sizeof(char)));
- 111:
- 112: if (cdr_stream->buffer_length > (std::numeric_limits<unsigned int>::max)()) {
- 113: RMW_SET_ERROR_MSG("cdr_stream->buffer_length unexpectedly larger than max unsiged int value");
- #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
- 56: });
- 57:
- 58: using osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original;
- > 59: return custom_malloc_with_original(size, original_malloc, __func__, false);
- 60: }
- 61:
- 62: void *
- #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)
- | 92: {
- | 93: try {
- | > 94: return custom_malloc_with_original_except(
- | 95: size,
- | 96: original_malloc,
- 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)
- 77: " malloc (%s) %" PRIu64 " -> %p\n",
- 78: malloc_expected() ? " expected" : "not expected", fw_size, memory);
- 79: if (factory.should_print_backtrace()) {
- > 80: print_backtrace();
- 81: }
- 82: }
- 83: return memory;
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #20 Object "", at 0xffffffffffffffff, in
- #19 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #18 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #16 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 303: }
- 304:
- 305: test_msgs::msg::dds_::Primitives_ * dds_message =
- > 306: test_msgs::msg::dds_::Primitives_TypeSupport::create_data();
- 307: if (cdr_stream->buffer_length > (std::numeric_limits<unsigned int>::max)()) {
- 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
- 309: return false;
- #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*)
- 73: {
- 74: Primitives_ *sample = NULL;
- 75:
- > 76: sample = new (std::nothrow) Primitives_ ;
- 77: if (sample == NULL) {
- 78: return NULL;
- 79: }
- #3 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fd2b01cc20c, in operator new(unsigned long, std::nothrow_t const&)
- #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
- 56: });
- 57:
- 58: using osrf_testing_tools_cpp::memory_tools::custom_malloc_with_original;
- > 59: return custom_malloc_with_original(size, original_malloc, __func__, false);
- 60: }
- 61:
- 62: void *
- #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)
- | 92: {
- | 93: try {
- | > 94: return custom_malloc_with_original_except(
- | 95: size,
- | 96: original_malloc,
- 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)
- 77: " malloc (%s) %" PRIu64 " -> %p\n",
- 78: malloc_expected() ? " expected" : "not expected", fw_size, memory);
- 79: if (factory.should_print_backtrace()) {
- > 80: print_backtrace();
- 81: }
- 82: }
- 83: return memory;
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #22 Object "", at 0xffffffffffffffff, in
- #21 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #20 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #19 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #18 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 303: }
- 304:
- 305: test_msgs::msg::dds_::Primitives_ * dds_message =
- > 306: test_msgs::msg::dds_::Primitives_TypeSupport::create_data();
- 307: if (cdr_stream->buffer_length > (std::numeric_limits<unsigned int>::max)()) {
- 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
- 309: return false;
- #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*)
- 78: return NULL;
- 79: }
- 80:
- > 81: if (!test_msgs::msg::dds_::Primitives__initialize_w_params(sample,alloc_params)) {
- 82: delete sample;
- 83: sample=NULL;
- 84: }
- #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*)
- 423: }
- 424:
- 425: if (allocParams->allocate_memory){
- > 426: sample->string_value_= DDS_String_alloc ((0));
- 427: if (sample->string_value_ == NULL) {
- 428: return RTI_FALSE;
- 429: }
- #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddsc.so", at 0x7fd2b1d6755e, in DDS_String_alloc
- #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19785f5, in RTIOsapiHeap_reallocateMemoryInternal
- #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
- 90: });
- 91:
- 92: using osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original;
- > 93: return custom_calloc_with_original(count, size, original_calloc, __func__, false);
- 94: }
- 95:
- 96: void
- #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)
- | 237: {
- | 238: try {
- | > 239: return custom_calloc_with_original_except(
- | 240: count,
- | 241: size,
- 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)
- 221: " calloc (%s) %" PRIu64 " (%" PRIu64 " * %" PRIu64 ") -> %p\n",
- 222: calloc_expected() ? " expected" : "not expected", fw_total, fw_count, fw_size, memory);
- 223: if (factory.should_print_backtrace()) {
- > 224: print_backtrace();
- 225: }
- 226: }
- 227: return memory;
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #22 Object "", at 0xffffffffffffffff, in
- #21 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #20 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #19 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #18 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
- 309: return false;
- 310: }
- > 311: if (Primitives_Plugin_deserialize_from_cdr_buffer(
- 312: dds_message,
- 313: cdr_stream->buffer,
- 314: static_cast<unsigned int>(cdr_stream->buffer_length)) != RTI_TRUE)
- #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)
- 605: RTICdrStream_set(&stream, (char *)buffer, length);
- 606:
- 607: Primitives__finalize_optional_members(sample, RTI_TRUE);
- > 608: return Primitives_Plugin_deserialize_sample(
- 609: NULL, sample,
- 610: &stream, RTI_TRUE, RTI_TRUE,
- 611: NULL);
- #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*)
- 523: stream, &sample->uint64_value_)) {
- 524: goto fin;
- 525: }
- > 526: if (!RTICdrStream_deserializeStringEx(
- 527: stream,&sample->string_value_, (RTI_INT32_MAX-1) + 1,RTI_TRUE)) {
- 528: goto fin;
- 529: }
- #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b18af965, in RTICdrStream_deserializeStringEx
- #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19776f6, in RTIOsapiHeap_freeMemoryInternal
- #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
- 110: });
- 111:
- 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
- > 113: custom_free_with_original(memory, original_free, __func__, false);
- 114: }
- 115:
- 116: } // extern "C"
- #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)
- | 305: {
- | 306: try {
- | > 307: custom_free_with_original_except(
- | 308: memory,
- | 309: original_free,
- 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)
- 292: free_expected() ? " expected" : "not expected", memory);
- 293: }
- 294: if (factory.should_print_backtrace()) {
- > 295: print_backtrace();
- 296: }
- 297: }
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #22 Object "", at 0xffffffffffffffff, in
- #21 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #20 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #19 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #18 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #10 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 308: fprintf(stderr, "cdr_stream->buffer_length, unexpectedly larger than max unsigned int\n");
- 309: return false;
- 310: }
- > 311: if (Primitives_Plugin_deserialize_from_cdr_buffer(
- 312: dds_message,
- 313: cdr_stream->buffer,
- 314: static_cast<unsigned int>(cdr_stream->buffer_length)) != RTI_TRUE)
- #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)
- 605: RTICdrStream_set(&stream, (char *)buffer, length);
- 606:
- 607: Primitives__finalize_optional_members(sample, RTI_TRUE);
- > 608: return Primitives_Plugin_deserialize_sample(
- 609: NULL, sample,
- 610: &stream, RTI_TRUE, RTI_TRUE,
- 611: NULL);
- #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*)
- 523: stream, &sample->uint64_value_)) {
- 524: goto fin;
- 525: }
- > 526: if (!RTICdrStream_deserializeStringEx(
- 527: stream,&sample->string_value_, (RTI_INT32_MAX-1) + 1,RTI_TRUE)) {
- 528: goto fin;
- 529: }
- #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b18af9b2, in RTICdrStream_deserializeStringEx
- #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19785f5, in RTIOsapiHeap_reallocateMemoryInternal
- #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
- 90: });
- 91:
- 92: using osrf_testing_tools_cpp::memory_tools::custom_calloc_with_original;
- > 93: return custom_calloc_with_original(count, size, original_calloc, __func__, false);
- 94: }
- 95:
- 96: void
- #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)
- | 237: {
- | 238: try {
- | > 239: return custom_calloc_with_original_except(
- | 240: count,
- | 241: size,
- 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)
- 221: " calloc (%s) %" PRIu64 " (%" PRIu64 " * %" PRIu64 ") -> %p\n",
- 222: calloc_expected() ? " expected" : "not expected", fw_total, fw_count, fw_size, memory);
- 223: if (factory.should_print_backtrace()) {
- > 224: print_backtrace();
- 225: }
- 226: }
- 227: return memory;
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #20 Object "", at 0xffffffffffffffff, in
- #19 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #18 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #16 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #8 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #6 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 316: fprintf(stderr, "deserialize from cdr buffer failed\n");
- 317: return false;
- 318: }
- > 319: bool success = convert_dds_to_ros(dds_message, untyped_ros_message);
- 320: if (test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(dds_message) != DDS_RETCODE_OK) {
- 321: return false;
- 322: }
- #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
- 230: if (!ros_message->string_value.data) {
- 231: rosidl_generator_c__String__init(&ros_message->string_value);
- 232: }
- > 233: bool succeeded = rosidl_generator_c__String__assign(
- 234: &ros_message->string_value,
- 235: dds_message->string_value_);
- 236: if (!succeeded) {
- #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
- 82: if (n == SIZE_MAX) {
- 83: return false;
- 84: }
- > 85: char * data = realloc(str->data, n + 1);
- 86: if (!data) {
- 87: return false;
- 88: }
- #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
- 73: });
- 74:
- 75: using osrf_testing_tools_cpp::memory_tools::custom_realloc_with_original;
- > 76: return custom_realloc_with_original(memory_in, size, original_realloc, __func__, false);
- 77: }
- 78:
- 79: void *
- #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)
- | 164: {
- | 165: try {
- | > 166: return custom_realloc_with_original_except(
- | 167: memory_in,
- | 168: size,
- 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)
- 148: " realloc (%s) %p %" PRIu64 " -> %p\n",
- 149: realloc_expected() ? " expected" : "not expected", memory_in, fw_size, memory);
- 150: if (factory.should_print_backtrace()) {
- > 151: print_backtrace();
- 152: }
- 153: }
- 154: return memory;
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #23 Object "", at 0xffffffffffffffff, in
- #22 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #21 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #20 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #19 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #17 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #15 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #11 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #9 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 317: return false;
- 318: }
- 319: bool success = convert_dds_to_ros(dds_message, untyped_ros_message);
- > 320: if (test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(dds_message) != DDS_RETCODE_OK) {
- 321: return false;
- 322: }
- 323: return success;
- #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&)
- 289: #define TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport) concatenate(TTypePluginSupport, _destroy_data_w_params)
- 290: #define TTypePluginSupport_delete_data_w_params TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport)
- 291:
- > 292: TTypePluginSupport_delete_data_w_params(a_data, &dealloc_params);
- 293:
- 294: return DDS_RETCODE_OK;
- #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*)
- 115: Primitives_ *sample,
- 116: const struct DDS_TypeDeallocationParams_t * dealloc_params) {
- 117:
- > 118: test_msgs::msg::dds_::Primitives__finalize_w_params(sample,dealloc_params);
- 119:
- 120: delete sample;
- 121: sample=NULL;
- #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*)
- 473: }
- 474:
- 475: if (sample->string_value_ != NULL) {
- > 476: DDS_String_free(sample->string_value_);
- 477: sample->string_value_=NULL;
- 478:
- 479: }
- #4 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddsc.so", at 0x7fd2b1d6759a, in DDS_String_free
- #3 Object "/opt/rti.com/rti_connext_dds-5.3.1/lib/x64Linux3gcc5.4.0/libnddscore.so", at 0x7fd2b19776f6, in RTIOsapiHeap_freeMemoryInternal
- #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
- 110: });
- 111:
- 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
- > 113: custom_free_with_original(memory, original_free, __func__, false);
- 114: }
- 115:
- 116: } // extern "C"
- #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)
- | 305: {
- | 306: try {
- | > 307: custom_free_with_original_except(
- | 308: memory,
- | 309: original_free,
- 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)
- 292: free_expected() ? " expected" : "not expected", memory);
- 293: }
- 294: if (factory.should_print_backtrace()) {
- > 295: print_backtrace();
- 296: }
- 297: }
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #19 Object "", at 0xffffffffffffffff, in
- #18 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #17 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #16 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #15 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #13 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #12 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #11 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #7 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #5 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 185, in _take
- 182: return RMW_RET_ERROR;
- 183: }
- 184: // convert the cdr stream to the message
- > 185: if (*taken && !callbacks->to_message(&cdr_stream, ros_message)) {
- 186: RMW_SET_ERROR_MSG("can't convert cdr stream to ros message");
- 187: return RMW_RET_ERROR;
- 188: }
- #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
- 317: return false;
- 318: }
- 319: bool success = convert_dds_to_ros(dds_message, untyped_ros_message);
- > 320: if (test_msgs::msg::dds_::Primitives_TypeSupport::delete_data(dds_message) != DDS_RETCODE_OK) {
- 321: return false;
- 322: }
- 323: return success;
- #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&)
- 289: #define TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport) concatenate(TTypePluginSupport, _destroy_data_w_params)
- 290: #define TTypePluginSupport_delete_data_w_params TTypePluginSupport_delete_data_w_params_c(TTypePluginSupport)
- 291:
- > 292: TTypePluginSupport_delete_data_w_params(a_data, &dealloc_params);
- 293:
- 294: return DDS_RETCODE_OK;
- #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
- 110: });
- 111:
- 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
- > 113: custom_free_with_original(memory, original_free, __func__, false);
- 114: }
- 115:
- 116: } // extern "C"
- #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)
- | 305: {
- | 306: try {
- | > 307: custom_free_with_original_except(
- | 308: memory,
- | 309: original_free,
- 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)
- 292: free_expected() ? " expected" : "not expected", memory);
- 293: }
- 294: if (factory.should_print_backtrace()) {
- > 295: print_backtrace();
- 296: }
- 297: }
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
- Stack trace (most recent call last):
- #17 Object "", at 0xffffffffffffffff, in
- #16 Object "/home/michael/workspaces/ros2_ws3/build/rcl/test/test_subscription__rmw_connext_cpp", at 0x55c4e6f8c269, in _start
- #15 Source "/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c", line 310, in __libc_start_main
- #14 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc", line 37, in main
- | 35: printf("Running main() from gtest_main.cc\n");
- | 36: testing::InitGoogleTest(&argc, argv);
- | > 37: return RUN_ALL_TESTS();
- | 38: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/include/gtest/gtest.h", line 2243, in RUN_ALL_TESTS()
- 2240: int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_;
- 2241:
- 2242: inline int RUN_ALL_TESTS() {
- >2243: return ::testing::UnitTest::GetInstance()->Run();
- 2244: }
- 2245:
- 2246: #endif // GTEST_INCLUDE_GTEST_GTEST_H_
- #13 Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4270, in testing::UnitTest::Run()
- 4267: }
- 4268: #endif // GTEST_HAS_SEH
- 4269:
- >4270: return internal::HandleExceptionsInMethodIfSupported(
- 4271: impl(),
- 4272: &internal::UnitTestImpl::RunAllTests,
- 4273: "auxiliary test code (environments or event listeners)") ? 0 : 1;
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #11 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 4658, in testing::internal::UnitTestImpl::RunAllTests()
- | 4656: for (int test_index = 0; test_index < total_test_case_count();
- | 4657: test_index++) {
- | >4658: GetMutableTestCase(test_index)->Run();
- | 4659: }
- | 4660: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2749, in testing::internal::UnitTestImpl::RunAllTests()
- 2747: // Runs every test in this TestCase.
- 2748: void TestCase::Run() {
- >2749: if (!should_run_) return;
- 2750:
- 2751: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2752: impl->set_current_test_case(this);
- #10 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2763, in
- | 2761: const internal::TimeInMillis start = internal::GetTimeInMillis();
- | 2762: for (int i = 0; i < total_test_count(); i++) {
- | >2763: GetMutableTestInfo(i)->Run();
- | 2764: }
- | 2765: elapsed_time_ = internal::GetTimeInMillis() - start;
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2620, in testing::TestCase::Run() [clone .part.605]
- 2617: // Creates the test object, runs it, records its result, and then
- 2618: // deletes it.
- 2619: void TestInfo::Run() {
- >2620: if (!should_run_) return;
- 2621:
- 2622: // Tells UnitTest where to store test result.
- 2623: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- #9 | Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2645, in
- | 2643: // This doesn't throw as all user code that can throw are wrapped into
- | 2644: // exception handling code.
- | >2645: test->Run();
- | 2646: }
- Source "/home/michael/workspaces/ros2_ws3/install/gtest_vendor/src/gtest_vendor/./src/gtest.cc", line 2459, in testing::TestInfo::Run() [clone .part.604]
- 2457: // Runs the test and updates the test result.
- 2458: void Test::Run() {
- >2459: if (!HasSameFixtureClass()) return;
- 2460:
- 2461: internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
- 2462: impl->os_stack_trace_getter()->UponLeavingGTest();
- #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]
- 2464: // We will run the test only if SetUp() was successful.
- 2465: if (!HasFatalFailure()) {
- 2466: impl->os_stack_trace_getter()->UponLeavingGTest();
- >2467: internal::HandleExceptionsInMethodIfSupported(
- 2468: this, &Test::TestBody, "the test body");
- 2469: }
- #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*)
- | 2429: #if GTEST_HAS_EXCEPTIONS
- | 2430: try {
- | >2431: return HandleSehExceptionsInMethodIfSupported(object, method, location);
- | 2432: } catch (const internal::GoogleTestFailureException&) { // NOLINT
- | 2433: // This exception type can only be thrown by a failed Google
- 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*)
- 2392: }
- 2393: #else
- 2394: (void)location;
- >2395: return (object->*method)();
- 2396: #endif // GTEST_HAS_SEH
- 2397: }
- #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()
- 166: OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
- 167: test_msgs__msg__Primitives__fini(&msg);
- 168: });
- > 169: EXPECT_NO_MEMORY_OPERATIONS({
- 170: ret = rcl_take(&subscription, &msg, nullptr);
- 171: });
- 172: ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
- #5 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rcl/rcl/src/rcl/subscription.c", line 251, in rcl_take
- 248: // Call rmw_take_with_info.
- 249: bool taken = false;
- 250: rmw_ret_t ret =
- > 251: rmw_take_with_info(subscription->impl->rmw_handle, ros_message, &taken, message_info_local);
- 252: if (ret != RMW_RET_OK) {
- 253: RCL_SET_ERROR_MSG(rmw_get_error_string().str);
- 254: if (RMW_RET_BAD_ALLOC == ret) {
- #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
- 212: return RMW_RET_ERROR;
- 213: }
- 214: DDS_InstanceHandle_t sending_publication_handle;
- > 215: auto ret = _take(subscription, ros_message, taken, &sending_publication_handle);
- 216: if (ret != RMW_RET_OK) {
- 217: // Error string is already set.
- 218: return RMW_RET_ERROR;
- #3 Source "/home/michael/workspaces/ros2_ws3/src/ros2/rmw_connext/rmw_connext_cpp/src/rmw_take.cpp", line 192, in _take
- 190: // the call to take allocates memory for the serialized message
- 191: // we have to free this here again
- > 192: free(cdr_stream.buffer);
- 193:
- 194: return RMW_RET_OK;
- 195: }
- #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
- 110: });
- 111:
- 112: using osrf_testing_tools_cpp::memory_tools::custom_free_with_original;
- > 113: custom_free_with_original(memory, original_free, __func__, false);
- 114: }
- 115:
- 116: } // extern "C"
- #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)
- | 305: {
- | 306: try {
- | > 307: custom_free_with_original_except(
- | 308: memory,
- | 309: original_free,
- 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)
- 292: free_expected() ? " expected" : "not expected", memory);
- 293: }
- 294: if (factory.should_print_backtrace()) {
- > 295: print_backtrace();
- 296: }
- 297: }
- #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*)
- 40: {
- 41: #if !defined(_WIN32)
- 42: backward::StackTrace st;
- > 43: st.load_here(MaxStackDepth);
- 44: backward::Printer p;
- 45: p.print(st, out);
- 46: #else
Add Comment
Please, Sign In to add comment