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 18D02488BC for ; Sun, 5 Oct 2025 18:40:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0540E402C4; Sun, 5 Oct 2025 18:40:12 +0200 (CEST) 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 35C6F402C1 for ; Sun, 5 Oct 2025 18:40:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759682411; 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: in-reply-to:in-reply-to:references:references; bh=RY5CUWdoSmULy2oX3a/g19clMF5wZHDxL/HuRhtGUVA=; b=eN1IWAA8C+JizUaO7fKSVFQFujYjLdx7mxRb4pO9WrT2VkvfK/09rOjmYY0gzjYzKtjZpk okkX5tURQikPwxe93nbGHLnRi1E/5uzfqqlNb1uXPMO6JwimjaJ/gvBZlH7dqrJ6umjETL aNVC5j02rBDW8gNY5X1bzp6K1ji0lwg= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-691-HfWkBYylPXuFdSwCYsFlaQ-1; Sun, 05 Oct 2025 12:40:10 -0400 X-MC-Unique: HfWkBYylPXuFdSwCYsFlaQ-1 X-Mimecast-MFC-AGG-ID: HfWkBYylPXuFdSwCYsFlaQ_1759682409 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-36306eec0d4so14615891fa.3 for ; Sun, 05 Oct 2025 09:40:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759682409; x=1760287209; h=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=RY5CUWdoSmULy2oX3a/g19clMF5wZHDxL/HuRhtGUVA=; b=LASSl/layNXwOonzNoip19YV555AJ00pPIsG0OcJ0zM36Lh0aMjzXr8IY+GkR1xDLH 13vQQMXBeKBJJtrJKMSJbcAtbc11SrrKeUNg5kW5xo8y/leRItys3W0Eu/iSp0Ly5zvN FJiB0LafK01eWK2EdqLmdr9lPHTLDXaqVpTbglw8JsIGBr32S7/TkALk4ov/5T38F48N KDH+vtCrK2w/GLchm5TgGUz33Ha7UASpGE+R0IH7i2z/Q05v9ztKd9nfSVLpuzDLV6Er 7uthS/sALE2a0Ow6f2SvfowD8IQCeLH/Sm4Do3Srz1VUALsAz+Hwvt1V+R7Vwf4xJhIM Kazg== X-Forwarded-Encrypted: i=1; AJvYcCXKdeiReqFBr6YW+FAV5woMIno9w62sXusxM8uHuYy4NKNpb1Dm94K0UoibqRftcMrb8S8lpSw=@dpdk.org X-Gm-Message-State: AOJu0YzIAF79DXLXtc+wZBLYAhM9Cl3Fdg4VXlhfbgY2m8S9AtPIvRTQ Y0l5eaSyhUYRu2u5KXEzcbUROekM+PRFgIcQnyEkBuhlKJXSg+l8yEr23eP/OfMHTZvtkwRic8S HkjnfF4D6Kc2zsqDC5nxJVoJmuQjwgSGPtDJk5UykETDia7wVkvNQaKgR89hB+BHRawT8bsvynZ qQcn56qIHQviaP8uaTy50d7CU= X-Gm-Gg: ASbGncti0iYonoUPAPVRSc9vco/qf9clfv6TkPbyRHPmqEyiNIjv/BoXjDrWxHsOSH0 CioRkLBDuutWDZyfkXJqK16xGT40y0tuuFhli/fGYTJaOYLuClUf/VhTSIHMrj0rE5Wow+PoD3K ClzNzBpyzY+svwi3hxzkFYrpiTtD2A X-Received: by 2002:a05:651c:1b05:b0:356:839:56a with SMTP id 38308e7fff4ca-374c37ef44emr28727671fa.25.1759682408685; Sun, 05 Oct 2025 09:40:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHB7CgArIv0t23ANHG1wiMpwjlW0WMiEKb0DLbNNg8YVaJg6EQGzY/MEeKkn9w2ovnMcGF88uKl4RMeqyfsXbg= X-Received: by 2002:a05:651c:1b05:b0:356:839:56a with SMTP id 38308e7fff4ca-374c37ef44emr28727551fa.25.1759682408174; Sun, 05 Oct 2025 09:40:08 -0700 (PDT) MIME-Version: 1.0 References: <20220530134738.488602-1-zhichaox.zeng@intel.com> <20220615060154.6905-1-zhichaox.zeng@intel.com> In-Reply-To: From: David Marchand Date: Sun, 5 Oct 2025 18:39:56 +0200 X-Gm-Features: AS18NWD414UwrfKMdsRaZSZywoJQfGnOe_v5_1ZK6C3EgbYyDQt9v6bBCtGlbf0 Message-ID: Subject: Re: [PATCH v4] lib/eal: fix segfaults due to thread exit order To: Bruce Richardson , zhichaox.zeng@intel.com Cc: dev@dpdk.org, stable@dpdk.org, qiming.yang@intel.com, stephen@networkplumber.org, mb@smartsharesystems.com, Harman Kalra X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: _TLDWyaKfiPV71D4uPwgnfkgk1lfh3FgeUHkM9wRvbw_1759682409 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Thu, 30 Jun 2022 at 14:24, Bruce Richardson wrote: > > On Wed, Jun 15, 2022 at 02:01:54PM +0800, zhichaox.zeng@intel.com wrote: > > From: Zhichao Zeng > > > > The eal-intr-thread is not closed before memory cleanup in the > > process of exiting. There is a small probability that when the > > eal-intr-thread is about to use some pointers, the memory were > > just cleaned, which cause the segment fault error caught by ASan. > > > > This patch close the eal-intr-thread before memory cleanup when > > exiting to avoid segment fault. And add some atomic operations > > to avoid executing rte_eal_cleanup in the child process spawned > > by fork() in some test cases, e.g. debug_autotest of dpdk-test. > > > > Cc: stable@dpdk.org I am not sure if the issue this patch tried to fix still exists. However, the problem around usage of fork() in the debug_autotest unit test is probably addressed with 2b403dd8fb37 ("test/debug: fix crash with mlx5 devices"). -- David Marchand