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 DB963A0542; Mon, 30 May 2022 18:28:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA1E540689; Mon, 30 May 2022 18:28:56 +0200 (CEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id 01AA2400D6 for ; Mon, 30 May 2022 18:28:56 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id u12-20020a17090a1d4c00b001df78c7c209so14251020pju.1 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=epdEkXtCtB5OLJiwobNc+8XhyfVQc6hSpUJ+zzjwBaP1EWte1+w3KNapL9+DaF/6p5 MJk7RQV4VN5Hkgpt4KY6ePUzX22G0z2FOsM96OrxZfQ39elLEfyCSJWtguyhYFLNQj3T 7JWiyvqcfSzrkYEA2y6W+IaDu3V1d9DYzSPKq1u54fFYmU0uVRN7mpfj8sDh2/xYDtCC NLdxxMuKMae+FszT7epmhfwHK0SV8V+yNV5fJvB5zqQREZ5/I4qiYxOIpJw/itU3vBDb qFiRiVWJqxDHxd97xWSKhQ2nDWQVxplwMPBZ5C7yNsLToY8a87wMl4UOasVOvDzQMWrP pArQ== X-Gm-Message-State: AOAM533tuXU9YmXG2qUj5bFrR3epm11lEOTDgXfXuizLGXbZSXSPuO4h a4hBxnEmcAKltyb3ESMg9ZSGtg== 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: 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 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?