You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/rpc_repro.py Fatal Python error: AbortedCurrent thread 0x0000000202ecc600 (most recent call first):
File "tests/rpc_repro.py", line 22 in test
File "venv/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
File "venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
File "venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
File "venv/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
File "venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
File "venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
File "venv/lib/python3.9/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
File "venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
File "venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
File "venv/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
File "venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
File "venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
File "venv/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
File "venv/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
File "venv/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
File "venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
File "venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
File "venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
File "venv/bin/pytest", line 8 in <module>
Abort trap: 6
Sending the header lower-case, {}authorization{}, works. There is no indication that headers are case-sensitive and the error is most unhelpful at pointing to the underlying issue. If headers are not case-insensitive, I would at least hope for a better error diagnostic that would tell me so.
David Li / @lidavidm:
Thanks for the report. I'll try to reproduce it soon but yes, headers should absolutely be case insensitive and we shouldn't be crashing in either case.
Paul Horn:
I did not see that log message. For me the client just aborts with the first error block (Abort trap: 6). I don't see anything else on either the client or the server (which is a Java flight server).
I was thinking it might have been related to me running this on an M1 Mac under Rosetta, so I installed an ARM-native python and pyarrow, but I get the same error.
I'm thinking in Python we can lowercase the headers for you to avoid this (I don't want to add redundant checks on the C++ side), and document this more clearly in C++/Python. Is that reasonable?
Sending a custom
Authorization
header leads to a crash of the clientRunning this python code, for example
Results in
With an additional crash report from the OS
Sending the header lower-case,
{}authorization{
}, works. There is no indication that headers are case-sensitive and the error is most unhelpful at pointing to the underlying issue. If headers are not case-insensitive, I would at least hope for a better error diagnostic that would tell me so.Environment: Python 3.9.12 on macOS 12.3.1
Reporter: Paul Horn
Assignee: David Li / @lidavidm
PRs and other links:
Note: This issue was originally created as ARROW-16606. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: