Bug 2327728 - Crash: "free(): double free detected in tcache 2" when using --load-cookies
Summary: Crash: "free(): double free detected in tcache 2" when using --load-cookies
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wget2
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact:
URL:
Whiteboard:
Depends On: 2328557
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-20 22:28 UTC by Alexander Mayorov
Modified: 2024-12-05 02:23 UTC (History)
4 users (show)

Fixed In Version: wget2-2.2.0-1.fc42 wget2-2.2.0-1.fc40 wget2-2.2.0-1.fc41
Clone Of:
Environment:
Last Closed: 2024-12-03 08:45:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Netscape cookie file to reproduce the issue and test a solution (1.41 KB, text/plain)
2024-11-20 22:30 UTC, Alexander Mayorov
no flags Details

Description Alexander Mayorov 2024-11-20 22:28:30 UTC
Using the actual wget2 from Fedora 41 repository
wget2-2.1.0-12.fc41.x86_64
the attached cookies file causes wget2 to crash with a double free:

$ wget2 --load-cookies cookies.txt
free(): double free detected in tcache 2
Aborted (core dumped)

There is bug report
https://gitlab.com/gnuwget/wget2/-/issues/650
closed 07.01.2024 with resolution:
The bug has been fixed in c51cc7d7:
https://gitlab.com/gnuwget/wget2/-/commit/c51cc7d7e2543183349b808aa68d9ecfecdb8345

Is there a chance to get the issue fixed in Fedora 41?

Reproducible: Always

Steps to Reproduce:
$ wget2 --load-cookies cookies.txt
Actual Results:  
free(): double free detected in tcache 2
Aborted (core dumped)

Expected Results:  
Nothing to do - goodbye

Comment 1 Alexander Mayorov 2024-11-20 22:30:31 UTC
Created attachment 2058991 [details]
Netscape cookie file to reproduce the issue and test a solution

Comment 2 Michal Ruprich 2024-11-21 06:52:19 UTC
Hi Alexander,

thanks for the bug, I have a couple of other bugs, I will try to figure out when a new wget2 will come out and either wait for the rebase or fix this right away.

Regards,
Michal Ruprich

Comment 3 Michal Ruprich 2024-11-21 06:54:24 UTC
Oh, so I see that the frequency of new releases is not very good, I'll go ahead and fix these bugs now.

Comment 4 Fedora Update System 2024-12-03 08:42:51 UTC
FEDORA-2024-913d511a18 (wget2-2.2.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-913d511a18

Comment 5 Fedora Update System 2024-12-03 08:45:26 UTC
FEDORA-2024-913d511a18 (wget2-2.2.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-12-03 08:51:24 UTC
FEDORA-2024-e0acdb5078 (wget2-2.2.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e0acdb5078

Comment 7 Fedora Update System 2024-12-04 03:49:01 UTC
FEDORA-2024-e0acdb5078 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e0acdb5078`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e0acdb5078

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-12-04 04:15:51 UTC
FEDORA-2024-7953b22fe9 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7953b22fe9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7953b22fe9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-12-05 01:33:42 UTC
FEDORA-2024-7953b22fe9 (wget2-2.2.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-12-05 02:23:17 UTC
FEDORA-2024-e0acdb5078 (wget2-2.2.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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