Bug 915088

Summary: [abrt] policycoreutils-restorecond-2.1.13-55.fc18: pcre_exec: Process /usr/sbin/restorecond was killed by signal 7 (SIGBUS)
Product: [Fedora] Fedora Reporter: David Highley <david.m.highley>
Component: libselinuxAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dwalsh, eparis, mgrepl, mschmidt
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:eb00e58abb571669fc5b49937520aec337147a20
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-17 13:36:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status none

Description David Highley 2013-02-24 17:59:42 UTC
Description of problem:
As far as we know it happened during a yum update of selinux policies.

Version-Release number of selected component:
policycoreutils-restorecond-2.1.13-55.fc18

Additional info:
backtrace_rating: 4
cmdline:        /usr/sbin/restorecond
crash_function: pcre_exec
executable:     /usr/sbin/restorecond
kernel:         3.7.9-201.fc18.x86_64
remote_result:  NOTFOUND
uid:            0
var_log_messages: Feb 24 09:29:21 douglas abrt[14973]: Saved core dump of pid 848 (/usr/sbin/restorecond) to /var/spool/abrt/ccpp-2013-02-24-09:29:21-848 (1695744 bytes)

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 pcre_exec at pcre_exec.c:6409
 #1 lookup at label_file.c:618
 #2 selabel_lookup_common at label.c:200
 #3 selabel_lookup_raw at label.c:233
 #4 match at restore.c:101
 #5 restore at restore.c:109
 #6 apply_spec at restore.c:289
 #7 process_one at restore.c:349
 #8 process_one_realpath at restore.c:409
 #9 watch_list_find at watch.c:129

Comment 1 David Highley 2013-02-24 17:59:44 UTC
Created attachment 702066 [details]
File: backtrace

Comment 2 David Highley 2013-02-24 17:59:46 UTC
Created attachment 702067 [details]
File: cgroup

Comment 3 David Highley 2013-02-24 17:59:47 UTC
Created attachment 702068 [details]
File: core_backtrace

Comment 4 David Highley 2013-02-24 17:59:49 UTC
Created attachment 702069 [details]
File: dso_list

Comment 5 David Highley 2013-02-24 17:59:50 UTC
Created attachment 702070 [details]
File: environ

Comment 6 David Highley 2013-02-24 17:59:52 UTC
Created attachment 702071 [details]
File: limits

Comment 7 David Highley 2013-02-24 17:59:54 UTC
Created attachment 702072 [details]
File: maps

Comment 8 David Highley 2013-02-24 17:59:55 UTC
Created attachment 702073 [details]
File: open_fds

Comment 9 David Highley 2013-02-24 17:59:56 UTC
Created attachment 702074 [details]
File: proc_pid_status

Comment 10 Michal Schmidt 2013-03-06 12:18:29 UTC
Could be a duplicate of bug 901812.

Comment 11 Daniel Walsh 2013-03-06 17:43:34 UTC
Yes it is the same problem.

Comment 12 Eric Paris 2013-03-06 17:50:31 UTC
In /var/spool/abrt/ccpp-2013-02-24-09:29:21-848 there should be a core dump file.  Can you attach that file?  Can you also include rpm -qa libse\* \*policy\*   ?

Thanks!

Comment 13 Daniel Walsh 2013-03-06 19:05:57 UTC
We have a potential race where we are writing the regex and an app attempts to read it, which this could happen.

libselinux-2.1.12-7.2.fc18  makes this atomic.

Comment 14 David Highley 2013-05-17 13:36:26 UTC
Confirmed fixed with the above version.