Public bug reported:

Binary package hint: apport

apport 0.108.4

In apport/report.py (Report.add_gdb_info):

            if hasattr(self['CoreDump'], 'find'):
                (fd, core) = tempfile.mkstemp()
                os.write(fd, self['CoreDump'])
                os.close(fd)
                unlink_core = True
            elif hasattr(self['CoreDump'], 'gzipvalue'):
                (fd, core) = tempfile.mkstemp()
                os.close(fd)
                self['CoreDump'].write(open(core, 'w'))
                unlink_core = True
            else:
                core = self['CoreDump'][0]

if an exception is thrown before unlink_core is set to True the possibly
(almost) fully written temporary core file will be left in /tmp

In my case a SIGSEGV to xulrunner-bin was causing the following
exception:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport/report.py", line 411, in 
add_gdb_info
    self['CoreDump'].write(open(core, 'w'))
  File "/usr/lib/python2.5/site-packages/problem_report.py", line 67, in write
    block = gz.read(1048576)
  File "/usr/lib/python2.5/gzip.py", line 227, in read
    self._read(readsize)
  File "/usr/lib/python2.5/gzip.py", line 275, in _read
    self._read_eof()
  File "/usr/lib/python2.5/gzip.py", line 311, in _read_eof
    raise IOError, "CRC check failed"

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

-- 
error in writing core file leaves temporary core in /tmp
https://bugs.launchpad.net/bugs/397945
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to