Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue22044

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Premature Py_DECREF while generating a TypeError in call_tzinfo_method
Type:crashStage:
Components:Library (Lib)Versions:Python 3.4, Python 3.5
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: rhettingerNosy List: Knio, belopolsky, python-dev, rhettinger
Priority:normalKeywords:patch

Created on2014-07-23 04:53 byKnio, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
python_bug.diffKnio,2014-07-23 04:53patch
python_crash.pyKnio,2014-07-23 04:56test case
Messages (4)
msg223722 -(view)Author: Tom Flanagan (Knio)*Date: 2014-07-23 04:53
call_tzinfo_method inModules/_datetimemodule.c:900 calls Py_DECREF(offset)before trying to use offset to generate a TypeError message.This causes a crash if that was the last reference to offset and Py_DECREF clears it.
msg223723 -(view)Author: Tom Flanagan (Knio)*Date: 2014-07-23 04:56
Included python test case which causes a segmentation fault onPython 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linuxPython 3.5.0a0 (default:89665cc05592+, Jul 22 2014, 21:35:55) [GCC 4.8.2] on linux
msg224006 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2014-07-25 22:00
New changeset01c6d2893092 by Raymond Hettinger in branch '3.4':Issue#22044: Fixed premature DECREF in call_tzinfo_method.http://hg.python.org/cpython/rev/01c6d2893092
msg224007 -(view)Author: Raymond Hettinger (rhettinger)*(Python committer)Date: 2014-07-25 22:02
Thanks for the patch.
History
DateUserActionArgs
2022-04-11 14:58:06adminsetgithub: 66243
2014-07-25 22:02:41rhettingersetstatus: open -> closed
resolution: fixed
messages: +msg224007
2014-07-25 22:00:37python-devsetnosy: +python-dev
messages: +msg224006
2014-07-25 21:15:01rhettingersetassignee:rhettinger

nosy: +rhettinger
versions: - Python 3.3
2014-07-23 04:56:18Kniosetfiles: +python_crash.py

messages: +msg223723
2014-07-23 04:53:02Kniocreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp