Bug 6972

Summary: rpmdrake segfaulted (rpmdbInitIterator)
Product: Mageia Reporter: Benoît Audouard <baud123>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec, jacques.pronchery, rwobben, thierry.vignaud
Version: 2Keywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: rpmdrake-5.34-1.mga2 CVE:
Status comment:

Description Benoît Audouard 2012-08-06 17:05:00 CEST
The "rpmdrake" program crashed. Drakbug-14.21 caught it.

After installing rpmdrake-5.34-1.mga2 from updates_testing in mageia2, I cannot launch rpmdrake : cf. error

rpm -qa|grep rpm # shows another error
urpmi-6.48.2-1.mga2
librpmsign2-4.9.1.3-2.mga2
rpm-helper-0.24.10-1.mga2
python-rpm-4.9.1.3-2.1.mga2
rpm-mageia-setup-1.147-8.1.mga2
java-rpmbuild-1.7.5-16.mga2
librpmbuild2-4.9.1.3-2.mga2
librpm2-4.9.1.3-2.1.mga2
rpm-4.9.1.3-2.1.mga2
erreur: rpmdbNextIterator: on saute h#    1655 blob size(1274456): BAD, 8 + 16 * il(64) + dl(6196)
rpmdrake-5.34-1.mga2
gurpmi-6.48.2-1.mga2
netprofile-plugin-urpmi-0.28-3.mga1


SEGV
Glibc's trace:
4: /usr/lib/perl5/5.14.2/i386-linux-thread-multi/CORE/libperl.so(Perl_sighandler+0x1ef) [0xb76cde6f]
5: /usr/lib/perl5/5.14.2/i386-linux-thread-multi/CORE/libperl.so(Perl_csighandler+0x99) [0xb76c9589]
6: [0xffffe400]
7: /usr/lib/librpm.so.2(rpmdbInitIterator+0x978) [0xb6fc9e48]
8: /usr/lib/librpm.so.2(rpmtsInitIterator+0x71) [0xb6ff2f91]
9: /usr/lib/perl5/vendor_perl/5.14.2/i386-linux-thread-multi/auto/URPM/URPM.so(XS_URPM__DB_traverse_tag+0x3eb) [0xb703ce61]
10: /usr/lib/perl5/5.14.2/i386-linux-thread-multi/CORE/libperl.so(Perl_pp_entersub+0x4ba) [0xb76e811a]
11: /usr/lib/perl5/5.14.2/i386-linux-thread-multi/CORE/libperl.so(Perl_runops_standard+0x18) [0xb76dede8]
12: /usr/lib/perl5/5.14.2/i386-linux-thread-multi/CORE/libperl.so(perl_run+0x299) [0xb76788d9]
13: /usr/bin/perl(main+0x162) [0x8048ad2]
14: /lib/i686/libc.so.6(__libc_start_main+0xf3) [0xb74103e3]
15: /usr/bin/perl() [0x8048b05]

Perl's trace:
standalone::bug_handler() called from /usr/lib/libDrakX/standalone.pm:224
standalone::__ANON__() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm:342
(eval)() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm:342
Rpmdrake::pkg::get_installed_packages() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm:482
Rpmdrake::pkg::get_pkgs() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/gui.pm:629
Rpmdrake::gui::pkgs_provider() called from /usr/sbin/rpmdrake:761
main::__ANON__() called from /usr/lib/perl5/vendor_perl/5.14.2/rpmdrake.pm:416
rpmdrake::slow_func() called from /usr/sbin/rpmdrake:761
main::run_treeview_dialog() called from /usr/sbin/rpmdrake:804

Theme name: Adwaita
Kernel version = 3.3.8-desktop-2.mga2
Distribution=Mageia release 2 (Official) for i586
CPU=Intel(R) Core(TM)2 Duo CPU     T7250  @ 2.00GHz
Comment 1 Manuel Hiebel 2012-08-06 18:06:01 CEST
can you reproduce the crash ?
Manuel Hiebel 2012-08-12 13:04:36 CEST

Keywords: (none) => NEEDINFO

Comment 2 Thierry Vignaud 2012-08-29 11:07:57 CEST
It looks like you've an issue with your rpm DB.
You should run "rpm --rebuilddb" as root

CC: (none) => thierry.vignaud
Summary: rpmdrake segfaulted => rpmdrake segfaulted (rpmdbInitIterator)

Comment 3 Benoît Audouard 2012-09-01 22:26:19 CEST
yep, running "rpm --rebuilddb" made urpmi (and rpm in fact) work again.

I had this error and other (see below) after installation of the following rpm which are in repository "updates testing" :
python-rpm-4.9.1.3-2.1.mga2
librpm2-4.9.1.3-2.1.mga2
rpm-4.9.1.3-2.1.mga2

the current version of rpm is rpm-4.9.1.3-2.mga2 (in core/release) so the problem seems to lie with 2.1 version of the package (in updates_testing).


Another error I had (apart segmentation fault) when doing rpm -qa is :

erreur: rpmdbNextIterator: on saute h#    1655 blob size(1274456): BAD, 8 + 16 * il(64) + dl(6196)

Thanks for the help
Thierry Vignaud 2012-09-01 23:52:29 CEST

CC: (none) => dmorganec

Comment 4 Manuel Hiebel 2012-12-20 19:16:53 CET
*** Bug 8435 has been marked as a duplicate of this bug. ***

CC: (none) => jacques.pronchery

Comment 5 roelof Wobben 2013-01-06 17:33:53 CET
@benoit : Is this bug still valid for Mageia2 or Cauldron ?

Roelof

CC: (none) => r.wobben

Comment 6 Manuel Hiebel 2013-10-22 12:09:27 CEST
This message is a reminder that Mageia 2 is nearing its end of life.
Approximately one month from now Mageia will stop maintaining and issuing updates for Mageia 2. At that time this bug will be closed as WONTFIX (EOL) if it remains open with a Mageia 'version' of '2'.

Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Mageia version prior to Mageia 2's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Mageia 2 is end of life.  If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Mageia release includes newer upstream software that fixes bugs or makes them obsolete.

-- 
The Mageia Bugsquad
Comment 7 Manuel Hiebel 2013-11-23 16:13:05 CET
Mageia 2 changed to end-of-life (EOL) status on ''22 November''. Mageia 2 is no
longer maintained, which means that it will not receive any further security or
bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD