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.

classification
Title: invalid ref count on locale.strcoll() error
Type: crash Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: georg.brandl, loewis, vstinner
Priority: high Keywords: patch

Created on 2008-07-06 16:06 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
locale_strcoll_rel1.patch vstinner, 2008-07-06 16:06 Patch fixing refcount in strcoll error
Messages (3)
msg69336 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-07-06 16:06
If locale.strcoll(a, b) fails because PyUnicode_FromObject(b) fails, 
refcount of a is wrong. Attached patch fixes the problem.
msg69337 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-07-06 16:07
Example to reproduce the bug:

import locale; locale.strcoll(u"a", None)
msg70090 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-07-20 20:45
Fixed in r65134.
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47553
2008-07-20 20:45:03georg.brandlsetstatus: open -> closed
nosy: + georg.brandl
resolution: fixed
messages: + msg70090
2008-07-06 17:12:01loewissetpriority: high
2008-07-06 16:56:42georg.brandlsetassignee: loewis
nosy: + loewis
2008-07-06 16:07:27vstinnersetmessages: + msg69337
2008-07-06 16:06:09vstinnercreate