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 7A8FEA04FF; Tue, 17 May 2022 10:29:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32F6E40042; Tue, 17 May 2022 10:29:08 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 47A3B40041 for ; Tue, 17 May 2022 10:29:06 +0200 (CEST) Content-class: urn:content-classes:message Subject: RE: [DPDK] eal/linux: fix segfaults due to thread exit order MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 17 May 2022 10:29:05 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87080@smartserver.smartshare.dk> In-Reply-To: <20220517160444.413819-1-zhichaox.zeng@intel.com> X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-TNEF-Correlator: Thread-Topic: [DPDK] eal/linux: fix segfaults due to thread exit order Thread-Index: AdhpxNElZQWDhOwASA2puxPViwk9yAAAzyTg References: <20220517160444.413819-1-zhichaox.zeng@intel.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: , , Cc: "Harman Kalra" 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 > From: zhichaox.zeng@intel.com [mailto:zhichaox.zeng@intel.com] > Sent: Tuesday, 17 May 2022 18.05 >=20 > From: Zhichao Zeng >=20 > The eal-intr-thread is not closed before exiting the main > thread. There is a small probability that when the > eal-intr-thread is about to use some pointers, the pointers > were just released in the process of exiting, which cause > the segment fault error caught by ASan. >=20 > Close the eal-intr-thread before exiting the mian thread > to avoid segment fault. >=20 > Signed-off-by: Zhichao Zeng > --- Acked-by: Morten Br=F8rup