rpm -Uvh kernel-source-* segfaults in a chroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to setup a chroot environment to build additional drivers.

Trying to install the kernel-source into the chroot causes RPM to seg fault.

The chroot'ed os is RHEL-3-update 5, the OS of the host machine is
SuSE 9.3 (i386).

The strace dump looks like

.....
stat64("/", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat64("/var/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/lib/rpm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/var/lib/rpm", W_OK)            = 0
access("/var/lib/rpm/__db.001", F_OK)   = 0
write(2, "D: ", 3D: )                      = 3
write(2, "opening  db index       /var/lib"..., 61opening  db index   
   /var/lib/rpm/Depends create mode=0x0
) = 61
rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getgid32()                              = 0
getuid32()                              = 0
stat64("/", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat64("/var/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/lib/rpm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/var/lib/rpm", W_OK)            = 0
access("/var/lib/rpm/__db.001", F_OK)   = 0
access("/var/lib/rpm/Basenames", F_OK)  = 0
write(2, "D: ", 3D: )                      = 3
write(2, "opening  db index       /var/lib"..., 63opening  db index   
   /var/lib/rpm/Basenames rdonly mode=0x0
) = 63
stat64("/var/lib/rpm/Basenames", {st_mode=S_IFREG|0644,
st_size=1380352, ...}) = 0
open("/var/lib/rpm/Basenames", O_RDONLY|O_LARGEFILE) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
read(5, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 512) = 512
close(5)                                = 0
open("/var/lib/rpm/Basenames", O_RDONLY|O_LARGEFILE) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=1380352, ...}) = 0
stat64("/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0)                                  = 0x820b000
brk(0x822c000)                          = 0x822c000
rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++


Installing the same package outside of the chroot (using rpm --root to
ensure the files are placed under the choot) works, but I have a
number of interlinked packages - building each one and then having to
install from outside the chroot means I can't automate the build.

Requiing the use or RHEL-3 on the host machine is doable, but I'd
rather not have to re-install the machine without some indication that
the problem lies in that area.

Any thoughts ?


richard.


-- 
-----------------------------------------------------------------------
richard offer @ gmail                   "Specialization is for insects"

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux