Repository: stanford-crfm/helm
Issue: datasets / pyarrow / aws-c-io causes crash in aws_thread_launch
Root cause: External Dependency Breakage

When running `benchmark-present --conf src/benchmark/presentation/run_specs_tiny.conf --local --max-eval-instances 10 --suite v1`, I got a crash with:

```
Fatal error condition occurred in /opt/vcpkg/buildtrees/aws-c-io/src/9e6648842a-364b708815.clean/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
################################################################################
Stack trace:
################################################################################
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x200af06) [0x7f4346604f06]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x20028e5) [0x7f43465fc8e5]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x1f27e09) [0x7f4346521e09]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x200ba3d) [0x7f4346605a3d]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x1f25948) [0x7f434651f948]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x200ba3d) [0x7f4346605a3d]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x1ee0b46) [0x7f43464dab46]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/lib/python3.8/site-packages/pyarrow/libarrow.so.900(+0x194546a) [0x7f4345f3f46a]
/lib/x86_64-linux-gnu/libc.so.6(+0x468d7) [0x7f43489f98d7]
/lib/x86_64-linux-gnu/libc.so.6(on_exit+0) [0x7f43489f9a90]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(+0x253608) [0x560bd9cca608]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(+0x25363b) [0x560bd9cca63b]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(+0x253680) [0x560bd9cca680]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(PyRun_SimpleFileExFlags+0x274) [0x560bd9ccd604]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(Py_RunMain+0x3a9) [0x560bd9ccda29]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(Py_BytesMain+0x39) [0x560bd9ccdc29]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f43489d70b3]
/nlp/u/maiyifan/miniconda3/envs/crfm-benchmarking/bin/python(+0x1f9ad7) [0x560bd9c70ad7]
Aborted
```

Seems to be caused by https://issues.apache.org/jira/browse/ARROW-15141

I'm going to try Python 3.9 to see if it makes a difference.

Python 3.9 on virtualenv also breaks. Not sure when this started happening. Also, I'm on a branch rather than main.

Is this still happening?  Does it seem like we need to fix this before release?

I talked to Tony and apparently this only happens on cluster machines. Also it seems to have stopped happening for me on the cluster machines. I'll close as can't repro for now.

I'm experiencing the same error on the SAIL cluster. The error can be solved by downgrading `pyarrow` from 9.0.0 to 6.0.1 through `pip install pyarrow==6.0.1`. The solution was originally proposed by https://github.com/huggingface/datasets/issues/3310#issuecomment-1247390774.

While this error does not affect anything, it is annoying to see it every run, so I attach the solution here for future reference.



This seems to be worked around in pyarrow 11.0.0. Let's bump the pyarrow version.