Skip to content

[C++] Linux Flight/FlightSQL test randomly segfaults after gRPC version bump #49767

@alinaliBQ

Description

@alinaliBQ

Describe the bug, including details regarding any error messages, version, and platform.

After the following PR was merged:

Non-deterministic crash at Flight/Flight SQL/ODBC tests is introduced:

SIGSEGV in /lib64/ld-linux-x86-64.so.2

The crash can happen at arrow-flight-test, arrow-flight-sql-test, or arrow-odbc-spi-impl-test. They all use gRPC and protobuf.

arrow-flight-test failure: https://github.com/apache/arrow/actions/runs/24410900735/job/71307679982#step:6:10272
arrow-flight-sql-test failure: https://github.com/apache/arrow/actions/runs/24410900735/job/71318452958#step:6:10207
arrow-odbc-spi-impl-test failure: https://github.com/apache/arrow/actions/runs/24410900735/job/71307679982#step:6:10330

The error log looks like:

    Test #68: arrow-flight-test .....................***Failed    0.54 sec
Running arrow-flight-test, redirecting output into /build/cpp/build/test-logs/arrow-flight-test.txt (attempt 1/1)
/arrow/cpp/build-support/run-test.sh: line 88: 26750 Segmentation fault      (core dumped) $TEST_EXECUTABLE "$@" > $LOGFILE.raw 2>&1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Running '/build/cpp/release/arrow-flight-test' produced core dump at '/tmp/core.arrow-flight-te.26750', printing backtrace:
[New LWP 26750]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/build/cpp/release/arrow-flight-test'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f643d998128 in ?? () from /lib64/ld-linux-x86-64.so.2

Thread 1 (Thread 0x7f643c215700 (LWP 26750)):
#0  0x00007f643d998128 in ?? () from /lib64/ld-linux-x86-64.so.2
#1  0x00007f643d9aa789 in ?? () from /lib64/ld-linux-x86-64.so.2
#2  0x00007f643d9a6f46 in ?? () from /lib64/ld-linux-x86-64.so.2
#3  0x00007f643d9a875e in ?? () from /lib64/ld-linux-x86-64.so.2
#4  0x00007f643d9a7548 in ?? () from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fffa0cad7f7 in ?? ()
#7  0x0000000000000000 in ?? ()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/build/cpp/src/arrow/flight

Component(s)

FlightRPC, C++

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions