[packages/file] - this version breaks rpmbuild, good testcase is gnome-initial-setup package - rel 1.1

Elan Ruusamäe glen at pld-linux.org
Mon Apr 18 18:10:57 CEST 2016


On 18.04.2016 12:04, Jeff Johnson wrote:
> Perhaps the libmagic code is broken, yes.
here's process "stopped" with following output (will post complete 
outputs in separate post):

build-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmbuild.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmbuild.so) 
symbolic link to librpmbuild-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmconstant-5.4.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmconstant-5.4.so) 
symbolic link to /lib64/librpmconstant-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmconstant.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmconstant.so) 
symbolic link to librpmconstant-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmdb-5.4.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmdb-5.4.so) 
symbolic link to /lib64/librpmdb-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmdb.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmdb.so) 
symbolic link to librpmdb-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmio-5.4.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmio-5.4.so) 
symbolic link to /lib64/librpmio-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmio.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmio.so) 
symbolic link to librpmio-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmmisc-5.4.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmmisc-5.4.so) 
symbolic link to /lib64/librpmmisc-5.4.so
--> rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmmisc.so)
<-- rpmmgFile(0x25e7000, 
/home/users/glen/tmp/rpm-5.4.15-root-glen/usr/lib64/librpmmisc.so) 
symbolic link to librpmmisc-5.4.so
--> mg 0x25e7000 -- 1 rpmfcClassify at rpmfc.c:1510




from different terminal stracing the rpmbuild process:


select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000})     = 0 (Timeout)
read(4, 0x7ffd47808c00, 8192)           = -1 EAGAIN (Resource 
temporarily unavailable)
select(4, [], [], NULL, {0, 10000}^Cstrace: Process 224753 detached
  <detached ...>


lsof shows fd4 being:

rpmbuild 224753 glen    4r  FIFO   0,10       0t0   79112236 pipe

which leads to believe it's subprocess pipe?

from ps shows it goes to libtooldeps.sh:

glen     224753  0.7  0.0 200520 13828 pts/1    S+   19:06 
0:01              \_ /usr/bin/rpmbuild --target x86_64 --short-circuit 
--define _specdir /home/users/glen/rpm/packages/rpm --define _sourcedir 
/home/users/glen/rpm/packages/rpm --define clean 
%%%{!?__ldconfig:clean}%{?__ldconfig:check} \ ??exit 0%{nil} --define 
check %%check \ ??exit 0%{nil} --define _source_payload w5.gzdio 
--define _binary_payload w5.gzdio --define __spec_install_pre 
%___build_pre --define __spec_clean_body %{nil} --define 
_enable_debug_packages 0 -bb rpm.spec --without doc --without apidocs 
--rpmmgdebug
glen     224811 98.2  0.0   4452   768 pts/1    R+   19:06 
2:32                  \_ /bin/sh /usr/lib/rpm/libtooldeps.sh --provides 
/home/users/glen/tmp/rpm-5.4.15-root-glen rpm-devel

from strace of libtooldeps process, i see:

read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad file descriptor)
read(0, 0x808808, 1)                    = -1 EBADF (Bad fi^C0x808808, 
1)                    = -1 EBADF (Bad file descriptor)
strace: Process 224811 detached



-- 
glen



More information about the pld-devel-en mailing list