Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-154736

History info for interval warns of memory leak, displays Unknown Persistence [libdnf][rhel-10]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-10.2
    • libdnf
    • None
    • Moderate
    • rhel-swm
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This is a clone of issue RHEL-154734 to use for version rhel-10.3

      Original description:
      Upstream bug report: https://github.com/rpm-software-management/libdnf/issues/1744

      What were you trying to do that didn't work?

      If I pass an interval to dnf history info command:

       # dnf4 history info last..last
      Transaction ID : 14019
      Begin time     : Fri 30 Jan 2026 02:06:45 PM CET
      Begin rpmdb    : f61e8259d5713e93ab9dc4fcf6770f4693d5f0a5426affd55d7cc90a85dbbe53
      End time       : Fri 30 Jan 2026 02:06:45 PM CET (0 seconds)
      End rpmdb      : 47e2c3eef66861b69937e1381a599889067ece7f91bba06e6bb43ddacd623efd
      User           : root <root>
      Return-Code    : Success
      Releasever     : rawhide
      Command Line   : downgrade /home/test/rpmbuild/RPMS/noarch/test-0-2.fc44.noarch.rpm
      swig/python detected a memory leak of type 'std::vector< enum libdnf::TransactionPersistence,std::allocator< enum libdnf::TransactionPersistence > > *', no destructor found.
      swig/python detected a memory leak of type 'std::vector< enum libdnf::TransactionPersistence,std::allocator< enum libdnf::TransactionPersistence > > *', no destructor found.
      swig/python detected a memory leak of type 'std::vector< enum libdnf::TransactionPersistence,std::allocator< enum libdnf::TransactionPersistence > > *', no destructor found.
      Persistence    : Unknown
      swig/python detected a memory leak of type 'std::vector< enum libdnf::TransactionPersistence,std::allocator< enum libdnf::TransactionPersistence > > *', no destructor found.
      Comment        : 
      Packages Altered:
          Downgraded test-0-3.fc44.noarch @@System
          Downgrade  test-0-2.fc44.noarch @@commandline
      

      Non-interval queries work fine.

      What is the impact of this issue to you?

      History info output is garbled and persistence of transactions in the interval cannot be viewed.

      Please provide the package NVR for which the bug is seen:

      libdnf-0:0.73.1-14.el10.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Run any DNF transaction
      2. dnf4 history info last..last

      Expected results

      No swig/python memory leak warnings are shown and output includes "Persistence : Persist"

      Actual results

      DNF shows swig memory leak warnings and Persistence: Unknown.

              amatej@redhat.com Ales Matej
              watson-automation Watson Automation
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: