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 4799545CB7; Fri, 8 Nov 2024 22:57:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F2974067C; Fri, 8 Nov 2024 22:57:34 +0100 (CET) Received: from fhigh-a6-smtp.messagingengine.com (fhigh-a6-smtp.messagingengine.com [103.168.172.157]) by mails.dpdk.org (Postfix) with ESMTP id 9417D40263 for ; Fri, 8 Nov 2024 22:57:32 +0100 (CET) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1C4C01140182; Fri, 8 Nov 2024 16:57:32 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 08 Nov 2024 16:57:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1731103052; x=1731189452; bh=WBlbaC+cOBxe8Wf++CeXFEX24BW+ZlgEvzAOsZHwo8I=; b= ixPf2pu6qIjWxJ1JdFGqbm9Zn1d4Wyc1++4/j372fJGOi2d4sFBh8JrOjq3nBO7X 45hnoWX+NsxFpv+dUpG8AXjCnvXnPFkUxxGQooSEZV5mD7eui62H+EzWkrO061Bx jrDcFLC1r08/JyDEgaoBeaAmP7IOELmk79TTZ00E9Xr/zZpTdCfy+lQT9Ha/WXS1 grY4eBBYxz5e9EPMCWU/dQRM27zcMi2fukBETbyT/WpoM1rlNWL4CzoaiAuD3YZc ijacAQ9YagKXsHE5l65A0sJkUHrzveAe1kO9OlfQ64Zske6W64ylgdnMEbQaK29m wmUFpmPlmbZ+LARyDe0TpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1731103052; x= 1731189452; bh=WBlbaC+cOBxe8Wf++CeXFEX24BW+ZlgEvzAOsZHwo8I=; b=d IARkAb5Uhlxa4qq+VXlMMn9AdXKi7f0ixHjhYIxeBpiXFI2PhRIXggtLB9NahSt2 mbudf73+mymlGJD7RYascMl7fZqJrSfNvLMrabTCTBh86gHqNwvj+5UfJo/gAY4i LMiMej2q1A/qB6dn64UbXWv7SzmQaiUROA0Q6c7zieHCpC+7NwwT80HZIE4SCt9E jnTt9caL2F3BRs7XuV7D1glW8VlFER+M8S6M/l0/UkV48sC3XlhQUX6gFMhKKLO/ jOGNNqPFQn728MC69ha1ueeqUFlJ0MuPWTsl1f6al+PtZptEpgApR4TlLbyAsOx7 Rpino48lVOM3q3eVPKCqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeigdduheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthhqredttddtjeen ucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrg hlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpeegtddtleejjeegffekkeektdejvedt heevtdekiedvueeuvdeiuddvleevjeeujeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtpdhn sggprhgtphhtthhopeelpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhohhfoh hrsheslhihshgrthhorhdrlhhiuhdrshgvpdhrtghpthhtohepuggvvhesughpughkrdho rhhgpdhrtghpthhtohepuggrvhhiugdrmhgrrhgthhgrnhgusehrvgguhhgrthdrtghomh dprhgtphhtthhopehmrghtthhirghsrdhrohhnnhgslhhomhesvghrihgtshhsohhnrdgt ohhmpdhrtghpthhtoheprhhorhgvthiilhgrsehlihhnuhigrdhmihgtrhhoshhofhhtrd gtohhmpdhrtghpthhtohepshhtvghphhgvnhesnhgvthifohhrkhhplhhumhgsvghrrdho rhhgpdhrtghpthhtohepmhgssehsmhgrrhhtshhhrghrvghshihsthgvmhhsrdgtohhmpd hrtghpthhtohepfhgvnhhgtghhvghnghifvghnsehhuhgrfigvihdrtghomhdprhgtphht thhopehkohhnshhtrghnthhinhdrrghnrghnhigvvheshhhurgifvghirdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Nov 2024 16:57:29 -0500 (EST) From: Thomas Monjalon To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: dev@dpdk.org, David Marchand , Mattias =?UTF-8?B?UsO2bm5ibG9t?= , Tyler Retzlaff , Stephen Hemminger , Morten =?UTF-8?B?QnLDuHJ1cA==?= , Chengwen Feng , Konstantin Ananyev Subject: Re: [PATCH] eal: fix cleanup on Windows Date: Fri, 08 Nov 2024 22:57:28 +0100 Message-ID: <5101010.VLH7GnMWUR@thomas> In-Reply-To: References: <20241108130822.4073057-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 08/11/2024 16:43, Mattias R=C3=B6nnblom: > On 2024-11-08 14:08, Thomas Monjalon wrote: > > The memory allocated with _aligned_malloc() > > must be released with _aligned_free() on Windows. > >=20 > > The POSIX free() was called in eal_lcore_var_cleanup(), >=20 > Referring to free() as a part of POSIX is true, but a bit misleading,=20 > since it's also standard C. >=20 > > called in rte_eal_cleanup(), and triggered a heap corruption: > > exit status 3221226356 or signal 3221226228 SIGinvalid > > with MALLOC_PERTURB_=3D86 > >=20 > > Fixes: 5bce9bed67ad ("eal: add static per-lcore memory allocation facil= ity") > >=20 > > Reported-by: David Marchand > > Signed-off-by: Thomas Monjalon >=20 > Reviewed-by: Mattias R=C3=B6nnblom Applied