[Bug 225630] New: rpm segfaults when upgrade a certain security update package.
https://bugzilla.novell.com/show_bug.cgi?id=225630 Summary: rpm segfaults when upgrade a certain security update package. Product: SUSE Linux 10.1 Version: Final Platform: PC OS/Version: SuSE Linux 10.1 Status: NEW Severity: Normal Priority: P5 - None Component: Maintenance AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: robin.listas@telefonica.net QAContact: qa@suse.de CC: robin.listas@telefonica.net Commands below are self explaining of the bug: (watch for line wrap) nimrodel:~ # rpm --install /home/cer/download/updates/10.1/YOU/Mesa-6.4.2-19.12.i586.rpm Segmentation fault nimrodel:~ # rpm --verbose --install /home/cer/download/updates/10.1/YOU/Mesa-6.4.2-19.12.i586.rpm Preparing packages for installation... Segmentation fault nimrodel:~ # rpm --verbose --checksig /home/cer/download/updates/10.1/YOU/Mesa-6.4.2-19.12.i586.rpm /home/cer/download/updates/10.1/YOU/Mesa-6.4.2-19.12.i586.rpm: Header SHA1 digest: OK (d1eadd125e0e7ee61a45bc7f57ca5039819ddece) MD5 digest: OK (fb27c05e81c827c8919022389d900b3a) V3 DSA signature: OK, key ID 9c800aca nimrodel:~ # rpm --rebuilddb Segmentation fault nimrodel:~ # ulimit -c unlimited nimrodel:~ # rpm --test --verbose --upgrade /home/cer/download/updates/10.1/YOU/Mesa-6.4.2-19.12.i586.rpm /home/cer/download/updates/10.1/YOU/Mesa-devel-6.4.2-19.12.i586.rpm Preparing packages for installation... Segmentation fault (core dumped) nimrodel:~ # l /*core* -rw------- 1 root root 14397440 Dec 2 17:34 /core nimrodel:/ # rpm -q -a | grep -i mesa Mesa-6.4.2-19.7 Mesa-devel-6.4.2-19.12 Core dump will be attached later (core.gz, 1,120,614 bytes). Same for contents of var/lib/rpm (rpm.tar.gz, 49789KB) nimrodel:/var/lib/rpm # l total 152680 drwxr-xr-x 3 root root 4096 Dec 2 04:32 ./ drwxr-xr-x 65 root root 4096 Dec 2 20:10 ../ -rw-r--r-- 1 root root 19726336 Dec 2 04:33 Basenames -rw-r--r-- 1 root root 12288 Nov 24 01:16 Conflictname -rw-r--r-- 1 root root 2809856 Dec 2 04:33 Dirnames -rw-r--r-- 1 root root 20721664 Dec 2 04:33 Filemd5s -rw-r--r-- 1 root root 49152 Dec 2 04:33 Group -rw-r--r-- 1 root root 77824 Dec 2 04:33 Installtid -rw-r--r-- 1 root root 94208 Dec 2 04:33 Name -rw-r--r-- 1 root root 60911616 Dec 2 04:33 Packages -rw-r--r-- 1 root root 663552 Dec 2 04:33 Providename -rw-r--r-- 1 root root 176128 Dec 2 04:33 Provideversion -rw-r--r-- 1 root root 12288 Oct 20 13:25 Pubkeys -rw-r--r-- 1 root root 532480 Dec 2 04:33 Requirename -rw-r--r-- 1 root root 315392 Dec 2 04:33 Requireversion -rw-r--r-- 1 root root 163840 Dec 2 04:33 Sha1header -rw-r--r-- 1 root root 90112 Dec 2 04:33 Sigmd5 -rw-r--r-- 1 root root 12288 Nov 18 02:22 Triggername -rw-r--r-- 1 root root 0 Dec 2 04:32 __db.000 drwxr-xr-x 2 root root 4096 Jul 4 01:09 alternatives/ -rw-r--r-- 1 root root 49754376 Jun 25 2004 packages.rpm3 nimrodel:/var/lib/rpm # nimrodel:/var/lib/rpmrebuilddb.3495 # l total 53416 drwxr-xr-x 2 root root 4096 Dec 2 17:14 ./ drwxr-xr-x 65 root root 4096 Dec 2 20:10 ../ -rw-r--r-- 1 root root 10498048 Dec 2 17:18 Basenames -rw-r--r-- 1 root root 12288 Dec 2 17:18 Conflictname -rw-r--r-- 1 root root 1437696 Dec 2 17:18 Dirnames -rw-r--r-- 1 root root 10452992 Dec 2 17:18 Filemd5s -rw-r--r-- 1 root root 24576 Dec 2 17:18 Group -rw-r--r-- 1 root root 40960 Dec 2 17:18 Installtid -rw-r--r-- 1 root root 45056 Dec 2 17:18 Name -rw-r--r-- 1 root root 35594240 Dec 2 17:18 Packages -rw-r--r-- 1 root root 331776 Dec 2 17:18 Providename -rw-r--r-- 1 root root 106496 Dec 2 17:18 Provideversion -rw-r--r-- 1 root root 12288 Dec 2 17:17 Pubkeys -rw-r--r-- 1 root root 425984 Dec 2 17:18 Requirename -rw-r--r-- 1 root root 221184 Dec 2 17:18 Requireversion -rw-r--r-- 1 root root 90112 Dec 2 17:18 Sha1header -rw-r--r-- 1 root root 86016 Dec 2 17:18 Sigmd5 -rw-r--r-- 1 root root 12288 Dec 2 17:15 Triggername Other packages update fine (kdegraphics3-3.5.1-23.9). Yast has been trying to update Mesa for days or weeks, claiming sucess, but failing. I think that would be a bug for Yast, will be reported separately. If you need more info, just ask me. I can run tests, but I can not interpret core dumps, I'm no Linux developper. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #1 from robin.listas@telefonica.net 2006-12-02 17:18 MST ------- Created an attachment (id=107997) --> (https://bugzilla.novell.com/attachment.cgi?id=107997&action=view) Core dump of the reported segfault -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #2 from robin.listas@telefonica.net 2006-12-02 17:39 MST ------- 1) It seems I will not attach contents of var/lib/rpm (rpm.tar.gz, 49789KB), because bugzilla has too low a limit. If you want/need them, specify an email where I can submitt them, or specify an smaller subset of the files you need, if any. 2) The mentioned and related Yast online update problem is reported as #225631 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mls@novell.com |screening@forge.provo.novell| |.com | Severity|Normal |Major -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #3 from robin.listas@telefonica.net 2006-12-04 08:09 MST ------- Created an attachment (id=108140) --> (https://bugzilla.novell.com/attachment.cgi?id=108140&action=view) valgrind run of rpm segfaulting. HTH. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #4 from robin.listas@telefonica.net 2006-12-04 08:16 MST ------- Created an attachment (id=108142) --> (https://bugzilla.novell.com/attachment.cgi?id=108142&action=view) core dump of attachement #2 valgrind run Just in case you need it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 mls@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #5 from mls@novell.com 2006-12-04 10:02 MST ------- It's a crash in the berkeley db code, the database seems to be corrupt for whatever reason. The problem should go away if you run 'rpm --rebuilddb'. Sorry, there's no way for me to fix berkeley db bugs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 robin.listas@telefonica.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | ------- Comment #6 from robin.listas@telefonica.net 2006-12-04 13:35 MST ------- No, that's not true. It doesn't go away: nimrodel:~ # rpm --rebuilddb Segmentation fault nimrodel:~ # If you want a core dump of that, ask. And IMO, even if there is a problem in another program or library or whatever, the command rpm should not segfault. It should output some usefull info at least and exit gracefully. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #7 from robin.listas@telefonica.net 2006-12-05 04:18 MST ------- Created an attachment (id=108296) --> (https://bugzilla.novell.com/attachment.cgi?id=108296&action=view) requested output of -vv run of rpm --rebuild This is the output of the double verbose run of rebuild database you asked for: nimrodel:~ # ulimit -c unlimited nimrodel:~ # time valgrind --log-file=valgrind_rpm --verbose --leak-check=full rpm --rebuilddb -vv &> rebuilddb.log Segmentation fault real 70m31.503s user 53m28.293s sys 1m42.534s nimrodel:~ # If you want the coredump, just ask (valgrind_rpm.core.4729.bz2, 6905008 bytes). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 mls@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX ------- Comment #8 from mls@novell.com 2006-12-05 07:01 MST ------- Thanks. But it still crashes in the berkeleydb code. There is simply no way for me to debug this, the database got corrupted by a different rpm run. Too bad that 'rpm --rebuilddb' doesn't help, this means that the main Packages database is bad. Try this: cd /var/lib/rpm mv Packages Packages-ORIG /usr/lib/rpm/rpmdb_dump Packages-ORIG | /usr/lib/rpm/rpmdb_load Packages rpm --rebuilddb If this also fails then it's re-installation time... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #9 from robin.listas@telefonica.net 2007-02-11 10:30 MST ------- Just for the record. I solved the database corruption by removing the offending package with rpm - nothing else worked, not even replacing the database with copies from the backup. Obviusly, the backups were also corrupt, meaning that the corruption was old and only manifested itself when trying to touch that part of the database. However, even if the crash occurred outside the rpm code, in my opinion, rpm shouldn't segfault. The error condition should be detected and the program stopped with a message as helpful as possible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225630 ------- Comment #10 from mls@novell.com 2007-02-12 04:06 MST ------- Yeah, but it's not a bug in the rpm code, but in the berkeley db library code. Not rpm's fault at all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com