Bug 30509 - urpmi broken with current wget and ftp mirrors
Summary: urpmi broken with current wget and ftp mirrors
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2022-06-05 09:44 CEST by Jani Välimaa
Modified: 2022-06-13 22:45 CEST (History)
5 users (show)

See Also:
Source RPM: wget-1.21.1-1.1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Jani Välimaa 2022-06-05 09:44:06 CEST
# head -10 /etc/urpmi/urpmi.cfg 
{
  downloader: wget
  verify-rpm: 1
  xml-info: on-demand
}

Core\ Release ftp://ftp-stud.hs-esslingen.de//pub/Mirrors/Mageia/distrib/8/x86_64/media/core/release {
  key-ids: 80420f66
}

# urpmi.update Core\ Release
free(): double free detected in tcache 2
...retrieving failed: wget failed: exited with signal 6

free(): double free detected in tcache 2
Comment 1 Jani Välimaa 2022-06-05 09:47:06 CEST
"A double free in FTP when using an absolute path" is fixed in wget 1.21.2 [1], but I'd update directly to the latest stable 1.21.3 [2].

[1] https://lists.gnu.org/archive/html/bug-wget/2021-09/msg00005.html
[2] https://lists.gnu.org/archive/html/bug-wget/2022-02/msg00025.html
Comment 2 Jani Välimaa 2022-06-05 10:07:33 CEST
Pushed wget-1.21.3-1.mga8 to core/updates_testing. Please test.

SRPMS/RPMS:
wget-1.21.3-1.mga8

Assignee: bugsquad => qa-bugs

Comment 3 Jani Välimaa 2022-06-05 10:23:44 CEST
Though it might be hard to update hdlists and/or rpms from ftp mirrors with broken wget. curl or aria2 must be used as a downloader to update.
Comment 4 Morgan Leijström 2022-06-05 21:03:52 CEST
? have we released a per comment 0 problematic version?

My system is updated (wget 1.21-1.1) and it do not show that problem.

$ LC_ALL=C wget --version
GNU Wget 1.21.1 built on linux-gnu

$ sudo head -10 /etc/urpmi/urpmi.cfg 
{
  downloader: wget
  verify-rpm: 1
  xml-info: on-demand
}

Core\ Release https://ftp.acc.umu.se/mirror/mageia/distrib/8/x86_64/media/core/release {
  key-ids: 80420f66
}

[morgan@svarten ~]$ sudo urpmi.update Core\ Release
mediat "Core Release" är uppdaterat    <== Translated: is updated

CC: (none) => fri

Comment 5 sturmvogel 2022-06-05 21:12:39 CEST
Morgan you have a https repo instead of ftp. The problem only occurs with wget and ftp.
Comment 6 Morgan Leijström 2022-06-05 21:13:55 CEST
Ah, yes my system was using *https* for "ftp.acc.umu.se"...

---

Update OK here for mga8-64
Tests per comment 0, and as used by drakrpm

I always set the systems I use to use wget for drakrpm and I have never seen a problem.

Testers who want to try switching downloader, can see https://wiki.mageia.org/en/Mageia_8_Errata#Downloading_software for where user set it by GUI.
Comment 7 Morgan Leijström 2022-06-05 21:17:58 CEST
(tested ftp from esslingen.de)
Comment 8 Jani Välimaa 2022-06-06 17:44:12 CEST
(In reply to Morgan Leijström from comment #6)
> Ah, yes my system was using *https* for "ftp.acc.umu.se"...
> 
> ---
> 
> Update OK here for mga8-64
> Tests per comment 0, and as used by drakrpm
> 
> I always set the systems I use to use wget for drakrpm and I have never seen
> a problem.
> 
> Testers who want to try switching downloader, can see
> https://wiki.mageia.org/en/Mageia_8_Errata#Downloading_software for where
> user set it by GUI.

There's no need to alter settings as default downloader can be overrided from the CLI.

$ rpm -qa wget
wget-1.21.1-1.1.mga8

$ sudo urpmi.update Core\ Release\ 2
free(): double free detected in tcache 2
...retrieving failed: wget failed: exited with signal 6

free(): double free detected in tcache 2

$ sudo urpmi.update Core\ Release\ 2 --aria2
medium "Core Release 2" is up-to-date

$ sudo urpmi.update Core\ Release\ 2 --curl 
medium "Core Release 2" is up-to-date
Comment 9 Jani Välimaa 2022-06-06 17:46:18 CEST
$ rpm -qa wget
wget-1.21.3-1.mga8

$ sudo urpmi.update Core\ Release\ 2 --wget
medium "Core Release 2" is up-to-date

$ sudo urpmi.update Core\ Release\ 2 --curl
medium "Core Release 2" is up-to-date

$ sudo urpmi.update Core\ Release\ 2 --aria2
medium "Core Release 2" is up-to-date
Comment 10 Herman Viaene 2022-06-11 11:58:13 CEST
MGA8-64 Plasma on Lenovo B50 in Dutch
No installation issues.
Changed after the update the downloader in MCC from curlto wget, checked the /etc/urpmi/urpmi.cfg file.
Then
]# urpmi.update Core\ Updates             
medium "Core Updates (distrib3)" has been updated
    http://mirror.tuxinator.org/mageia/distrib/8/x86_64/media/debug/core/updates/media_info/20220609-212108-synthesis.hdlist.cz
updated medium "Core Updates Debug (distrib4)"
    http://mirror.tuxinator.org/mageia/distrib/8/x86_64/media/core/updates_testing/media_info/20220609-235331-synthesis.hdlist.cz                                            
updated medium "Core Updates Testing (distrib5)"
    http://mirror.tuxinator.org/mageia/distrib/8/x86_64/media/debug/core/updates_testing/media_info/20220609-235312-synthesis.hdlist.cz                                      
updated medium "Core Updates Testing Debug (distrib6)"
seems to work OK.

Whiteboard: (none) => MGA8-64-OK
CC: (none) => herman.viaene

Comment 11 Thomas Andrews 2022-06-12 02:07:15 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Dave Hodgins 2022-06-12 21:48:13 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 12 Mageia Robot 2022-06-13 22:45:24 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2022-0081.html

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


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