[CentOS] Yum hangs while doing update

Mon Jul 1 19:34:07 UTC 2013
Eero Volotinen <eero.volotinen at iki.fi>

try strace -f  rpm -vv -V rpm


2013/7/1 ken <gebser at mousecar.com>

> On 07/01/2013 02:46 PM Eero Volotinen wrote:
>
>> try using strace -p PID-OF-YUM and output to mailinglist
>>
>
> Here's the last few lines of strace:
>
> ...
> open("/var/lib/rpm/__db.002", O_RDWR|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
> mmap2(NULL, 1318912, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0xb79db000
> close(4)                                = 0
> stat64("/var/lib/rpm/__db.003"**, {st_mode=S_IFREG|0644, st_size=450560,
> ...}) = 0
> open("/var/lib/rpm/__db.003", O_RDWR|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
> mmap2(NULL, 450560, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0xb796d000
> close(4)                                = 0
> stat64("/var/lib/rpm/Packages"**, {st_mode=S_IFREG|0644,
> st_size=110592000, ...}) = 0
> open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
> read(4, "\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\0\**0YV\0\0"...,
> 512) = 512
> close(4)                                = 0
> open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
> fstat64(4, {st_mode=S_IFREG|0644, st_size=110592000, ...}) = 0
> futex(0xb79b56ac, FUTEX_WAIT, 1, NULL
>
> It hangs there.
>
> Significantly, this 'rpm' command hangs also:
>
> # rpm -vv -V rpm
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
>
> So the problem may well be with 'rpm'.
>
>