Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13667 - Mozilla/Phoenix increasing memory usage of X until crash
Summary: Mozilla/Phoenix increasing memory usage of X until crash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-10 15:29 UTC by Todd Geders
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Geders 2003-01-10 15:29:46 UTC
Using mozilla-1.2.1-r4, phoenix-bin-0.5, xfree-4.2.1-r2, gcc 2.95.3

Problem:  When viewing ~700 kB jpeg images, each time you click on a new image,
memory usage of X goes up 12 MB (based off of command 'top -d.5' and pressing M
to sort by memory usage).  However, when clicking back button and subsequently
viewing another ~700 kB jpeg image, memory usage of X goes up by another 12 MB.
 This continues until all available RAM (256MB) is used and then swap begins to
be filled.  No noticable slowdowns occur.  However, once most of the swap is
full (1 GB in my case) Mozilla will freeze and crash.  Immediately after
crashing, memory used by X returns to a low value (32MB in my case).  This
occurs with BOTH mozilla and phoenix.  

While using Konqueror, this problem does not occur.  Increase in memory usage of
X by 12MB does occur, but the memory seems to be flushed every 4-6 images.  This
seems to be the proper behaviour we should see.

This has been confirmed on other Gentoo boxes (don't have other Linux boxes to
see if it is distro dependant).  Only reason I have brought it up here is that
if you compile phoenix from source (same version, just not from ebuild), the
problem DOES NOT occur, therefore I guess its a gentoo specific problem.

To test, you can go to the same website I did (some guy's vacation photos on a
university server):

http://expert.ics.purdue.edu/~wu01/TRIP-CA/

I can provide any other necessary details if needed.  Extremely reproducible. 
Often once it begins using swap, mozilla will freeze using all available CPU and
slowly consume all available system memory/swap until dying once no memory is
available or I kill mozilla-bin.
Comment 1 Todd Geders 2003-01-12 21:05:41 UTC
Through bugzilla.mozilla.org and discussions with the developers of Mozilla,
this problem has been fixed, but is available in only the nightly builds.  We'll
all just have to wait until 1.3_final or 1.4 (whatever is next).  
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-18 13:54:36 UTC
They cannot send us a patch ? 
Comment 3 Todd Geders 2003-01-18 14:59:34 UTC
http://bugzilla.mozilla.org/show_bug.cgi?id=188581

I'm not sure if there is a patch available, except if you pour through the CVS
logs...that link is for the Mozilla bug I submitted, and they seem to reference
other similar bugs (particularly Mozilla Bug 174760).  Possible patch in Mozilla
Bug 179498.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 08:27:54 UTC
Yep, bug #179498 has a patch, and seems to work.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 08:28:58 UTC
Added patch to mozilla-1.2.1-r5.  Thanks!
Comment 6 Todd Geders 2003-01-19 14:03:26 UTC
Just want to mention that for me (original reporter) mozilla-1.2.1-r5 works
perfectly!  THANKS