Bug 92027 - Memory leak in spell check
Summary: Memory leak in spell check
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: openoffice.org   
(Show other bugs)
Version: 3.0
Hardware: All Linux
Target Milestone: ---
Assignee: Dan Williams
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2003-05-31 19:36 UTC by Stephen John Smoogen
Modified: 2007-11-30 22:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-05-14 21:39:04 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Stephen John Smoogen 2003-05-31 19:36:41 UTC
Description of problem:

Upstream bug numbers are:

On Sat, 31 May 2003, Mike A. Harris wrote:

>On 31 May 2003, Stephen J Smoogen wrote:
>>> >Looking through the logs what I could tell is that the oowriter grew to 
>>> >more memory than there was swap+main-ram (382 combined) on the machine 
>>> >and the kernel began killing things to get more memory. 
>>> >
>>> >Rather cool, but my wife's comment was 'maybe I should edit this in Word 
>>> >from now on.'
>>> Sounds like OO has gone hostile on system resources, caused an 
>>> OOM condition in the kernel and some random processes got the axe 
>>> from the kernel.
>>> Can you look in your /var/log/messages for VM/OOM errors?
>>That seems to be the case. The kernel reported it killing processes. I
>>did the same steps with the file on my machine with slightly more
>>memory.. and the oowriter grew to 320 megs in size. X similarly grew but
>>I am not sure how much of it is real or virtual. I am guessing between
>>the two of them and cups and other things.. my wifes kernel went into a
>>killing spree.
>OO is probably leaking memory and/or X resources.  In the latter 
>case, X resources are stored and arbitrated in the X server, so 
>when resources are leaked, the X server process will increase in 
>size.  Kill the offending process and the X server will shrink.
>If you've got a reproduceable testcase, might want to bugzilla 
>against OO.

The test case is pretty simple, open any document (any format), misspell
a word and then right click to get alternatives. Watch it begin to leak
memory like a sieve. Keep right clicking and it keeps growing. I got a
1000 word document to grow OO to 800 megs by just having all misspelled

[smooge@glasya Work]$ oowriter LANL.sxw 
Starting OpenOffice.org ...
Hash Manager Error : 1
Error - could not open affix description file 
Failure loading aff file /usr/lib/openoffice/share/dict/ooo/es_MX.aff
Error - could not open affix description file 
Failure loading aff file /usr/lib/openoffice/share/dict/ooo/de_AT.aff

The Hash error shows up as soon as you right click. It must definately 
be leaking X resources because after quiting OO, X dropped down to its 
normal size.

I will file in the Bugzilla as soon as I have finished downloading the 
1.0.3 and 1.1beta tar balls to see if it might be listed in some sort of 

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

1.0.2.. maybe fixed in

How reproducible:


Steps to Reproduce:
1. Make a document with a lot of misspelled words.
2. Right click on words
3. Watch memory go through roof.

Comment 1 Dan Williams 2004-02-27 16:28:17 UTC
Should be fixed in RHEL3 U2 with the update to 1.1.0

Note You need to log in before you can comment on or make changes to this bug.