smart-0.50rc1 hangs forever
Jeff Johnson
n3npq at mac.com
Sun Nov 12 06:55:47 PST 2006
On Nov 12, 2006, at 9:50 AM, Neal Becker wrote:
> On Sunday 12 November 2006 8:12 am, Christoph Thiel wrote:
>> On Sun, Nov 12, 2006 at 07:12:45AM -0500, Neal Becker wrote:
>>> sudo strace smart update
>>> [...]
>>> stat("/var/lib/rpm/Packages", {st_mode=S_IFREG|0644,
>>> st_size=70647808,
>>> ...}) = 0
>>> open("/var/lib/rpm/Packages", O_RDONLY) = 5
>>> fcntl(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/Packages", O_RDONLY) = 5
>>> fcntl(5, F_SETFD, FD_CLOEXEC) = 0
>>> fstat(5, {st_mode=S_IFREG|0644, st_size=70647808, ...}) = 0
>>> fcntl(5, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=0,
>>> len=0}) = 0
>>> rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
>>> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
>>> pread(5, "\0\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\356\0 \10\0
>>> \2"...,
>>> 4096, 4096) = 4096
>>> futex(0x2aaab2441228, FUTEX_WAIT, 2, NULL
>>>
>>> Sits there forever
>>
>> sudo rpm --rebuilddb
>>
>>
>
> Yes.
Actually, no.
If the cache in /var/lib/rpm/__db* files is corrupt, --rebuilddb will
cause data loss.
Do
rm -f /var/lib/rpm/__db*
first.
Meanwhile, there's a new rash of rpmdb problem reports recently, at
least with FC,
where rpm has not changed significantly (particularly the rpmdb code)
for over a year.
Dunno what the problem is ...
73 de Jeff
More information about the Smart
mailing list