Skip to content

Fix ODBC Linux test segmentation fault#167

Open
alinaliBQ wants to merge 2 commits intoapache-odbcfrom
fix-linux-segfault
Open

Fix ODBC Linux test segmentation fault#167
alinaliBQ wants to merge 2 commits intoapache-odbcfrom
fix-linux-segfault

Conversation

@alinaliBQ
Copy link
Copy Markdown

To resolve the immediate segfault in odbc test, need be on this branch, append -DARROW_TEST_LINKAGE=static to the cmake command. Then rebuild ODBC and the tests.

Description of issue:
Both Arrow Flight SQL ODBC and the ODBC test executable link to bundled gRPC, and that causes segmentation fault when the ODBC is trying to connect to a gRPC-based mock server.
The solution is to pass ARROW_TEST_LINKAGE=static for the ODBC tests on Linux, so the odbc tests on Linux link to just one set of gRPC symbols.

This PR resolves the immediate segfault at connection start up when we run the arrow-flight-sql-odbc-test executable. It doesn't fix individual ODBC test failures.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant