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 <>
>>> 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.
Date User Action Args
2020-12-25 11:55:59serhiy.storchakasetrecipients: + serhiy.storchaka, Mark.Shannon
2020-12-25 11:55:58serhiy.storchakasetmessageid: <>
2020-12-25 11:55:58serhiy.storchakalinkissue42739 messages
2020-12-25 11:55:58serhiy.storchakacreate