You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/06/12 22:18:00 UTC

[jira] [Closed] (ARROW-3927) [C++] JSON integration test segfaults on Alpine

     [ https://issues.apache.org/jira/browse/ARROW-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney closed ARROW-3927.
-------------------------------
    Resolution: Cannot Reproduce

In my patch for ARROW-5577 (which addresses the googletest shared library linking issue) this does not occur

> [C++] JSON integration test segfaults on Alpine
> -----------------------------------------------
>
>                 Key: ARROW-3927
>                 URL: https://issues.apache.org/jira/browse/ARROW-3927
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Krisztian Szucs
>            Priority: Major
>              Labels: alpine
>
> {code}
> $ docker-compose build cpp-alpine
> $ docker-compose run cpp-alpine bash
> bash-4.4# ulimit -c unlimited
> bash-4.4# /arrow/ci/docker_build_cpp.sh
> bash-4.4# /build/cpp/debug/json-integration-test
> [==========] Running 2 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 2 tests from TestJSONIntegration
> [ RUN      ] TestJSONIntegration.ConvertAndValidate
> unknown file: Failure
> C++ exception with description "std::bad_alloc" thrown in the test body.
> [  FAILED  ] TestJSONIntegration.ConvertAndValidate (19 ms)
> [ RUN      ] TestJSONIntegration.ErrorStates
> Segmentation fault (core dumped)
> {code}
> Backtrace:
> {code}
> bash-4.4# gdb /build/cpp/debug/json-integration-test -c core
> GNU gdb (GDB) 8.0.1
> Copyright (C) 2017 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-alpine-linux-musl".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /build/cpp/debug/json-integration-test...done.
> warning: core file may not match specified executable file.
> [New LWP 225]
> warning: Can't read pathname for load map: No error information.
> Core was generated by `/build/cpp/debug/json-integration-test'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00007f4458ad8c9e in std::string::_Rep::_M_dispose(std::allocator<char> const&) () from /usr/lib/libstdc++.so.6
> (gdb) bt
> #0  0x00007f4458ad8c9e in std::string::_Rep::_M_dispose(std::allocator<char> const&) () from /usr/lib/libstdc++.so.6
> #1  0x00007f4458ad8cd3 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() () from /usr/lib/libstdc++.so.6
> #2  0x000055eb9abdc402 in boost::filesystem::path::~path (this=0x7ffda38537f8, __in_chrg=<optimized out>) at /usr/include/boost/filesystem/path.hpp:56
> #3  0x000055eb9abd97c7 in arrow::ipc::temp_path () at /arrow/cpp/src/arrow/ipc/json-integration-test.cc:241
> #4  0x000055eb9abdca1a in arrow::ipc::TestJSONIntegration::mkstemp (this=0x7f4458f7c3c0) at /arrow/cpp/src/arrow/ipc/json-integration-test.cc:249
> #5  0x000055eb9abda347 in arrow::ipc::TestJSONIntegration_ErrorStates_Test::TestBody (this=0x7f4458f7c3c0) at /arrow/cpp/src/arrow/ipc/json-integration-test.cc:391
> #6  0x00007f4459c26877 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (object=0x7f4458f7c3c0, method=&virtual testing::Test::TestBody(), location=0x7f4459c36c4b "the test body")
>     at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2402
> #7  0x00007f4459c20b3f in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x7f4458f7c3c0, method=&virtual testing::Test::TestBody(), location=0x7f4459c36c4b "the test body")
>     at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2438
> #8  0x00007f4459c05150 in testing::Test::Run (this=0x7f4458f7c3c0) at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2475
> #9  0x00007f4459c05a22 in testing::TestInfo::Run (this=0x7f4458a0ec20) at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2656
> #10 0x00007f4459c060b1 in testing::TestCase::Run (this=0x7f4458a0e9c0) at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2774
> #11 0x00007f4459c0cd80 in testing::internal::UnitTestImpl::RunAllTests (this=0x7f4458a0e640) at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:4649
> #12 0x00007f4459c277d1 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x7f4458a0e640,
>     method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x7f4459c0caae <testing::internal::UnitTestImpl::RunAllTests()>,
>     location=0x7f4459c37488 "auxiliary test code (environments or event listeners)") at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2402
> #13 0x00007f4459c21913 in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x7f4458a0e640,
>     method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x7f4459c0caae <testing::internal::UnitTestImpl::RunAllTests()>,
>     location=0x7f4459c37488 "auxiliary test code (environments or event listeners)") at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:2438
> #14 0x00007f4459c0b98e in testing::UnitTest::Run (this=0x7f4459e5d180 <testing::UnitTest::GetInstance()::instance>) at /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest.cc:4257
> #15 0x000055eb9abdbb4a in RUN_ALL_TESTS () at googletest_ep-prefix/src/googletest_ep/include/gtest/gtest.h:2233
> #16 0x000055eb9abdb24d in main (argc=1, argv=0x7ffda3853d98) at /arrow/cpp/src/arrow/ipc/json-integration-test.cc:424
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)