From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) Description of problem: I've upgraded from rpm-3.0.4 to rpm-4.0.2 by loading all required packages (popt, db3, rpm, phyton); when trying to rebuild the databese (-- rebuilddb) rpm starts, but after a while it coredumps with Segmentation fault same happens, when trying "rpm -qa"; rpm starts listing the installed packages, but then coredumps (always with the same package: ghostscript- hpijs; but, this package CAN be displayed properly with a single query (rpm -qi ghostscript-hpijs). How reproducible: Always Steps to Reproduce: 1. rpm --rebuilddb --> core dump 2. rpm -qa --> core dump 3. Additional info: however, the "coredump" seems to be focussed on "some" installed packages, which are: ghostscript, ghostscript-hpijs, ghostscript-fonts I've downloaded them from "hp linux inkjet driver project", http://hpinkjet.sourceforge.net/binaryinstall.php I can't remove or update them, and unfortunately I can't upgrade my rpm database; some examples: [root@greypc rpm402]# rpm --rebuilddb Segmentation fault (core dumped) [root@greypc rpm402]# file core core: ELF 32-bit LSB core file of 'rpmdb' (signal 11), Intel 80386, version 1 root@greypc rpm402]# rpm -qa ElectricFence-2.1-3 setup-2.1.8-1 filesystem-1.3.5-1 ...gftp-2.0.6a-3 ghostscript-5.50-1 Segmentation fault (core dumped) [root@greypc rpm402]# file core core: ELF 32-bit LSB core file of 'rpmq' (signal 11), Intel 80386, version 1 [root@greypc rpm402]# [root@greypc /root]# rpm -ev ghostscript-fonts Segmentation fault (core dumped) [root@greypc /root]# file core core: ELF 32-bit LSB core file of 'rpm' (signal 11), Intel 80386, version 1
The two hpijs packages install fine for me, so that's not the problem. Please attach a pointer to a tar ball of your database cd /var/lib tar czvf /tmp/rpmdb.tar.gz rpm Thanks.
I have a fix for the problem, will get new packages on ftp.rpm.org in the next day or so ...
The changes necessary are checked into CVS, gonna take a couple days to get 6.x packages built. Meanwhile, you can build from CVS by doing cvs -d :pserver:anonymous.org:/cvs/devel login (no password, just carriage return) cvs -d :pserver:anonymous.org:/cvs/devel get rpm cd rpm cvs up -r rpm-4_0 ./autogen.sh make make install and then do rpm --rebuilddb to convert from db1 (and skip your problem) to db3 ...