Bug #2307

Firefox has memory leak

Added by phma almost 3 years ago. Updated over 2 years ago.

Status:NewStart date:02/16/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I had Firefox (the prepackaged one that calls itself Aurora) open for two days or so. If I use it after it's been up for several hours, it gets slow, and I have to kill and restart it. I forgot to do this, so during Hammer maintenance, the kernel killed X, resulting in a strange display. I had to shell in from another box and kill kdm, then as processes still using the dead X remained, I had to reboot. Firefox version is 6.0.2; kernel version is v3.1.0.114.g7fba7-DEVELOPMENT. I had a few Google Docs and Google Maps open in it. I don't see Konqueror taking over the memory like this.

History

#1 Updated by phma almost 3 years ago

It happened again last night, without Firefox. /var/log/messages has lines like this:

Feb 17 06:14:51 darner kernel: swap_pager_getswapspace: failed alloc=2
Feb 17 06:14:51 darner kernel: swap_pager_getswapspace: failed alloc=5
Feb 17 06:14:51 darner kernel: swap_pager_getswapspace: failed alloc=4
Feb 17 06:14:51 darner kernel: swap_pager_getswapspace: failed alloc=2
Feb 17 06:15:22 darner kernel: Warning: system low on memory+swap!
Feb 17 06:15:46 darner last message repeated 7 times
Feb 17 06:18:12 darner last message repeated 31 times
Feb 17 06:18:14 darner kernel: Warning: system low on memory+swap!
Feb 17 06:18:14 darner kernel: pid 1066 (Xorg), uid 0, was killed: out of swap space
Feb 17 06:18:21 darner kdm[1063]: X server for display :0 terminated unexpectedly
Feb 17 06:19:15 darner kdm[1063]: X server startup timeout, terminating
Feb 17 06:19:34 darner kdm[1063]: X server for display :0 cannot be started, session disabled

#2 Updated by phma almost 3 years ago

Looks like the program responsible for eating memory and causing X to crash is not Firefox, but the XFCE4 Terminal.I saw it taking a gig of memory with only two tabs.

#3 Updated by dragonflybsd1 over 2 years ago

Do you want this ticket closed?
Both issues (mem leak in firefox and mem leak in xfce4 terminal) are walking the line between dragonfly issue and developer-of-package issue.

#4 Updated by phma over 2 years ago

I'm pretty sure by now that the Firefox taking up more memory is the result of opening Google Docs or exploring Google Maps. The XFCE terminal, though, definitely has a bug, and I haven't seen that bug on my Linux laptop, which has XFCE. Konsole also has a bug, which results sometimes in every Konsole window hanging when one of them runs less, but that seems to be a known bug in Konsole. I'm going to wait until the next release of binary packages and see if those bugs are still there.

Also available in: Atom PDF