Bug 11621

Summary: Segfault when using yum to setup a centos chroot
Product: Mageia Reporter: Erwan VELU <erwanaliasr1>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: Normal Keywords: PATCH, Triaged
Version: 3   
Target Milestone: Mageia 4   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: rpm-4.11.0.1-1.mga3.src.rpm CVE:
Status comment:

Description Erwan VELU 2013-11-08 15:36:52 CET
Description of problem:
When setting up a chroot with yum, it segfault when doing transactions.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
rm -rf /root/p
rpm --initdb --root=/root/p
mkdir p/dev/
mknod -m 0444 /root/p/dev/urandom c 1 9
mknod -m 0444 /root/p/dev/random c 1 8
wget http://mirror.centos.org/centos/6.4/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm -O /root/p/centos-release-6-4.el6.centos.10.x86_64.rpm
rpm -ivh --root=/root/p /root/p/centos-release-6-4.el6.centos.10.x86_64.rpm
rpm --root=/root/p --import /root/p/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
yum -y --installroot=/root/p groupinstall Core


Solution:
Thanks to Panu on #rpm.org, the filetrigger patch we have is the root cause of this bug. I recompiled rpm without the patch and it works fine.

He offered me to test  http://laiskiainen.org/tmp/rpm-4.11.1-filetriggers.patch and it didn't segfault neither.

So please, update this patch on both mga3 & cauldron to make transactions for segfaulting.

Reproducible: 

Steps to Reproduce:
Erwan VELU 2013-11-08 15:37:14 CET

Hardware: i586 => All
Target Milestone: --- => Mageia 4

Manuel Hiebel 2013-11-08 19:41:42 CET

Keywords: (none) => PATCH, Triaged
Assignee: bugsquad => thierry.vignaud

Comment 1 Thierry Vignaud 2013-11-13 18:08:33 CET
rpm-4.11.1-7.mga4 is in core/updates_testing

Status: NEW => RESOLVED
Resolution: (none) => FIXED