[issue29434] tuple.__repr__ may segv when it contains NULL

2017-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks similar to issue26811. I think that if the reproducer is found it would be better to fix the case of leaking a tuple containing NULL rather than making repr() be aware of NULLs. repr() is not the only way to crash with such tuples. -- nos

[issue29434] tuple.__repr__ may segv when it contains NULL

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: The patch missed `continue;`. And I couldn't reproduce the problem for now. I'll reopen when I can reproduce the problem. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue29434] tuple.__repr__ may segv when it contains NULL

2017-02-03 Thread INADA Naoki
New submission from INADA Naoki: sys.getobjects() contains tuples including NULLs. Even without pydebug, tuple under construction can be exposed accidentally. Allowing repr() for such tuples ease investigating what is the tuple. -- components: Interpreter Core files: tuple-repr-NULL.pat