Message80332
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. |
|
Date |
User |
Action |
Args |
2009-01-21 16:44:45 | eswald | set | recipients:
+ eswald |
2009-01-21 16:44:45 | eswald | set | messageid: <1232556285.78.0.999173961019.issue5023@psf.upfronthosting.co.za> |
2009-01-21 16:44:44 | eswald | link | issue5023 messages |
2009-01-21 16:44:43 | eswald | create | |
|