This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients gregory.p.smith
Date 2018-09-27.22:58:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538089134.67.0.545547206417.issue34826@psf.upfronthosting.co.za>
In-reply-to
Content
The following test code segfaults on Python 2.7:

```python
import io
class X(io.RawIOBase):
  def readable(self):
    return True
  def readinto(self, b):
    if isinstance(b, memoryview):
      print(b.format)  # XXX boom, crashes here.
    return 0

io.BufferedReader(X()).read(8)
```

The crash happens on the b.format attribute access.

This does not happen on 3.6.
History
Date User Action Args
2018-09-27 22:58:54gregory.p.smithsetrecipients: + gregory.p.smith
2018-09-27 22:58:54gregory.p.smithsetmessageid: <1538089134.67.0.545547206417.issue34826@psf.upfronthosting.co.za>
2018-09-27 22:58:54gregory.p.smithlinkissue34826 messages
2018-09-27 22:58:54gregory.p.smithcreate