DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 839] pdump: any subsequent runs of pdump_autotest fail
@ 2021-10-26 12:09 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-10-26 12:09 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=839

            Bug ID: 839
           Summary: pdump: any subsequent runs of pdump_autotest fail
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: konstantin.ananyev@intel.com
  Target Milestone: ---

rte_pdump_init() always allocates new memzone for pdump_stats.
    Though rte_pdump_uninit() never frees it.
    So the following combination will always fail:
    rte_pdump_init(); rte_pdump_uninit(); rte_pdump_init();
    The issue was caught by pdump_autotest UT.
    While first test run successful, any consecutive runs
    of this test-case will fail like that:
RTE>>pdump_autotest
IN PRIMARY PROCESS
rte_pdump_init(): cannot allocate pdump statistics
rte_pdump_init failed
...

I submitted fix to free pdum_stats memzone at rte_pdump_uninit():
https://patches.dpdk.org/project/dpdk/patch/20211026115301.5456-1-konstantin.ananyev@intel.com/

If you think it is not a proper way (instead we should keep memzone forever, or
so),
please feel free to supersede my patch with newer one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-26 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 12:09 [dpdk-dev] [Bug 839] pdump: any subsequent runs of pdump_autotest fail bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).