Bug 150301
Summary: | fixfiles segmentation fult | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John Ellson <john.ellson> | ||||||||||
Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> | ||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | rawhide | CC: | dwalsh, pgraner, sdsmall | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2005-03-14 16:33:54 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
John Ellson
2005-03-04 15:01:28 UTC
I can not replicate this. Could you attach the contents of your /etc/fstab? Is there anything unusual in there? Dan I don't think there is anything unusual, unless you count software raid? ellson@ontap:~> cat /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 LABEL=SWAP-sdb1 swap swap defaults 0 0 LABEL=SWAP-sda2 swap swap defaults 0 0 /dev/hda /media/cdrecorder auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0 ellson@ontap:~> Ok this is doing a setfiles /etc/selinux/targeted/contexts/files/file_context / Which is segfaulting. Could you try that? If it does fail Could you strace it? Assuming you meant "file_contexts" with an 's', no it doesn't fail. root@ontap:ellson# setfiles /etc/selinux/targeted/contexts/files/file_contexts / setfiles: labeling files under / matchpathcon_filespec_eval: hash table stats: 1932382 elements, 34979/65536 buc kets used, longest chain length 117 setfiles: Done. root@ontap:ellson# rpm -qf /usr/sbin/setfiles policycoreutils-1.21.20-3 root@ontap:ellson# Ok could you try sh -x fixfiles restore What is segfaulting? Dan Created attachment 111763 [details]
output of: sh -x fixfiles restore
Created attachment 111764 [details]
cut&paste of gdb stack
Its something strange with /boot
Created attachment 111765 [details]
cut&paste of gdb stack - w libselinux debuginfo
The problem does not occur with just "/boot", it needs to be "/ /boot".
Created attachment 111783 [details]
Patch for bug in matchpathcon_filespec_add
This patch fixes a bug in matchpathcon_filespec_add; failure to zero the
fl_head array after allocation.
Fixed in libselinux-1.21.13-1 Works for me (libselinux-1.22-1). Thanks everyone. |