Apport crash while adding gdb_info to report when gdb couldn't load symbol map
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Apport crash while trying to generate a report from a gdb crash core dump.
crash occure in function add_gdb_info() of file report.py on the line (around 687):
if '"ERROR:' in self['GLibAsser
The crash happens because GLibAssertionMe
It's because apport assume that the cmd invoking gdb : "out = _command_
will work and return correct value.
In my case the gdb invokation seems to give an incomplete result starting with :
"[New LWP 18326]\nwarning: Can\'t read pathname for load map: Erreur d\'entr\
therefore parts list is composed of 1 element :
(pdb): len(parts)
1
(Pdb) parts[1]
*** IndexError: list index out of range
I guess a possible correction would be to add a check on the result of the gdb invocation or on the number of items in parts list line 681.
I could provide a patch but i'm not sure what is the cleanest way to correct this.
Affected version is apport 2.9.2.
Related branches
description: | updated |
description: | updated |
description: | updated |
Changed in apport (Ubuntu): | |
status: | Fix Released → New |
summary: |
- Apport crash while generating report from a gdb crash + Apport crash while adding gdb_info to report when gdb couldn't load + symbol map |
Changed in apport (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
Fixed in trunk r2643.