Bug 7439 - MageiaUpdate crashed during MCC update (Mageia 2)
Summary: MageiaUpdate crashed during MCC update (Mageia 2)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: High normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 7487 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-11 02:27 CEST by Martin Turner
Modified: 2012-12-06 10:33 CET (History)
1 user (show)

See Also:
Source RPM: rpmdrake-5.34-1.mga2
CVE:
Status comment:


Attachments

Description Martin Turner 2012-09-11 02:27:56 CEST
The "MageiaUpdate" program crashed. Drakbug-14.21 caught it.

Trying to apply the most recent updates from Mageia.

Can't call method "fullname" on an undefined value at /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm line 572.
Perl's trace:
standalone::bug_handler() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm:578
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/MageiaUpdate:259
main::run_treeview_dialog() called from /usr/sbin/MageiaUpdate:286

Theme name: oxygen-gtk
Kernel version = 3.3.8-desktop-2.mga2
Distribution=Mageia release 2 (Official) for x86_64
CPU=AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Comment 1 Martin Turner 2012-09-11 02:32:44 CEST
Note that I cannot install the most recent updates at all because of this problem; not even via direct MCC invocation (much less the little red reminder in the status bar).
Comment 2 Martin Turner 2012-09-11 02:33:52 CEST
BTW All updates to this point have been successfully applied; NO problems until THIS update.
Martin Turner 2012-09-13 01:11:21 CEST

Summary: MageiaUpdate crashed during MCC update => MageiaUpdate crashed during MCC update (Mageia 2)

Comment 3 Martin Turner 2012-09-13 01:12:47 CEST
Upgraded this to high priority as I cannot update my system any longer at this time.

Priority: Normal => High

Comment 4 claire robinson 2012-09-13 01:29:50 CEST
You can use this as root to update your system:

urpmi --auto-update

Thankyou for the report :)
Manuel Hiebel 2012-09-13 13:06:18 CEST

Assignee: bugsquad => thierry.vignaud

Comment 5 Thierry Vignaud 2012-09-13 13:51:57 CEST
What is displayed in the terminal if you run MageiaUpdate from the terminal after adding the following line before line 572 ("split_fullname") in /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm :

    use Data::Dumper; warn Dumper \@meta_pkgs;

Keywords: (none) => NEEDINFO

Comment 6 Martin Turner 2012-09-14 01:13:11 CEST
(In reply to comment #4)
> You can use this as root to update your system:
> 
> urpmi --auto-update
> 
> Thankyou for the report :)

Thanks, this at least allowed me to update my system (and learn more about using urpmi from the command line).
Comment 7 Martin Turner 2012-09-14 03:25:39 CEST
(In reply to comment #5)
> What is displayed in the terminal if you run MageiaUpdate from the terminal
> after adding the following line before line 572 ("split_fullname") in
> /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm :
> 
>     use Data::Dumper; warn Dumper \@meta_pkgs;

Hi:

I did so as requested (see below) and while it did not cause any problems, I cannot tell if it fixed my problme as the "urpmi --auto-update" completed all my currently-informed updates.

I suspect that I'll have to wait until the next update before I can really test this or is there an easy way to force this code path to be taken?

    my @meta_pkgs = grep { /^task-|^basesystem/ } keys %all_pkgs;

    my @gui_pkgs = map { chomp; $_ } cat_('/usr/share/rpmdrake/gui.lst');
    # add meta packages to GUI packages list (which expect basic names not fullnames):
    push @gui_pkgs, map { (split_fullname($_))[0] } @meta_pkgs;

    use Data::Dumper; warn Dumper \@meta_pkgs;   <<<<<<<<<<<<<<<<
    +{ urpm => $urpm,
       all_pkgs => \%all_pkgs,
       installed => \@installed_pkgs,
       installable => \@installable_pkgs,
       updates => \@updates,
       meta_pkgs => \@meta_pkgs,
       gui_pkgs => [ grep { member(($all_pkgs{$_}{pkg}->fullname)[0], @gui_pkgs) } keys %all_pkgs ],
       update_descr => $update_descr,
       backports => [ @inactive_backports, @active_backports ],
       inactive_backports => \@inactive_backports
   };

Please advise,
Thanks,
Marty
Comment 8 Martin Turner 2012-09-15 10:21:02 CEST
(In reply to comment #7)
> (In reply to comment #5)
> > What is displayed in the terminal if you run MageiaUpdate from the terminal
> > after adding the following line before line 572 ("split_fullname") in
> > /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm :
> > 
> >     use Data::Dumper; warn Dumper \@meta_pkgs;
> 
> Hi:
> 
> I did so as requested (see below) and while it did not cause any problems, I
> cannot tell if it fixed my problme as the "urpmi --auto-update" completed all
> my currently-informed updates.
> 
> I suspect that I'll have to wait until the next update before I can really test
> this or is there an easy way to force this code path to be taken?
> 
>     my @meta_pkgs = grep { /^task-|^basesystem/ } keys %all_pkgs;
> 
>     my @gui_pkgs = map { chomp; $_ } cat_('/usr/share/rpmdrake/gui.lst');
>     # add meta packages to GUI packages list (which expect basic names not
> fullnames):
>     push @gui_pkgs, map { (split_fullname($_))[0] } @meta_pkgs;
> 
>     use Data::Dumper; warn Dumper \@meta_pkgs;   <<<<<<<<<<<<<<<<
>     +{ urpm => $urpm,
>        all_pkgs => \%all_pkgs,
>        installed => \@installed_pkgs,
>        installable => \@installable_pkgs,
>        updates => \@updates,
>        meta_pkgs => \@meta_pkgs,
>        gui_pkgs => [ grep { member(($all_pkgs{$_}{pkg}->fullname)[0],
> @gui_pkgs) } keys %all_pkgs ],
>        update_descr => $update_descr,
>        backports => [ @inactive_backports, @active_backports ],
>        inactive_backports => \@inactive_backports
>    };
> 
> Please advise,
> Thanks,
> Marty

I am happy to report that after testing this today on my system (the one this bug occurred on) that the bug appears fixed with the above-suggested fix.

As far as I'm concerned, this is now fix; feel free to close it as necessary.

Thanks again to everyone for the prompt attention to this problem.

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

Comment 9 Thierry Vignaud 2012-09-15 13:18:06 CEST
err there has been no fix for this bug...
Comment 10 Martin Turner 2012-09-15 13:40:17 CEST
(In reply to comment #9)
> err there has been no fix for this bug...

You're exactly right. Sorry, but in my joy at having this fixed, I mis-stated. I'll put this back in the "new" state and let those that handle this take on the real fix (might it not be this workaround) as they see fit.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 11 Martin Turner 2012-09-15 13:41:28 CEST
Put back in the "new" state as promised above.

Status: REOPENED => NEW

Manuel Hiebel 2012-09-16 11:08:50 CEST

Keywords: NEEDINFO => (none)

Comment 12 Thierry Vignaud 2012-09-17 10:00:11 CEST
*** Bug 7487 has been marked as a duplicate of this bug. ***

CC: (none) => ranchhand

Comment 13 Thierry Vignaud 2012-09-17 10:40:48 CEST
@Tom: if you can still reproduce this bug, could you either attach or sent me by email the bug7439.tar.xz file resulting from running as root the following commands:
urpmi --auto-select --bug bug7439
tar cfa bug7439{.tar.xz,}

IMPORTANT: answer "n" when asking to actually install the updates so that we can get a chance to fix this bug

Keywords: (none) => NEEDINFO

Comment 14 Tom Tidler 2012-09-18 07:26:05 CEST
I am the feller that filed bug7487.

Unfortunately I can't get you the info you wanted.

After the thing crashed and the auto bug report tool came up, I filed the bug and then went about trying to get things to run.

One thing I had neglected to do was enable all the "debug" media.  I did that and logged out and back in to see if it would effect the update/upgrade tool.

It did and I ran those upgrades.

Today I popped over here and tried it again to see if it would work or crash.  I am sorry to say that it worked.  I can't duplicate the crash.

I am happy that it worked but that doesn't get you anywhere.

Will do better in the future.

Tested Ubuntu for several years and ran their dev releases as my production OS.  That does not, however, make me any more than a noob to Mageia and particularly RPM and your bug system.

Please feel free to jump my ass if I screw up.  I am a grumpy geezer and can take it.

I want to get up to speed on this stuff as fast as I can so that I can help support this fine project.
Comment 15 Thierry Vignaud 2012-12-06 10:33:33 CET
I've commited a workaround in SVN though I would love to know the root issue

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


Note You need to log in before you can comment on or make changes to this bug.