Re: dnf: terminate called after throwing an instance of 'std::length_error'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, 24 February 2025 at 09:30, Petr Pisar <ppisar@xxxxxxxxxx> wrote:
> > Has anyone else seen this? Frustratingly I can't reproduce locally.
> Last time we saw and fixed this issue was 4 years ago.

Hmm, it's certainly something in the latest release.

> A reproducer is welcome because the mistake probably happens way far from
> drawing the progressbar.

This morning I tried grabbing the as-built docker container from the github container store, and ran it successfully with podman interactively on Fedora 41. It's certainly something to do with running without a tty, or with a "small" tty.

> > I'm guessing it's a regression in dnf5-5.2.10.0-2.fc41 -- i.e. https://bodhi.fedoraproject.org/updates/FEDORA-2025-665751b0e4
> Yes, there was a lot of changes in the progressbar code between 5.2.8.1 and
> 5.2.9.0 versions.

Frustratingly, it's also impossible to "dnf downgrade dnf5 -y" in CI as it also crashes downgrading. A log isn't so useful as it's literally:

terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_replace_aux
Aborted                 (core dumped)

This seems to be that we're trying to create a huuuge string -- i.e. something like https://github.com/rpm-software-management/dnf5/commit/8974d33bd97396c148181474dd9efc734a05a072 looks really dodgy with regards to integer underflow.

Richard.

-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux