<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>222481</bug_id>
          
          <creation_ts>2008-05-17 10:21 0000</creation_ts>
          <short_desc>dev-lang/python: return more memory from unicode objects to system</short_desc>
          <delta_ts>2008-06-24 13:56:46 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Development</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://bugs.python.org/issue2321</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lindevel@gmx.net</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>lindevel@gmx.net</who>
            <bug_when>2008-05-17 10:21:12 0000</bug_when>
            <thetext>First: I hope this is not duplicate, but I couldn&apos;t find anything, neither in this tracker, nor in the patchset.

Python up to version 2.5.3 (not released yet) has an memory-fragmentation issue with deallocation of unicode and other objects. This results in Python apps which use unicode to consume extreme amounts of memory, without ever returning them to the system.

http://bugs.python.org/issue2321 contains a patch to fix that.
Even though this bug will be fixed in 2.5.3 and higher, I still would like to see it go into the gentoo-patchset, because it is a really annoying problem, making my machine to go out of memory quickly and often.

Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lindevel@gmx.net</who>
            <bug_when>2008-05-17 10:22:42 0000</bug_when>
            <thetext>PS: The SVN revision containing the fix for 2.5 is this one: http://svn.python.org/view?rev=61485&amp;view=rev</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hawking@gentoo.org</who>
            <bug_when>2008-06-24 13:56:46 0000</bug_when>
            <thetext>python-gentoo-patches.2.5.2-r5 has the mentioned patch included.
Thanks for reporting :-)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>