This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eswald
Recipients eswald
Date 2009-01-21.16:44:42
SpamBayes Score 2.4739238e-06
Marked as misclassified No
Message-id <1232556285.78.0.999173961019.issue5023@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-21 16:44:45eswaldsetrecipients: + eswald
2009-01-21 16:44:45eswaldsetmessageid: <1232556285.78.0.999173961019.issue5023@psf.upfronthosting.co.za>
2009-01-21 16:44:44eswaldlinkissue5023 messages
2009-01-21 16:44:43eswaldcreate