Bug 679315 - [RFE] Add abrt support in beakerlib
Summary: [RFE] Add abrt support in beakerlib
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Petr Muller
QA Contact:
URL:
Whiteboard: Project: Medium
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-22 08:25 UTC by Michal Nowak
Modified: 2014-04-17 15:49 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 591923
Environment:
Last Closed: 2014-04-17 15:49:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Nowak 2011-02-22 08:25:59 UTC
We always want to know that a crash in packaged binary was detected.

Set: OpenGPGCheck = no && restart abrtd service

On crash some sort of [ FAIL ] warning with custom created log from /var/spool/abrt/$reporter-$date-$pid/ directory should be produced. But do not generate, by default, backtrace because it's time consuming. Also do not rlBundleLog corefile -- it's quite huge.

One can place such a log generating command or link to the script to RunApp() function, e.g.

[ Common ]

ActionsAndReporters = RunApp("echo abrt: Crash in $(cat package) detected:
$(cat reason) | wall", "/tmp/__beakerlib_abrt_crash")

Perhaps `/tmp/__beakerlib_abrt_crash` could be socket not just regular file, so abrt can "append" to it.

By using wall(1) we can see the msg on stdout (and TESTOUT.log).

Ideas? Comments? Code?

Comment 1 Petr Muller 2011-02-23 10:07:21 UTC
Very nice one. We will need to deal with old RHELs (is abrt in RHEL4 / 5 ?), and perhaps also with 'legit/expected' segv/abrts. Some of the tests directly introduce segvs. Probably 'on by default, test can switch it off' approach would work.

Comment 2 Michal Nowak 2011-02-23 10:32:56 UTC
(In reply to comment #1)
> Very nice one. We will need to deal with old RHELs (is abrt in RHEL4 / 5 ?),

RHEL4 no. RHEL5 not yet (and perhaps never will be).

> and perhaps also with 'legit/expected' segv/abrts. Some of the tests directly
> introduce segvs. Probably 'on by default, test can switch it off' approach
> would work.

Most segv/abrts are from unpackaged binaries, they won't be caught (by default). 

There may be some cases when you want to intentionally crash packaged binary (and we are also sure we don't want to fix this "issue", e.g. bug 433662).

There may be function `rlAbrtBlacklist $package`, intentionally & temporary blacklisting $package for whole test runtime, and then reverted. Unfortunately, there's no API to call some abrt function and handle it with $package, it would have to be done manually with sed, awk, etc.

Comment 5 Petr Muller 2014-04-17 15:49:38 UTC
I don't think anything new will happen here.


Note You need to log in before you can comment on or make changes to this bug.