Fix ODBC Linux test segmentation fault#167
Open
alinaliBQ wants to merge 2 commits intoapache-odbcfrom
Open
Conversation
Pass `ARROW_TEST_LINKAGE=static`
|
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? or See also: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To resolve the immediate segfault in odbc test, need be on this branch, append
-DARROW_TEST_LINKAGE=staticto 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=staticfor 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-testexecutable. It doesn't fix individual ODBC test failures.