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.
** Summary changed:
- Apport has a huge memory leak causing system problems
+ recent_syslog() causes a huge memory leak for large log filles
** Summary changed:
- recent_syslog() causes a huge memory leak for large log filles
+ recent_logfile() causes a huge memory leak for large log files
** Also affects: apport (Ubuntu Precise)
Importance: Undecided
Status: Triaged
** Changed in: apport (Ubuntu Precise)
Assignee: (unassigned) => Martin Pitt (pitti)
** Changed in: apport (Ubuntu Precise)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/984256
Title:
recent_logfile() causes a huge memory leak for large log files
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984256/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs