Skip to content

Debug message printed in release mode upon invalid Opcode #96711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
serge-sans-paille opened this issue Sep 9, 2022 · 0 comments
Closed

Debug message printed in release mode upon invalid Opcode #96711

serge-sans-paille opened this issue Sep 9, 2022 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@serge-sans-paille
Copy link
Contributor

Bug report

When decoding an invalid opcode (say opcode '0') Python raises a SystemError but also prints debug information on stderr. I think it would be better not to print these debug information in the (very uncommon!) case where such decode errors are a potential scenario that should be gracefully handled.

Simple reproducer:

exec(CodeType(0, 0, 0, 10, 0, b'\x00', (), (), (), '<>', '', 0, b''))
@serge-sans-paille serge-sans-paille added the type-bug An unexpected behavior, bug, or error label Sep 9, 2022
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 9, 2022
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 19, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 19, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 19, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 19, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 20, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 20, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 20, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 20, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
serge-sans-paille added a commit to serge-sans-paille/cpython that referenced this issue Sep 20, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant