Application that provides the possibility of remote coredump analysis.
- Name: Michal Toman
- Email: email@example.com
- Targeted release: Fedora 15
- Last updated: 2011-01-12
- Percentage of completion: 80%
At the moment of backtrace creation user needs to have all relevant debuginfos installed locally. Downloading and installing them may require a lot of time and storage space depending on the package and its dependencies. The idea of Retrace Server is to liberate users from this: User sends the coredump packed along with some other required information (e.g. packages list) to the Retrace Server, the Retrace Server installs required debuginfo files, creates backtrace using standard debugging tools and provides it to the user for further processing.
Benefit to Fedora
No need to download debuginfo packages while creating backtrace from various binary crashes.
The project itself consists of 3 parts:
- Interface: Receives the archive from user, unpacks all files, puts new task into the queue.
- Analyzer: Takes the task from queue, for each creates a virtual root with all required packages and debuginfos installed and creates the backtrace within.
- Repo Synchronizer: Downloads packages to a local repository containing all versions of all packages, to be able to handle crashes from older versions.
ABRT plugin that packs required files and sends the archive to the Retrace Server must be implemented.
How To Test
The communication between client and server will be handled by future ABRT plugin. As soon as it is implemented, the testing script will be removed.
At the moment, testing is possible using "test-uploader" from "retrace" branch of ABRT Git repository. The script is only designed for test purposes and does not handle all errors possible.
The script upload.py takes two arguments:
First (mandatory) - ABRT crash directory, by default found in the /var/spool/abrt/ directory.
Second (optional) - Retrace server address (not important at the moment, there is only one testing machine running retrace server - retrace01.fedoraproject.org).
Running upload.py with different number of arguments will display short help message.
retrace01.fedoraproject.org machine should handle Fedora 13 x86_64, Fedora 14 i686 and Fedora 14 x86_64 crashes.
Script's output includes raw HTTP response containig X-Task-Id and X-Task-Password headers. You may ask the retrace server about three things using these headers:
- Status - HTTP response contains X-Task-Status header with one of three values 'PENDING', 'FINISHED_SUCCESS', 'FINISHED_FAILURE'. wget may be used to show the output (the HTTP response body is the same as X-Task-Status header's value):
wget -S --no-check-certificate -O /dev/null --header="X-Task-Password: <Task-Password>" "https://retrace01.fedoraproject.org/<Task-Id>/"
- Log - Afrer retrace is finished (FINISHED_SUCCESS or FINISHED_FAILURE) the log is available. wget may be used to download the log:
wget -S --no-check-certificate --header="X-Task-Password: <Task-Password>" "https://retrace01.fedoraproject.org/<Task-Id>/log"
- Backtrace - Afrer successful retrace (FINISHED_SUCCESS) the backtrace is available. wget may be used to download the backtrace:
wget -S --no-check-certificate --header="X-Task-Password: <Task-Password>" "https://retrace01.fedoraproject.org/<Task-Id>/backtrace"
Each Task-Password is for single use. After every status / log / backtrace request, the response contains X-Task-Password header with new Task-Password.
If ABRT catches a crash that needs to be retraced, user will be given option to either generate backtrace locally (no change) or use Retrace Server.
Not required, feature can easily be disabled.
- The user has to trust Retrace Server's administrator because of sensitive data that may be contained in the coredump.