Bug 81796

Summary: python time.strptime() causes segfault
Product: Red Hat Enterprise Linux 2.1 Reporter: dann frazier <dannf>
Component: pythonAssignee: Mihai Ibanescu <mihai.ibanescu>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-03-12 16:46:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dann frazier 2003-01-14 02:57:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021226
Debian/1.2.7-6

Description of problem:
$ python
Python 1.5.2 (#1, Jun 11 2002, 12:12:36)  [GCC 2.96 20000731 (Red Hat Linux 7.2
2 on linux-ia64
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import time
>>> time.strptime("Wed Dec  4 02:30:24 2002")
Segmentation fault

$ uname -a
Linux bobgwp.bobg 2.4.18-e.12smp #1 SMP Thu Oct 17 15:13:01 EDT 2002 ia64 unknown

on a Debian 3.0 ia64 box:
$ python
Python 2.1.3 (#1, Apr 20 2002, 20:46:09) 
[GCC 2.96 20000731 (Debian GNU/Linux IA64 experimental)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime("Wed Dec  4 02:30:24 2002")
(2002, 12, 4, 2, 30, 24, 2, 338, 0)
>>> 
$ python1.5 
Python 1.5.2 (#0, Jan 13 2002, 02:38:23)  [GCC 2.96 20000731 (Debian GNU/Linux
IA64 experimental)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import time
>>> time.strptime("Wed Dec  4 02:30:24 2002")
(2002, 12, 4, 2, 30, 24, 2, 338, 0)
>>> 

back to the aw2.1 box:
$ rpm -qa | grep python
python-xmlrpc-1.5.1-7.x.3
rpm-python-4.0.4-7x.20
python-popt-0.8.8-7.x.2
python-devel-1.5.2-38
python-1.5.2-38

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. run python
2. 'import time'
3. 'time.strptime("Wed Dec  4 02:30:24 2002")'
    

Actual Results:  Segmentation fault

Expected Results:  (2002, 12, 4, 2, 30, 24, 2, 338, 0)

Additional info:

Comment 1 Mihai Ibanescu 2003-02-04 00:05:30 UTC
This has been fixed, and the packages are in QA. If you want to test the
packages yourself, I can definitely hand them off to you, otherwise they're
gonna show up in an erratum.

Comment 2 Mihai Ibanescu 2003-02-27 23:41:58 UTC
Errata was shipped - please confirm bug is fixed.

Comment 3 dann frazier 2003-03-12 16:40:49 UTC
ack.  i reproduced on an AS 2.1 system running 1.5.2-38, upgraded to
1.5.2-43.72, and verified it was fixed.  thanks!

Comment 4 Mihai Ibanescu 2003-03-12 16:46:03 UTC
Cool. Closing