summaryrefslogtreecommitdiffstats
path: root/src/plugins/ccpp_events.conf
blob: 53dc806cefc3f279081f893194e3bee6df2cb6b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
EVENT=post-create analyzer=CCpp
        abrt-action-analyze-c &&
        abrt-action-list-dsos.py -m maps -o dso_list &&
        (
            # Try to save relevant log lines.
            # Can't do it as analyzer step, non-root can't read log.
            # It's not an error if /var/log/messages isn't readable:
            test -f /var/log/messages || exit 0
            test -r /var/log/messages || exit 0
            executable=`cat executable` &&
            base_executable=${executable##*/} &&
            grep -F -e "$base_executable" /var/log/messages | tail -999 >var_log_messages &&
            echo "Element 'var_log_messages' saved"
        )

EVENT=analyze_xsession_errors analyzer=CCpp dso_list~=.*/libX11.*
        test -f ~/.xsession-errors || { echo "No ~/.xsession-errors"; exit 1; }
        test -r ~/.xsession-errors || { echo "Can't read ~/.xsession-errors"; exit 1; }
        executable=`cat executable` &&
        base_executable=${executable##*/} &&
        grep -F -e "$base_executable" ~/.xsession-errors | tail -999 >xsession_errors &&
        echo "Element 'xsession_errors' saved"

# TODO: can we still specify additional directories to search for debuginfos,
# or was this ability lost with move to python installer?
EVENT=analyze_LocalGDB analyzer=CCpp
        abrt-action-analyze-core.py --core=coredump -o build_ids &&
        abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096 &&
        abrt-action-generate-backtrace &&
        abrt-action-analyze-backtrace

EVENT=analyze_RetraceServer analyzer=CCpp
        abrt-retrace-client batch --dir "$DUMP_DIR" --status-delay 10 &&
        abrt-action-analyze-backtrace

EVENT=report_Bugzilla analyzer=CCpp
        test -f component || abrt-action-save-package-data
        abrt-action-bugzilla -c /etc/abrt/plugins/Bugzilla.conf