Python 2.2: segmentation fault in test_strftime

Carsten Gaebler clpy at snakefarm.org
Fri Jan 4 05:42:22 EST 2002


Michael Hudson wrote:
> 
> Carsten Gaebler <clpy at snakefarm.org> writes:

> > Python 2.2 (#2, Jan  3 2002, 14:18:23)
> > [GCC 2.7.2.3] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import calendar
> > >>> calendar.day_abbr[0]
> > 'Mon'
> > >>> calendar.day_abbr[1]
> > 'Tue'
> > >>> calendar.day_abbr[2]
> > Segmentation fault (core dumped)
> >
> > Any ideas what this could be?
> 
> Nope.  Doesn't crash for me.
> 
> What does a backtrace show?  What version of glibc do you have?

Uhm, excuse my ignorance, but what is a backtrace?
glibc is 2.0.7. Seems to be broken - if you can call it 'broken':
strftime() with all fields of the tm struct set to 2 (this is what
calendar.day_abbr does) segfaults. I tested it with a small C program.
I think I can live with that, since this is an extremely pathological
case.


cg.
-- 
Python is taken from python site. What to do? What is that?
                            -- scenes from comp.lang.python



More information about the Python-list mailing list