From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4041246480 for ; Wed, 26 Mar 2025 17:51:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DBED402E3; Wed, 26 Mar 2025 17:51:43 +0100 (CET) Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11010012.outbound.protection.outlook.com [52.101.229.12]) by mails.dpdk.org (Postfix) with ESMTP id B7279402CD for ; Wed, 26 Mar 2025 17:51:41 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xIdH+h7BQLM89HM55m6oqQB+Y+kMJUv4hBYhELRryK1HzSifU75mP5wZ6D2Brr3KMGgxWjOP5xRq1RiJFxIoEdOHqJCqP5BEXSGfdCvm2+qMXPNfuduYuTtBS+qS+ul1JGB1+t3TYnDeWcYHAR3/ABALMvYdxUSQu72gqbVH5zYRQfdODW6MOeHFN2KyeN1wsuU2JrYaDpedCRzmcCG3Hl3gwITEusrPw13PKRFI+GRkZ7Qwx6pOgRajZNgl6J/0rjjXy4cFMVlfIuH+I47pJLnrK6NAfj1vlQpuB8W38JCsqYQR9M+iH4Avhrgzu3nnhRLZc5X3Qn1aGlelPav43Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/akHALHG4l6Wv5pOPSc2Bmnn54In5OvWHbjpwKqvQ3g=; b=Uel40AJ1fbyssavTm3cm7S8f2ug8bLSsYxgvZInqvcLZljPdvHgQmsIn9Mr3RhVg/+s6njxCwXMyHpRYW5+EjDxznReF/WguADFwteE7ZRXFjiDA6b5G/mVgTuG2C6KVCMpzLS0EJqRBwUu9xrzZPJt5e7MCoIsg2ptiE6EsMGm2yU3b0WLGrETBjDbgKo1ilFo1sbMsLGdMF3XDt6A/TqUkr8s/pKZg7yHfimGUeycT6AL4nGSBrpr7xrw4SsMQt+jVjvzoE0iB6Tu9rAr+gUSSqf7hGeP1uHoc60xy88a4lfG6Qlfw47doq9X69NpFUiGLtPdSKzoq1B+bcx2ztw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=rakuten.com; dmarc=pass action=none header.from=rakuten.com; dkim=pass header.d=rakuten.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rakuten.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/akHALHG4l6Wv5pOPSc2Bmnn54In5OvWHbjpwKqvQ3g=; b=gSN2PH6rnsjgEp6wrQyEESc2NAyL91oxcAZlKFAwYpqA3s+q8q8XqE6nElLLAIDEQu/IC8FoIXueMdpoyLs67N7YRTN3LZpFdzOH909+cmgqW0BfDiOvM9L5ksXPXkbpgP11jexx8Cq3Ci4wpqT1ZhNyGtkR2ZqZM5Pi9aOb3fA= Received: from TYYP286MB1619.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:114::11) by TYWP286MB3144.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2a3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Wed, 26 Mar 2025 16:51:39 +0000 Received: from TYYP286MB1619.JPNP286.PROD.OUTLOOK.COM ([fe80::b5a6:3e46:3be7:6345]) by TYYP286MB1619.JPNP286.PROD.OUTLOOK.COM ([fe80::b5a6:3e46:3be7:6345%5]) with mapi id 15.20.8534.043; Wed, 26 Mar 2025 16:51:39 +0000 From: "Jaiswal, Adesh" To: "users@dpdk.org" Subject: =?Windows-1252?Q?Issue_with_Packet_Memory_Allocation_=96_Double_Allocatio?= =?Windows-1252?Q?n_Without_Freeing?= Thread-Topic: =?Windows-1252?Q?Issue_with_Packet_Memory_Allocation_=96_Double_Allocatio?= =?Windows-1252?Q?n_Without_Freeing?= Thread-Index: AduebHLhuRisDx7kSs2qqCV68qTeUQ== Date: Wed, 26 Mar 2025 16:51:39 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=rakuten.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYYP286MB1619:EE_|TYWP286MB3144:EE_ x-ms-office365-filtering-correlation-id: 63a71d64-b58b-4650-f3ee-08dd6c867a8b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018|8096899003; x-microsoft-antispam-message-info: =?Windows-1252?Q?8Tz2mxoG84EAs2JpKUstbNOGlDM25mQzZ8G+3MkmQ7OAcuVV+uqdKJSJ?= =?Windows-1252?Q?xoAiwDkLFXATwnF5mKLsHZ447Ap3fo2rA+kiFBNbyQ9Qy1wdtCC1+347?= =?Windows-1252?Q?kbdq7AN9FgIkZum0QQyZboNrS1A00vJ+Ms2gR60cbcuVDMefXn8Jrvnu?= =?Windows-1252?Q?UShXQu9JzJATcuR9ZnvKtSlLzVQsxYWyO8iqCu2njAYGXhDRJrExovR7?= =?Windows-1252?Q?YRUYj8+5kPXRUOBUdMeibs6/TPzwF2e3EdJzxKZVPtkE1hqPATQ1nP9Y?= =?Windows-1252?Q?6IhvcCyYv16RpEjmCKt22loHr5SFNgkytZR8itlbhQe3LqnPiH394xGh?= =?Windows-1252?Q?odNTeiid3aCXGsTj08ZH4OhP5t6Qb5hmJVLGWfSQAjLxx4pmAOH17J8B?= =?Windows-1252?Q?/L0xsG8GiogG702q0jQsTqjfcI6dDWvxutco6+yf7xE3X3lbM0uImgN2?= =?Windows-1252?Q?DX39RAFcQUhhJD39jKuR1Vc3lkqZN0PSxm3bxQ/wpQwaFy/ReiVoXM6D?= =?Windows-1252?Q?MqnjPDlwnoJoaAz3RKgJYSl8xUOwZ3HGrzt02KzRtMxGg5FU+xoytjeA?= =?Windows-1252?Q?7tUjQ+42N8wSvxgJv/pqzmiAjoBtmRpOm/mAJa7/ZHMzbDDog8oGGMns?= =?Windows-1252?Q?6YHJ/fbSo7MRCEt7VpY1UyVRXrENyE8sbN5ocfZ5BkfAHQCBw1g2TKzp?= =?Windows-1252?Q?B3W4tjZlJmnLKxKiCRU5COmIuowOAZag7t9BCsd+ya+bWy5Z3SONft78?= =?Windows-1252?Q?HU8Xb2t0GQsMDGNE+RB8UfKLszBmj74K7feg30LeDayei6un1TF3z5xU?= =?Windows-1252?Q?c82IDts/WhteYBB9yl/k8qOzY69PcZu9UuqEy8PPHsk32bnXD9LuZG6i?= =?Windows-1252?Q?uQJdq3J8I6OWtjYJ/L/AzACrTec/yFLGJvvi8MFdohueCGDC1Z7Rwc2r?= =?Windows-1252?Q?HlKJPzB1ld3+IifHPvVluDtUbcvDhTa2z+49oeB94T8WRsujkbCoxNR+?= =?Windows-1252?Q?A8FBZdH7p5k3DiC3YX+xeUyHlu1+1m5vLbhXvh2kmFZyXZDrvdDt9INY?= =?Windows-1252?Q?DOKPW0MlBebMafJ8Jmvjb1loaeLszz4y2LBVQaO8dgGPCvRaow/ytG3I?= =?Windows-1252?Q?nmDGCy4SmGmBhQ20J3M682TaH/3wvUfL1Pttezbj3/5jkmwPLPufWMhL?= =?Windows-1252?Q?og8XiMVazveU9beQjn+ChLLBPXxpk0vAp68Q51uZq1k7EnyeBBgJlzvK?= =?Windows-1252?Q?qgtBvThkmqQ4xq3mgr46RyGyR9mu9IaICJRtshZNP04OC19Yaq6xZspU?= =?Windows-1252?Q?/yzFrN+UbUBdY7hQstVpzjcfBCOrIzca1v0SmOhn8AW8+vGbiDfr9pW8?= =?Windows-1252?Q?JviDggrkkhvPrWauPT/pmyNDAZoAVN4PFntakTFLMp0R4F868y6kxm+P?= =?Windows-1252?Q?taaStVOD9GnJYqXouJlyNdVpPR1jrjwWNb/hZMrzp3J86Ee7x0df+lqu?= =?Windows-1252?Q?zR+dLugvSkGBTJwb32G0U5X9J+jkie7jGQAfQrwGszBfCID7eqLI5z7M?= =?Windows-1252?Q?GhYfHY+boDn3DItM?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYYP286MB1619.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018)(8096899003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?JDgoRm7K5ZRjVzon0vCZRkT269dT/dN7CaHf4F92Sp+Ofd7JGjVozOLE?= =?Windows-1252?Q?xvOc/9QsJbPbx1wB6BCFoDBRjrtIkocCkN6SVrb+nJfZYYZxHi2fg/8a?= =?Windows-1252?Q?Yae8x1KtjJ+1mQQhPPTfKq4aldTHs2LANoliaGq13WNM4S8fgw3P6wvV?= =?Windows-1252?Q?441L/HdE/uQb2U1Z/3WGvNxear74i+crpqCipsnXIuM+qFY9aKhU9hNg?= =?Windows-1252?Q?ShWMBDluRJs4L+YYQMgZWR5N8nX0iz8ZGzWAUu6h+dN01X6jhpAtKkNy?= =?Windows-1252?Q?Kp4VZxjI6Go9ikjr64jpa34SRB7yqSWe4DtgZFhNghh+zpOe78XX2HMm?= =?Windows-1252?Q?LZQM1M9Q5qvuqcOgP8qCoN8fy3u50/1PSacrFvL4o19zGHFfoCSddW7F?= =?Windows-1252?Q?CSrIfR0INP270rjtnrLm0PoPpWUrNXRB0EsQGk669XsPcmMgdn/Gm54j?= =?Windows-1252?Q?BJSCp71DYCHZ/LSeJW8mP79VrFu5u7mFLiQOWnOEoHCk74ejn7OZRU0W?= =?Windows-1252?Q?p3NFcczOuANhL2yf91CmhG2NY5sIXF4kPBCVHDea23oZesRJX8hf4Ccj?= =?Windows-1252?Q?twwUFbp/MwNIOkJ/bpuoXFodPxo1v8vM1v5gq4AONPvofXgm84mTrKsS?= =?Windows-1252?Q?ZOgbHWi90Rm+EGCy30PtOYjKBx+/OEbgp+N7Jy08hGfkKyRYKBUtPdo1?= =?Windows-1252?Q?7FZhJwKJ2ZtHL1o4fsLm4hLFtBuDNAifGUU9xlJ7Dhub67kg97B0ZQv7?= =?Windows-1252?Q?DCRZwQ5RZAhdSJGoTs4vK6itdPDbv6/CPFyitfK/auXu4YMduoo2SNHO?= =?Windows-1252?Q?OHZpDug7KCoQHqe5Ki+EwYoiar5xzQfmMD/zOJMxSrkK9LayQJPMW5lB?= =?Windows-1252?Q?5kv8Nhz7b0Pn+Yj0FbBwEOztMeKPMuVQGseEG1LvJ1NfFrCHc9AN7vkz?= =?Windows-1252?Q?gASu0eYK1vrCwZMk62e8NBP3Ay+CDB1jUgn5eJicUQI/2+v1uyZjVJ6i?= =?Windows-1252?Q?bKfxhJ1f8T1o2a8z7X5XWzz+vluI+sqTDbhRYY630xJmr3rux8zbTHIn?= =?Windows-1252?Q?ZbL6lhDgRUZAtpwQ7hivX+OkQiEO5YrRM44vKObwhynQKj623kdHMCn6?= =?Windows-1252?Q?cNUiFp+9ANnxIHEK197D+F3w7FeH5AmpqbUyHq/+veDYBY+7mo15ujiX?= =?Windows-1252?Q?RRYO1ROKIvlLI8vBBIznHzgWMf1tFmfYyoChI6aBxng8PgIxTenEtAQO?= =?Windows-1252?Q?GGgj1fa2TcPuOcXGipr5T+hlh89S9JzHpPl0zQawA5UEbbB7EoZctBNn?= =?Windows-1252?Q?O26LKIjbsuK42RYP2ZeV6d2UI08T/IJWrAXEGtxqUVZIe48EIleQVQZ2?= =?Windows-1252?Q?dCrKVKQ1yqkVGY1cbra9MtJb8NL6vfv9x7LEQjk09MsMenn8ddo7wcbA?= =?Windows-1252?Q?cqG08e0QFaKtFuwWudxXy3v0DSLkVqU38hNPX/ZpUJ68krL9AERQyGc7?= =?Windows-1252?Q?ABoG/vv1k1KHhdBw+VBw+sBhBmZmIUyZabvY9c+T3UvQiOIPIuCcutLD?= =?Windows-1252?Q?NHI0zkhgtROG3ffLskS1wSS5bDVhd3vbwPfYWcVHO4Z9Vefug33syvzb?= =?Windows-1252?Q?FAj09aXLYsRrM4trrPYD2r3J98YnCzQ6gHGOIHNwr2upvL//bQnkYR1v?= =?Windows-1252?Q?C21HYVRIESza60kkk3zR52Vfi2d4B+z7?= Content-Type: multipart/alternative; boundary="_000_TYYP286MB1619DCDDD33B65C8037F0744F9A62TYYP286MB1619JPNP_" MIME-Version: 1.0 X-OriginatorOrg: rakuten.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYYP286MB1619.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 63a71d64-b58b-4650-f3ee-08dd6c867a8b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2025 16:51:39.3752 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53a8b0d9-d900-48cc-9d7e-5935dc8d5b17 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nVxFwUkqhT8dTG42xTWDbzCI3tKFsxpoBfX3+R4WYI3N4wbo3cJfZGSk8ypBTgnQFhJvpAeLNrGDMQakHP5TRgWrlXaULkZJkrPEsRXgbpI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWP286MB3144 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_TYYP286MB1619DCDDD33B65C8037F0744F9A62TYYP286MB1619JPNP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello everyone, We are using memory allocation for packets in our DPDK-based application. H= owever, we are observing a de-sync issue where, during debugging, we see lo= gs indicating that a packet is allocated twice without being freed in betwe= en. 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 correspon= ding 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 s= uch 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 --_000_TYYP286MB1619DCDDD33B65C8037F0744F9A62TYYP286MB1619JPNP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hello everyone,

We are using memory allocation for packets in our DPDK-based applica= tion. 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 a= ddress is allocated/shared twice without a corresponding free operation.
  • This= is causing inconsistencies in packet handling.

Our Questions:

  1. Is this a known i= ssue in DPDK 18.08?
  2. Is there any existing patch or workaround available for t= his problem?
  3. What could cause a scenario where a packet is allocated twice wi= thout freeing?
  4. What debugging approaches or tools would you recommend for tra= cking such memory allocation inconsistencies?

Additional Details:

  • DPDK version: DPD= K 18.08.0 version 16

Would appreciate any insights or debugging tips from= the community!

Thanks,
Adesh

 

--_000_TYYP286MB1619DCDDD33B65C8037F0744F9A62TYYP286MB1619JPNP_--