pypy seg fault on larger byte arrays
- 主要语言
- Python
- 星标
- 490
- 派生
- 104
- PR 合并指标
- 30 天内没有已合并 PR
描述
This came up in a pykafka compression issue.
https://github.com/Parsely/pykafka/issues/508
So byte arrays above a certain size causes a seg fault.
```
(pypy) ➜ cat s.py
from uuid import uuid4
import snappy
payload = b''.join([uuid4().bytes for i in range(10)])
c = snappy.compress(payload)
assert snappy.decompress(c) == payload
(pypy) ➜ python s.py
[1] 4587 segmentation fault (core dumped) python s.py
(pypy) ➜ python
Python 2.7.10 (bbd45126bc69, Mar 18 2016, 21:35:08)
[PyPy 5.0.1 with GCC 4.8.4] on linux2
```
while
```
from uuid import uuid4
import snappy
payload = b''.join([uuid4().bytes for i in range(5)])
c = snappy.compress(payload)
assert snappy.decompress(c) == payload
```
passes
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start by running the s.py reproduction from the issue with five and ten UUID byte arrays under PyPy 5.0.1, and compare the compression and decompression assertions. Then trace the python-snappy binding involved in those calls and use the pykafka issue for context. Done means larger byte arrays complete without a segmentation fault and the assertions still pass.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100