Bug 21540

Summary: gurpmi2 crashed (Bizarre copy of CODE in list assignment at /usr/lib/perl5/vendor_perl/5.22.3/urpm/install.pm line 368.)
Product: Mageia Reporter: J F <jeremy>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED OLD QA Contact:
Severity: major    
Priority: Normal CC: anaselli, dantou, mageia, marja11, ouaurelien, thierry.vignaud, yvesbrungard
Version: 6   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: perl, gurpmi-8.110-1.mga6 CVE:
Status comment:

Description J F 2017-08-15 22:11:31 CEST
The "gurpmi2" program crashed. Drakbug-17.88 caught it.

trying to install nvidia-driver via Control Center

Bizarre copy of CODE in list assignment at /usr/lib/perl5/vendor_perl/5.22.3/urpm/install.pm line 368.
Perl's trace:
drakbug::bug_handler() called from /usr/lib/perl5/vendor_perl/5.22.3/urpm/install.pm:368
urpm::install::install() called from /usr/lib/perl5/vendor_perl/5.22.3/urpm/main_loop.pm:270
::urpm::main_loop::_run_transaction() called from /usr/lib/perl5/vendor_perl/5.22.3/urpm/main_loop.pm:551
::urpm::main_loop::run() called from /usr/libexec/gurpmi2:351
main::do_install_3() called from /usr/libexec/gurpmi2:256
main::do_install_2() called from /usr/libexec/gurpmi2:99

Theme name: Adwaita
Kernel version = 4.9.35-desktop-1.mga6
Distribution=Mageia release 6 (Official) for x86_64
CPU=Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
Marja Van Waes 2017-08-16 12:51:42 CEST

Assignee: bugsquad => rpmstack
CC: (none) => marja11
Summary: gurpmi2 crashed => gurpmi2 crashed (Bizarre copy of CODE in list assignment at /usr/lib/perl5/vendor_perl/5.22.3/urpm/install.pm line 368.)

Nicolas Lécureuil 2017-08-16 14:01:49 CEST

CC: (none) => mageia, thierry.vignaud

Thierry Vignaud 2017-09-18 11:03:27 CEST

Source RPM: gurpmi-8.110-1.mga6 => perl, gurpmi-8.110-1.mga6

Comment 1 Nicolas Lécureuil 2017-11-02 20:48:11 CET
same line as bug 21803
Comment 2 Nicolas Lécureuil 2017-11-02 20:51:52 CET
*** Bug 21803 has been marked as a duplicate of this bug. ***

CC: (none) => dantou

Comment 3 papoteur 2017-11-15 17:21:56 CET
Hello,
I got a similar error :
Le programme « gurpmi2 » a planté avec l'erreur suivante :

  Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/vendor_perl/5.22.3/urpm/install.pm line 393.
  Perl's trace:
  drakbug::bug_handler() called from /usr/lib/perl5/vendor_perl/5.22.3/urpm/install.pm:393
  urpm::install::install() called from /usr/lib/perl5/vendor_perl/5.22.3/urpm/main_loop.pm:270
  ::urpm::main_loop::_run_transaction() called from /usr/lib/perl5/vendor_perl/5.22.3/urpm/main_loop.pm:551
  ::urpm::main_loop::run() called from /usr/libexec/gurpmi2:351
  main::do_install_3() called from /usr/libexec/gurpmi2:256
  main::do_install_2() called from /usr/libexec/gurpmi2:99

Thème utilisé : Adwaita

I started the Live session/Plasma in UEFI mode.
I was exploring the hardware. MCC said I need to install dkms-broadcom-wl. It installed 15 packages, with kernel-header, gcc, ...
the 14th takes long time, and then I got the error.
Repos sources wasn't configured.

CC: (none) => yves.brungard_mageia

Marja Van Waes 2017-12-02 09:32:24 CET

Assignee: rpmstack => mageiatools

Comment 4 Angelo Naselli 2017-12-02 10:10:09 CET
iiu the code correctly array is initialized if there are deltarmps

    if ($pkg->payload_format eq 'drpm') { #- handle deltarpms


so maybe a test before unlinking @$produced_deltas could avoid the crash, but it a lot of time i'm not programming perl so I maybe wrong :)

CC: (none) => anaselli

Comment 5 Nicolas Lécureuil 2019-02-21 22:43:55 CET
is this bug still valid ?
Comment 6 Aurelien Oudelet 2020-08-16 22:37:17 CEST
Mageia 6 changed to end-of-life (EOL) status on 2019-09-30. It is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

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.

Bug Reporter: Thank you for reporting this issue and we are sorry that we 
weren't able to fix it before Mageia 6's end of life. If you 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.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Best regards,
Aurélien
Bugsquad Team

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