ABRT Backtrace Deduplication Service
Backtrace deduplication service solves the problem of many duplicate crash reports being submitted by ABRT to Red Hat Bugzilla. It is designed to help ABRT users to find duplicate reports before filing a new bug, and to help package maintainers to triage/reassign/merge already reported bugs.
Backtrace deduplication server is a collection of newly-developed tools that will be deployed on the retrace server hardware, which is a part of Fedora infractructure. ABRT will contain a client tool and integration with the server.
- Name: Karel Klic
- Email: kklic at redhat.com
- Name: Michal Toman
- Email: mtoman at redhat.com
- Name: Miroslav Lichvar
- Email: mlichvar at redhat.com
- Targeted release: Fedora 17
- Last updated: 2012-01-17
- Percentage of completion: 60%
Benefit to Fedora
- Red Hat Bugzilla receives a lot of duplicate crash reports from ABRT clients, even for a single component. This makes ABRT reports less useful and causes developers to give ABRT reports lower priority. Red Hat Bugzilla receives a lot of low-quality reports, which should be closed without intervention from maintainers. For example, the simple-scan component is very affected by low quality of ABRT: many of its bug reports are duplicates, and some reports are incorrectly showing __libc_message and similar functions as crash functions.
- Red Hat Bugzilla contains multiple crash reports filed on end-user applications, that are caused by a single bug in a library. The crash reports are then analyzed multiple times by various developers, and that wastes their time.
- Implementation of backtrace metrics and indexes in Btparser.
- Damerau-Levenshtein distance
- Jaro-Winkler distance
- Implementation of backtrace optimization in Btparser.
- Backtrace deduplication service for C/C++ backtraces, which
takes a backtrace and component, and checks backtraces from all
related components (of libraries used by the crashed binary) in
- name: faf-btserver-find-duplicates
- HTTP interface to the backtrace deduplication service,
implemented as a CGI script
- name: faf-btserver-cgi
- must contain a machine interface (plain text)
- must contain a human interface (HTML)
- distinguishes between the two by reading HTTP_ACCEPT environment variable
- Apache configuration file to activate the CGI script
- require a backtrace, component name, operating system version from the user
- respond with a list of bug ids, bug components, operating
system version, and similarity:
625354 glib2 14 94% 688952 glib2 15 94% 654789 emacs 14 92%
- Crash report cleanup service, which merges crashes that are
already reported in Bugzilla. It also finds low quality reports
and duplicates and close/reassign them. The implementation consists of four scripts:
- The merging is done on a component level, where similar bugs from the same component are merged, and also on a cross-component level, where bugs from applications are matched to those of their library dependencies, and bugs in libraries are detected by searching duplicates between components with shared dependencies.
- Achieve the right balance between application bug and
library bug blaming. For example, many applications are
crashing on a
strcmpcall, but we can reasonably assume there is no bug in
- Compute distances and similarity indices between a bug (backtrace of bug) and all relevant bugs
- Compute backtrace quality
- Store the computed data in a bug report
- The number of crash combinations to check is huge. Optimizations might be needed to limit checks to backtraces having the same library calls on stack.
- find similar bugs in the bug reports
- check bug statuses and generate a list of desired actions to be performed on Bugzilla
- Performs desired actions on Bugzilla
- If a bug that is filed on an application but belongs to
a library is detected, it will be either reassinged or a
comment will be added:
It appears that this bug should be moved to component glib2. Other bugs from emacs (bug #644532) and evolution (bugs #758654, #749564) are duplicates of this bug. Please consider marking them as duplicates and moving this bug to glib2.
- faf-btserver-actions-log - generate a log of desired actions on Bugzilla in a text file; this is good for development, tweaking, debugging
- Synchronization script to update server metadata — bugs, backtraces, builds, RPMs
- ABRT client using Backtrace deduplication server
How To Test
None necessary, revert to ABRT using duphash Bugzilla search mechanism.