Bug 408141 - wpa_supplicant leaks about 100KB per hour on my laptop
Summary: wpa_supplicant leaks about 100KB per hour on my laptop
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: wpa_supplicant
Version: 8
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-03 00:12 UTC by Pádraig Brady
Modified: 2008-01-16 21:52 UTC (History)
0 users

Fixed In Version: 0.5.7-19
Clone Of:
Environment:
Last Closed: 2008-01-16 21:52:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pádraig Brady 2007-12-03 00:12:24 UTC
wpa_supplicant-0.5.7-16.fc8 leaks about 100KB per hour on my
intel 2200BG laptop.

I noticed it using 46MB once. Monitoring it again now shows:

$ while true; do ps -C wpa_supplicant -orss=; sleep 300; done
11656
11668
11676

Comment 1 Dan Williams 2007-12-03 15:04:23 UTC
neat; will try to track this down.  thanks for the heads-up

Comment 2 Dan Williams 2007-12-06 23:09:14 UTC
FYI; I'm pretty sure I know where the leaks are (2 of them) and will fix them in
the next update.

Comment 3 Dan Williams 2007-12-06 23:34:10 UTC
Can you test out http://koji.fedoraproject.org/koji/taskinfo?taskID=280449 when
it's done, and see if that fixes the leaks for you?

Comment 4 Pádraig Brady 2007-12-07 11:57:53 UTC
That package seems to start 2 wpa_supplicant processes:
$ ps -C wpa_supplicant -oargs=
wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -ieth1 -Dwext -B
/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f

Neither of them leak though :)
$ while true; do ps -C wpa_supplicant -orss=; sleep 300; done
  812
 1912
  812
 1912
  812
 1912
  812
 1912

thanks Dan.

Comment 5 Dan Williams 2007-12-07 12:01:39 UTC
Hmm, I guess we need a way to ensure that the new init stuff doesn't start
things unelss they are configured.  Can you obtain the output of:

/sbin/chkconfig --list | grep wpa_supplicant

for me to ensure that you have wpa_supplicant turned _off_ at boot time?  It
doesn't matter for NetworkManager, because NetworkManager starts wpa_supplicant
on-demand through dbus service activation, so only uses it when it needs to.

However, if the new initscript bits start wpa_supplicant unconditionally now,
that's wrong and I need to fix that.

Comment 6 Pádraig Brady 2007-12-07 13:06:00 UTC
Hmm RSS went from 1912 to 1916 after 20 mins,
but has held steady there for the last hour,
so I still think the leak is gone.

As for 2 processes being started, wpa_supplicant _is_ started
in runlevel 5 (and previously has failed due to eth1 not being
available at that time).
I did /etc/init.d/wpa_supplicant restart, after which I got both processes.
I'll turn wpa_supplicant off in runlevel 5 as you suggest.
So I think this is all OK also.

Comment 7 Dan Williams 2007-12-07 14:38:49 UTC
Yeah, if you're using NetworkManager exclusively you don't need to use the
/etc/init.d facilities; you can (as root) simply 'killall -TERM wpa_supplicant'
and it'll get started again automatically when NM needs it.

Comment 8 Fedora Update System 2007-12-07 21:31:21 UTC
wpa_supplicant-0.5.7-19.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update wpa_supplicant'

Comment 9 Dan Williams 2008-01-16 21:52:37 UTC
Should be long-fixed with -19 and later


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