Issue with Packet Memory Allocation – Double Allocation Without Freeing

Jaiswal, Adesh adesh.jaiswal at rakuten.com
Wed Mar 26 17:51:39 CET 2025


Hello everyone,

We are using memory allocation for packets in our DPDK-based application. However, we are observing a de-sync issue where, during debugging, we see logs indicating that a packet is allocated twice without being freed in between.
To diagnose the issue, we added logging at both the time of allocation and deallocation. From the logs, we noticed:

  *   The same memory address is allocated/shared twice without a corresponding free operation.
  *   This is causing inconsistencies in packet handling.
Our Questions:

  1.  Is this a known issue in DPDK 18.08?
  2.  Is there any existing patch or workaround available for this problem?
  3.  What could cause a scenario where a packet is allocated twice without freeing?
  4.  What debugging approaches or tools would you recommend for tracking such memory allocation inconsistencies?
Additional Details:

  *   DPDK version: DPDK 18.08.0 version 16
Would appreciate any insights or debugging tips from the community!

Thanks,
Adesh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20250326/eef576d4/attachment-0001.htm>


More information about the users mailing list