Bug 1378469

Summary: Don't expect kernel's version '2.6.*' or '3.*.*'
Product: Red Hat Enterprise Linux 7 Reporter: Matej Habrnal <mhabrnal>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: isenfeld, jfeeney, mkyral, yselkowi
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-2.1.11-46.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 18:15:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1381083    
Attachments:
Description Flags
Patch 1/2: lib: don't expect kernel's version '2.6.*' or '3.*.*'
none
Patch 2/2: koops: do not assume version has 3 levels none

Description Matej Habrnal 2016-09-22 13:25:10 UTC
Description of problem:
The function parsing kernel's version was expecting one of the strings
mentioned in Summary. Unfortunately, none of them appears in oopses for
kernel-4.*.*

For instance, if the kernel is in version 4.5.0-3.el7.aarch64, koops_extract_version() matches the kernel version as 3.el7.aarch64 (expects the version starts with 3.*.) This causes abrt remove oops dump directory because a tool abrt-action-save-package-data can't find information about package kernel-3.el7.aarch64.

In case the kernel is in version 4.5.0-2.el7.aarch64, koops_extract_version() don't match the version as valid and uname -r version is used instead.


Additional info:
Upstream patches:
https://github.com/abrt/abrt/commit/9023d77ad5539433146b59e5ac80e3cefcb20cf7
https://github.com/abrt/abrt/commit/197a39938e57b2a3e8487613d62e0edf39d4d29c

Comment 2 Matej Habrnal 2017-01-26 12:58:16 UTC
Opened upstream pull request https://github.com/abrt/abrt/pull/1223

Comment 4 Matej Habrnal 2017-02-14 12:13:25 UTC
Created attachment 1250198 [details]
Patch 1/2: lib: don't expect kernel's version '2.6.*' or '3.*.*'

Comment 5 Matej Habrnal 2017-02-14 12:13:29 UTC
Created attachment 1250199 [details]
Patch 2/2: koops: do not assume version has 3 levels

Comment 7 errata-xmlrpc 2017-08-01 18:15:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1927