Bug 75826
| Summary: | rpm freezes on corrupt database | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Phil Anderson <pza> | ||||||||
| Component: | rpm | Assignee: | Jeff Johnson <jbj> | ||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 8.0 | CC: | frodet, jurgen, mxkennedy, tmokros, wtogami | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2002-10-22 17:15:42 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Phil Anderson
2002-10-13 11:29:49 UTC
Created attachment 80204 [details]
strace of rpm dying
This is a deadlock, probably stale, of unknown origin. So what caused the lock? ^C on previous execution? Created attachment 80828 [details]
Another occurence of this...
This looks very similar to what I currently experience. I have not tried db_recover (yet, in case you need more info). I believe this happened when I was running up2date (I was waiting for the initial download of the package descriptions) and then started an rpm -e... before up2date was finished (in the expectation that if there ever was a conflict between them the rpm -e would stop). I did a ctrl-c on a previous session, when uninstalling a rpm from lexmark for their linux printer control program. (i can find the url of if if you want). The post-uninstall script was sitting there idle for over 5 minutes. If i recall correctly, ctrl-c didn't work, and i ended up doing a kill -KILL. I'm currently having a similar problem under current rawhide with rpm-4.1-1.06hammer.2.i386.rpm. I can't expunge any packages that have a post-uninstall script. rpm freezes and requires a kill -KILL. The scripts are left in /var/tmp. I've tried db_recover and --rebuilddb, no luck. Here's some more info, old gcc package left from previous rpm lockup:
# rpm -q gcc
gcc-3.2-10
gcc-3.2-7
# rpm -evvvv gcc-3.2-7
(I've attached the output of this)
At this point rpm is frozen and needs the -KILL
here is the script left in /var/tmp:
# cat /var/tmp/rpm-tmp.82425
set -x
if [ $1 = 0 ]; then
/sbin/install-info --delete \
--info-dir=/usr/share/info /usr/share/info/gcc.info.gz
This occurs with several packages, like bash for instance, that have
post-uninstall scripts.
Created attachment 80984 [details]
output from rpm -evvvv gcc-3.2-7 rpm lockup
I had a problem like this with rpm, and had to reboot to fix it. Reboot fixed the problem for me. No idea why, lsof | grep rpm displayed nothing. 2nd strace is also a stale lock of unknown origing These problems all smell (but I can't tell precisely) of the missing SIGCHLD problem that is fixed in rpm-4.1-9 packages at ftp://people.redhat.com/jbj/test-4.1 so I'm gonna close this report. Just more info. I have not upgraded as suggested yet, but doing an rpm -U
(I have installed/upgraded packages before this) yielded a hang and a
strace shows:
[root@leia tmp]# strace -p 7002
select(0, NULL, NULL, NULL, {0, 470673}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
ad nauseam....
I'll upgrade later and see what happens.
I have just installed RedHat 9.0 and rpm freezes occasionally again. |