[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.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.patch
keywords: patch
messages: 286861
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: tuple.__repr__ may segv when it contains NULL
versions: Python 3.7
Added file: http://bugs.python.org/file46501/tuple-repr-NULL.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com