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 8AC4D45CB5; Fri, 8 Nov 2024 14:12:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22BDA43348; Fri, 8 Nov 2024 14:12:10 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 0BFD840677 for ; Fri, 8 Nov 2024 14:12:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731071527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yeygqdM5TFIuTWE2wd63pDzZ4i/ONOqbKwg/hlY+Pak=; b=EjD6DkxWDm1TPprdWRdUcnrTsn34x5PcColmcXyxC93Ka1KHro7DNrQwgAVSEYLIVNBy0K 6NprDQ1BOipfVxOAuUJXUX3Iwzu3jJF+Hqo4vmy51eic0mWOtyem8q5LGS98yWyuwpw2d0 ZYlpCGzwWQaWHoK2mHoS0Czcemmp47Y= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-509-unc7BBB0NpG2M8VXVfTb5g-1; Fri, 08 Nov 2024 08:12:06 -0500 X-MC-Unique: unc7BBB0NpG2M8VXVfTb5g-1 X-Mimecast-MFC-AGG-ID: unc7BBB0NpG2M8VXVfTb5g Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-539e91e12bbso1436744e87.2 for ; Fri, 08 Nov 2024 05:12:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731071525; x=1731676325; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yeygqdM5TFIuTWE2wd63pDzZ4i/ONOqbKwg/hlY+Pak=; b=wMVo6eFhPbjD8PS2UkhsqFXp5M9XlW3yWli3aZcYxOUGLbW3TM5a1q3SZ/HG2904JV 7wPRzKx+dcd7UJfG86cRC+QECyFSETPBgapUA3WN0RuTpWgK7r1uuo/Pd6BqFFEXtNEl zjlPQyedfzGNFcHiEbVG2kJESzPgoUBoelei1kEhARxHrAJ+1GlSUw62YoPsnU1Pko44 OZ6qVz/PL07SW7gjVPi6y3wzM/d2HrQpUQxBangEn6j6UN88yFLhSGeluKn9R5oztufE Iz1k5KvYO20NKsgm63KOWnd00Sf9EafBAC50c6AbwHIDpIAajOvGoMS2wDtNiUgdrMYj n8eQ== X-Gm-Message-State: AOJu0YyLrwlPCTdpTGJ30bAk3OthuFfwFIpJB/w4lgUi6YV4aF3UELWs FWXiKKUYDosXXyXVrsGYB8GPqQ5raoRniVd8p2avD4JyXGcJTd//mhsIgBCbl3rEDg1NTGYdXT0 rApvoTGE9VLZDbwFC9+H7y3u0C+/mAEWM9WXAYZ1lr5mP4raPitbJ6Pl2KLKXBZbPXKgSwdiv2N RwUA7JMESiShxc1ew= X-Received: by 2002:a2e:a594:0:b0:2fb:3ecc:94f8 with SMTP id 38308e7fff4ca-2ff20209e6amr14199931fa.22.1731071524893; Fri, 08 Nov 2024 05:12:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtFwLP0lo3W/9IgqX8l9x+7seiM9unQ9NIquyztrzkyw/isddh7iO/cIrpbH8ROa8ubtLGW0NQ0zk0AQ57VjE= X-Received: by 2002:a2e:a594:0:b0:2fb:3ecc:94f8 with SMTP id 38308e7fff4ca-2ff20209e6amr14199801fa.22.1731071524519; Fri, 08 Nov 2024 05:12:04 -0800 (PST) MIME-Version: 1.0 References: <20241108130822.4073057-1-thomas@monjalon.net> In-Reply-To: <20241108130822.4073057-1-thomas@monjalon.net> From: David Marchand Date: Fri, 8 Nov 2024 14:11:53 +0100 Message-ID: Subject: Re: [PATCH] eal: fix cleanup on Windows To: Thomas Monjalon Cc: dev@dpdk.org, =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , Tyler Retzlaff , Stephen Hemminger , =?UTF-8?Q?Morten_Br=C3=B8rup?= , Chengwen Feng , Konstantin Ananyev X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: S1NJjf6sfLdGx9SwZ3Nm0qVvhl9KwV3zprH4NbG2Fs4_1731071525 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Fri, Nov 8, 2024 at 2:08=E2=80=AFPM Thomas Monjalon wrote: > > The memory allocated with _aligned_malloc() > must be released with _aligned_free() on Windows. > > The POSIX free() was called in eal_lcore_var_cleanup(), > called in rte_eal_cleanup(), and triggered a heap corruption: > exit status 3221226356 or signal 3221226228 SIGinvalid > with MALLOC_PERTURB_=3D86 > > Fixes: 5bce9bed67ad ("eal: add static per-lcore memory allocation facilit= y") > > Reported-by: David Marchand > Signed-off-by: Thomas Monjalon Reviewed-by: David Marchand --=20 David Marchand