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 Mark.Shannon, serhiy.storchaka
Date 2020-12-25.11:55:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608897358.97.0.834158885511.issue42739@roundup.psfhosted.org>
In-reply-to
Content
>>> def f(): pass
... 
>>> co = f.__code__.replace(co_linetable=b'')
>>> import dis
>>> dis.dis(co)
python: Objects/codeobject.c:1185: PyLineTable_NextAddressRange: Assertion `!at_end(range)' failed.
Aborted (core dumped)

It is expected that executing bogus code object can crash (or cause any other effect). But it is surprising that just inspecting it causes a crash.
History
Date User Action Args
2020-12-25 11:55:59serhiy.storchakasetrecipients: + serhiy.storchaka, Mark.Shannon
2020-12-25 11:55:58serhiy.storchakasetmessageid: <1608897358.97.0.834158885511.issue42739@roundup.psfhosted.org>
2020-12-25 11:55:58serhiy.storchakalinkissue42739 messages
2020-12-25 11:55:58serhiy.storchakacreate