recent_logfile() causes a huge memory leak for large log files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Precise |
Fix Released
|
High
|
Martin Pitt |
Bug Description
SRU TEST CASE: See comment 7
At some point, an apparent memory leak has been introduced into apport making it bring systems to a grinding halt while it tries to run.
I've noticed this over the last few days, so I suspect it's a fairly recent change. Today, I've tried filing a bug twice using apport, however, each time, the apport process chews through up to 3.5GB of RAM before it finally crashes. Here's the python trace generated after it finally runs out of memory:
bladernr@klaatu:~$ ubuntu-bug linux
ERROR: hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
report[
File "/usr/lib/
return command_
File "/usr/lib/
stderr=
File "/usr/lib/
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File "/usr/share/
app.run_argv()
File "/usr/lib/
return self.run_
File "/usr/lib/
self.
File "/usr/lib/
icthread.
File "/usr/lib/
self._retval = self.__
File "/usr/lib/
elif not apport.
File "/usr/lib/
stdout=
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in apport (Ubuntu): | |
status: | Fix Committed → Fix Released |
My system is completely unusable while apport runs because of it's rampant memory consumption.