checking arbitrary bytecode for potential crashes
Dima Tisnek <[email protected]> Tue, 30 Sep 2014 10:57:03 +0200
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <CAGGBzX+kavpH5OJF=EQxrNzjsOYR45Wvg+SZDNeZ40VRcnAD=w@mail.gmail.com> |
Hi all,
BytecodeAssembler mentions that "It should now be virtually impossible
to accidentally generate bytecode that can crash the interpreter. (If
you find a way, let me know!)"
How do I invoke this validation?
Here's a simplest example after ned and lvh:
code_obj = peak.util.assembler.code(0, 0, 1, 0, "KABOOM", (), (), (),
"gooo", "goo", 1, "l")
crasher = peak.util.assembler.function(cob, {})
crasher() # segv