[Java] MacOS SIGABRT in ORC JNI adapter when destructing multiple ORC readers
- 主要语言
- Java
- 星标
- 94
- 派生
- 152
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 11
描述
### Describe the bug, including details regarding any error messages, version, and platform.
I was playing around with the Arrow Java ORC adapter and noticed an intermittent SIGABRT when `.clear()`ing ORC file/stripe readers.
On MacOS M1 (aarch64), I can reproduce locally with this diff: https://github.com/apache/arrow/pull/43699. However, this diff does not fail in CI, which is configured to run only on Linux. The test iteratively creates a new ORC file, reads a stripe, then deletes it. The test is repeated 100 times. The SIGABRT is intermittent and typically crashes on a random test iteration.
My assumption is that there is a memory management issue in the Arrow ORC JNI / Arrow ORC / Apache ORC C++ layers that manifests when destructing the ORC C++ objects.
### Component(s)
Java
贡献指南
调研方向
从 apache/arrow#43699 中的 reproducer diff 开始,并在 macOS M1 上运行其重复的 ORC file/stripe reader 测试。跟踪 Java ORC JNI、Arrow ORC 和 Apache ORC C++ 的销毁路径;完成的标准是 100 次迭代的测试不再间歇性地引发 SIGABRT。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, java
- 领域
- data-engineering
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100