[pypy-issue] Issue #3108: 7.2.0: segfault when accessing dict built from some deserialized json files (pypy/pypy)

Jean Raby issues-reply at bitbucket.org
Tue Oct 29 22:11:58 EDT 2019


New issue 3108: 7.2.0: segfault when accessing dict built from some deserialized json files
https://bitbucket.org/pypy/pypy/issues/3108/720-segfault-when-accessing-dict-built

Jean Raby:

This is on linux \(ubuntu 16.04\) amd64, on both 7.2.0 and pypy-c-jit-97875-7487744729a8-linux64 \(and also tested with docker image pypy:3.6-7.2.0\)

```
import json

a =  """
{
  "top": {
    "k": "8",
    "k": "8",
    "boom": 1
  }
}
"""

b = json.loads(a)
print(b['top'].keys())
print(b['top'].values())
print(b)
```

Result:

```
dict_keys(['k'])
dict_values(['8', '8', 1])
Segmentation fault (core dumped)
```

‌




More information about the pypy-issue mailing list