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)
```

‌


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to