Skip to content

Fix ODBC Linux test segmentation fault#167

Merged
alinaliBQ merged 2 commits intoapache-odbcfrom
fix-linux-segfault
Apr 7, 2026
Merged

Fix ODBC Linux test segmentation fault#167
alinaliBQ merged 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:

@alinaliBQ alinaliBQ force-pushed the fix-linux-segfault branch from 64795fa to 879f1cb Compare April 7, 2026 20:05
@alinaliBQ alinaliBQ merged commit ba1f4ed into apache-odbc Apr 7, 2026
39 of 46 checks passed
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.

2 participants