Comment 7 for bug 984256

Revision history for this message
Martin Pitt (pitti) wrote : Re: Apport has a huge memory leak causing system problems

I let /var/log/syslog grow massively with

$ yes 'Apr 20 11:30:00 donald kernel: bogus message' | sudo tee -a /var/log/syslog >/dev/null

and ^Ced after it readed a Gigabyte. Running "apport-bug linux" then reproduces the bug.

The faulty function is attach_wifi() in /usr/share/apport/package-hooks/source_linux.py, which calls

  report['WifiSyslog'] = recent_syslog(re.compile(r'(NetworkManager|modem-manager|dhclient|kernel|wpa_supplicant)(\[\d+\])?:'))

and recent_syslog() has no rate limit.