[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

Charles-Francois Natali report at bugs.python.org
Sat Feb 26 12:41:10 CET 2011


Charles-Francois Natali <neologix at free.fr> added the comment:

> If it's broken, complain to Apple.

Actually, I checked glibc's asctime, and it has the same behaviour. But the point is that asctime can return NULL.

> That still doesn't explain the OP's crash on OS X 10.6.6.

Yes it does. If asctime returns NULL, you'll segfault.
Now, if you ask me why he's encoutering this bug, I'd guess that he's using py3k' test_time.py, which added tests feeding invalid tuples to time.asctime. But it's just a wild guess.

Anyway, the code in python 2.7 is buggy, and must be fixed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11327>
_______________________________________


More information about the Python-bugs-list mailing list