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 serhiy.storchaka
Recipients pitrou, serhiy.storchaka, skrah
Date 2018-05-31.12:41:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527770483.65.0.682650639539.issue33713@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know how to reproduce a failure in tp_clear(). I just can't prove that it never fails. Maybe it is needed a bug in the implementation of the buffer protocol in third-party extension.

If it should not happen then we can just add

    assert(!PyErr_Occurred());

or

    if (PyErr_Occurred()) {
        PyErr_WriteUnraisable(NULL);
    }

It is better to crash in memoryview.c than in the garbage collector if this crash is caused by incorrect buffer protocol implementation.
History
Date User Action Args
2018-05-31 12:41:23serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, skrah
2018-05-31 12:41:23serhiy.storchakasetmessageid: <1527770483.65.0.682650639539.issue33713@psf.upfronthosting.co.za>
2018-05-31 12:41:23serhiy.storchakalinkissue33713 messages
2018-05-31 12:41:23serhiy.storchakacreate