"double free or corruption (!prev)" during zypper dup download?

Heyho, since a few days or one or two weeks I regularly encounter crashes during rpm download via zypper on Tumbleweed (on four different machines, Intel and Ryzens). The problem is happening both with or without proxy. <snip:> Abrufen: plasma5-desktop-emojier-5.22.2.1-1.1.x86_64.rpm ......[fertig] Paket plasma5-session-5.22.2.1-1.1.noarch abrufen (277/287), 130,4 KiB ( 66,1 KiB entpackt) Abrufen: plasma5-session-5.22.2.1-1.1.noarch.rpm -------[Starten] double free or corruption (!prev) Abgebrochen (Speicherabzug geschrieben) </snip> The error happens at different times, after some progress (~ 4-5 rpm packages), so I know that the brute-force bash loop here works for me, but I wonder what is causing the problem? # i=1; while [ $i -lt 10 ]; do zypper dup -y -l --allow-vendor-change; i=$ [$i+1]; echo $i; done Error appears on several systems with Tumbleweed <= 20210629-0, kernel 5.12.3.1, glibc 2.33 I am now updating to kernel 5.12.3.1 and Tumbleweed 20210702-0, but can only reproduce the problem once there's more packages to download again. :-) Am I alone wiht this - I couldn't find anything online about this, at least nothing recent. Am I blind? Thanks for any help! -- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - ------------------------- Agile Recursive Documentation: – Document it or it didn't happen! – ------------------------- Digitale Souveränität, Nachhaltigkeit, Dokumentation Linux, Security, Strategy, Politics, Journalism, Networking. https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) Blog: https://markusfeilner.de PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Matrix, Jabber, Skype, Twitter, Diaspora, ...

I get these double free errors too. The problems started when zypper was updated to version 1.14.45. I downgraded one host to zypper 1.14.42, libzypp.so.1722.3.7 and libboost_thread.so.1.75.0, but the problem persists. The bug might be caused by a library that zypper depends on and that was updated at the same time. I use Tumbleweed in unprivileged LXC containers on a Fedora 34 host with my own kernel and lots of memory-related settings from https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommende.... I solved the problem by migrating most containers to Fedora. Thus I am not that interested in debugging the crashes. Kind regards, Andreas

Hello, Am Montag, 5. Juli 2021, 08:43:24 CEST schrieb Markus Feilner:
IIRC this is/was caused by a libcurl bug if the mirrorlist contains more than one mirror using https:// - which might also explain why you don't always see it. The latest Tumbleweed should have a fixed libcurl, so hopefully you won't be able to reproduce this crash ;-) (For details, I'd have to search for the bugreport about this.) Regards, Christian Boltz -- Wenn ich mir ein System installiere, welches dieses oder jenes oder welches "für mich" tut (gegen mich?), dann kann ich gleich Windows nehmen. Das fährt sich so gut, wie ein elektronischer Chauffeur das eben kann: Nämlich bis die Elektronik ein Dixi-Klo mit 'ner Garage verwechselt: Eckig und die Tür war offen. [Ratti in suse-linux]

Cristian Rodríguez writes:
Today zypper crashed again with both curl 7.76.1 and 7.77.0. Setting "download.max_concurrent_connections = 0" in zypp.conf as mentioned in https://github.com/openSUSE/libzypp/issues/312#issuecomment-831227029 helped.

Hi Christian, and thanks to all who helped! Yes I can confirm that the problem always occurred during the download-phase where curl is involved, never during the install or listing of new packages phase. At least on my systems. But it happend on all of them, no matter if virtual or iron. If it's fixed, it's another wonderful magic Tumbleweed experience: Bugs get fixed faster than they appear or are being noticed by me. Thanks! OBS rocks. Am Dienstag, 6. Juli 2021, 13:57:05 CEST schrieb Christian Boltz:
-- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - ------------------------- Agile Recursive Documentation: – Document it or it didn't happen! – ------------------------- Digitale Souveränität, Nachhaltigkeit, Dokumentation Linux, Security, Strategy, Politics, Journalism, Networking. https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) Blog: https://markusfeilner.de PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Matrix, Jabber, Skype, Twitter, Diaspora, ...

Seems fixed. Three systems updated without errors. Am Donnerstag, 8. Juli 2021, 10:58:41 CEST schrieb Markus Feilner:
-- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - ------------------------- Agile Recursive Documentation: – Document it or it didn't happen! – ------------------------- Digitale Souveränität, Nachhaltigkeit, Dokumentation Linux, Security, Strategy, Politics, Journalism, Networking. https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Matrix, Jabber, Skype, Twitter, Diaspora, ...

Nope, problem still exists. Had some hundreds of packages to update (to 20210710-0) after the weekend, three machines throw identical error. Will keep list updated if I see any changes, until then I am brute-forcing it. :-) I needed some 25 runs today to accomplish a full (d)update of 497 packages: i=1; while [ $i -lt 50 ]; do zypper ref; zypper dup -y -l --allow-vendor- change; i=$[$i+1]; echo $i; done Am Freitag, 9. Juli 2021, 15:09:30 CEST schrieb Markus Feilner:
-- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - ------------------------- Agile Recursive Documentation: – Document it or it didn't happen! – ------------------------- Digitale Souveränität, Nachhaltigkeit, Dokumentation Linux, Security, Strategy, Politics, Journalism, Networking. https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Matrix, Jabber, Skype, Twitter, Diaspora, ...

Markus Feilner writes:
Nope, problem still exists. Had some hundreds of packages to update (to 20210710-0) after the weekend, three machines throw identical error.
Have you set "download.max_concurrent_connections = 0" in zypp.conf as mentioned in https://github.com/openSUSE/libzypp/issues/312#issuecomment-831227029? I haven't seen any "double free or corruption" bugs since I have done that.

Am Montag, 12. Juli 2021, 12:53:26 CEST schrieb Andreas Vögele:
Thanks! I will try that! Somehow I didn't notice that. Danke! -- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - ------------------------- Agile Recursive Documentation: – Document it or it didn't happen! – ------------------------- Digitale Souveränität, Nachhaltigkeit, Dokumentation Linux, Security, Strategy, Politics, Journalism, Networking. https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Matrix, Jabber, Skype, Twitter, Diaspora, ...
participants (4)
-
Andreas Vögele
-
Christian Boltz
-
Cristian Rodríguez
-
Markus Feilner