~apport-hackers/apport/trunk

« back to all changes in this revision

Viewing changes to apport/report.py

  • Committer: Brian Murray
  • Date: 2018-02-02 01:20:53 UTC
  • Revision ID: brian@canonical.com-20180202012053-mabwaqsjzb3ncxmt
gdb's version 8.0.90 output changed from Warning to warning however to support using gdb in a sandbox we need to support either so check for both.

Show diffs side-by-side

added added

removed removed

Lines of Context:
725
725
 
726
726
        # check for truncated stack trace
727
727
        if 'is truncated: expected core file size' in out:
728
 
            warnings = '\n'.join([l for l in out.splitlines() if 'Warning:' in l])
 
728
            if 'warning:' in out:
 
729
                warnings = '\n'.join([l for l in out.splitlines() if 'warning:' in l])
 
730
            elif 'Warning:' in out:
 
731
                warnings = '\n'.join([l for l in out.splitlines() if 'Warning:' in l])
729
732
            reason = 'Invalid core dump: ' + warnings.strip()
730
733
            self['UnreportableReason'] = reason
731
734
            raise IOError(reason)