Skip to content

invalid ref count on locale.strcoll() error #47553

Closed

Description

@vstinner
BPO 3303
Nosy @loewis, @birkenfeld, @vstinner
Files
  • locale_strcoll_rel1.patch: Patch fixing refcount in strcoll error
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/loewis'
    closed_at = <Date 2008-07-20.20:45:03.995>
    created_at = <Date 2008-07-06.16:06:09.180>
    labels = ['library', 'type-crash']
    title = 'invalid ref count on locale.strcoll() error'
    updated_at = <Date 2008-07-20.20:45:03.954>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2008-07-20.20:45:03.954>
    actor = 'georg.brandl'
    assignee = 'loewis'
    closed = True
    closed_date = <Date 2008-07-20.20:45:03.995>
    closer = 'georg.brandl'
    components = ['Library (Lib)']
    creation = <Date 2008-07-06.16:06:09.180>
    creator = 'vstinner'
    dependencies = []
    files = ['10832']
    hgrepos = []
    issue_num = 3303
    keywords = ['patch']
    message_count = 3.0
    messages = ['69336', '69337', '70090']
    nosy_count = 3.0
    nosy_names = ['loewis', 'georg.brandl', 'vstinner']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue3303'
    versions = ['Python 2.6']

    Activity

    1. vstinner commented on Jul 6, 2008

      @vstinner
      MemberAuthor

      If locale.strcoll(a, b) fails because PyUnicode_FromObject(b) fails,
      refcount of a is wrong. Attached patch fixes the problem.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Jul 6, 2008
    3. vstinner commented on Jul 6, 2008

      @vstinner
      MemberAuthor

      Example to reproduce the bug:

      import locale; locale.strcoll(u"a", None)
    4. birkenfeld commented on Jul 20, 2008

      @birkenfeld
      Member

      Fixed in r65134.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions