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 AEDE1A0543 for ; Mon, 30 May 2022 18:28:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A84F4410E3; Mon, 30 May 2022 18:28:57 +0200 (CEST) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id 0660840689 for ; Mon, 30 May 2022 18:28:56 +0200 (CEST) Received: by mail-pj1-f45.google.com with SMTP id n13-20020a17090a394d00b001e30a60f82dso2648319pjf.5 for ; Mon, 30 May 2022 09:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PI0eDKaK7lbP+Jqn0w8gbPReu4+M+w/1X8YUMZkc66I=; b=xXztTIAdqLVDgxA00GnrYfuDhu+ZK1fKXzpw8FI9GZ/328pBjQe9s5HaEaamGzpX6k nbkJhPs3SgESdUkDLpWHuNplu2MNp/CD7NpYqLv5/c+zY2hg/pa5CVr02Q1k4vTRjXTR cmmsTkil5cM0M/lFLf13L+Mjmb5hgK0NQHehKjV0ud/1ssgsEfUEu9O4hJUjLcsaEvcw OX/QSD3yCPAtFt8HkHrqCsIMxI5LXUGYmdHsE9hNj2uOiWv5xadN/zCFUCXa/fMeiSxu RR2ghBPLlcvK6HHF5Scr/+jUPJKvclUHkycOGc+wK0i3RNc9Sphni01oiQYmaPk6vxu1 HYnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PI0eDKaK7lbP+Jqn0w8gbPReu4+M+w/1X8YUMZkc66I=; b=A0sm6IWL4S1oSC8W1pGZ8NrV1GsBRtW7hp26MFe+/ZFybxbiXrkhDkp+kwKFnTu1on sKLCsqFfPDCeIwGxtd+xasudAyJfb7LiAU2ER6xObQ02MNvgE1iVa6UCdr8ytTrIAP5l CtCRXw87M9AZ7j3t719RFWsE6htsraUADBRbwwKpfFdMrd5CapzLcMqXu2fMlWUNRVxu cRS0Fwi2dvAp73ieAM74zYWqq02wcaDG0BWQ+N6jR7irTNG2BwYGkoI8EMC8ZRCscxRx 8BDx+6g4hNpPN0ZTQTN684LyifbeiIWSmihAG9Ynadke5a33IgYH7UEuc0h7oKgEVtjH ukDw== X-Gm-Message-State: AOAM5313U3zJsI2ZRfW36E6vx37fJlSaLls7v9QxphZLoJt7aRsgiDPB fRSdmIKYPOd0WZraIDLuxIPdDg== X-Google-Smtp-Source: ABdhPJw+4LHCApKvU8hjRtQUp0DB7BJQqBswwkllWS00JLwayP1ehIMy0HdK22IszrNKZv0kGI3+wA== X-Received: by 2002:a17:902:dad1:b0:161:9abb:fb75 with SMTP id q17-20020a170902dad100b001619abbfb75mr56848270plx.135.1653928135213; Mon, 30 May 2022 09:28:55 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id lj13-20020a17090b344d00b001e2e789a128sm3204684pjb.52.2022.05.30.09.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 09:28:54 -0700 (PDT) Date: Mon, 30 May 2022 09:28:52 -0700 From: Stephen Hemminger To: zhichaox.zeng@intel.com Cc: dev@dpdk.org, qiming.yang@intel.com, bruce.richardson@intel.com, hkalra@marvell.com, david.marchand@redhat.com, aconole@redhat.com, olivier.matz@6wind.com, thomas@monjalon.net, stable@dpdk.org Subject: Re: [PATCH v3] lib/eal: fix segfaults due to thread exit order Message-ID: <20220530092852.54638bdf@hermes.local> In-Reply-To: <20220530134738.488602-1-zhichaox.zeng@intel.com> References: <20220523111642.10406-1-zhichaox.zeng@intel.com> <20220530134738.488602-1-zhichaox.zeng@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Mon, 30 May 2022 13:47:38 +0000 zhichaox.zeng@intel.com wrote: > @@ -883,6 +896,8 @@ rte_eal_init(int argc, char **argv) > > eal_mcfg_complete(); > > + pthread_atfork(NULL, warn_parent, scratch_child); > + > return fctret; > } There are lots of other cases where DPDK will die if you fork() in a DPDK process then call DPDK functions in child. Not sure what the problem you are trying to solve is?