[ABRT PATCH] xorg_event.conf: use abrt-action-list-dsos to create dso_list

Richard Marko rmarko at redhat.com
Thu Aug 29 09:52:41 UTC 2013


Pushed.

On 08/26/2013 03:16 PM, Denys Vlasenko wrote:
> We used to use a shell script for this, but its format lists just
> a package name:
>   mesa-dri-drivers-8.0.4-1.fc17.x86_64
> instead of the more informative format used by ccpp:
>   /usr/lib64/libssl3.so nss-3.14.3-2.fc18.x86_64 (Fedora Project) 1370297473
>
> An added benefit is that by using abrt-action-list-dsos, we reuse code and use
> the same format of list of DSOs for ccpp and xorg problems.
>
> Signed-off-by: Denys Vlasenko <dvlasenk at redhat.com>
> ---
>  src/plugins/xorg_event.conf | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/plugins/xorg_event.conf b/src/plugins/xorg_event.conf
> index 1bd7617..e6d0a3a 100644
> --- a/src/plugins/xorg_event.conf
> +++ b/src/plugins/xorg_event.conf
> @@ -2,9 +2,9 @@ EVENT=post-create analyzer=xorg
>  	# Blacklist known binary-only modules.
>  	# Generate duplicate detection hashes.
>  	abrt-action-analyze-xorg
> -
> +	#
>  	# Get versions of binaries listed in Xorg backtrace
> -	cat backtrace | cut -f2 -d" " | xargs rpm -qf | sort -u >> backtrace_binaries_versions
> +	abrt-action-list-dsos -m backtrace -o dso_list
>  	#
>  	test -f /var/log/Xorg.0.log && cp /var/log/Xorg.0.log .
>  	test -f /etc/X11/xorg.conf && cp /etc/X11/xorg.conf .


-- 
Richard Marko



More information about the Crash-catcher mailing list