New submission from Eric Wald <pythoni...@brainshell.org>: Execution of "make test" for Python 2.6.1 halts with a segmentation fault on line 2198 of Python-2.6.1/Lib/test/test_datetime.py; also occurs using the attached script, narrowing it down to the %z sequence in the format argument to datetime.time.strftime(), but only when the time object has a non-None tzinfo. The segfault disappears when I comment out line 1133 of Python-2.6.1/Modules/datetimemodule.c:
PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes); Compiled with GCC 3.4.3 with Smashing Stack Protector on LFS 5.1.1 (Linux 2.6.11.12 and glibc 2.3.5 with ssp patches). Using BASECFLAGS=- fno-stack-protector has no effect on the segfault. All other Python tests pass. HAVE_SNPRINTF has been defined to 1 in pyconfig.h by the config script. I have not yet compiled gdb, but I can if requested. ---------- components: Library (Lib) files: zone_failure.py messages: 80332 nosy: eswald severity: normal status: open title: Segfault in datetime.time.strftime("%z") type: crash versions: Python 2.6 Added file: http://bugs.python.org/file12825/zone_failure.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5023> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com