From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3DD7AA0471 for ; Thu, 18 Jul 2019 23:20:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25E7E1DBF; Thu, 18 Jul 2019 23:20:56 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id ECA7014E8 for ; Thu, 18 Jul 2019 23:20:54 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 0996D356; Thu, 18 Jul 2019 17:20:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 18 Jul 2019 17:20:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=/9L6roeiR2c3ocT5pPo855anbZQfL1icmqJRhgSPLVc=; b=gH0KRPu66UYZ Fp+vMPc0JssNEeWTYCLWupd8rL1tShM/07kxF//ZMa7cQf+N4EmtM0aQ5c5zkTGe e3T7T3Ypdb4GxhzMFfmZPBV01TZNa899Q25id2FecE+MEtTDXHTLJCflY3s5hErn cQX7h1wfMNxcXtVra0Iob/GHREFG5lA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=/9L6roeiR2c3ocT5pPo855anbZQfL1icmqJRhgSPL Vc=; b=cQKMoiE7asVnp2XwqJchDUXgAjbQoYvxIzC3ELYLwZqzp+ouwtnecVIfk qaZ4AC7YzHRK3sJn8bK5HAXX62IWP7xWd61mv7XXzn6c5v26guCRSSqXrKJ/ZM22 dELT/UvxKX3XTxysuh7jwb6NjBx62Yk2GKMrFkTCCDU8lEuT3uH5my+Fq8ZcLSU1 qmBsJ4p8iK0j9LqI2Mf1jVhiM8Keu+RkThQ0VgIeDYIccAUvSE9n2xQ5fOvYxpc5 wnXV9CrJRdWzNSlXgNrm0MUsK1wqidT2FUwpR9RceLLeVCFqZZpZTv9sjyrQ36eE 8uyjpLfMDbNrCWxzc+Cp99ZGGS2AA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrieehgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id C610780061; Thu, 18 Jul 2019 17:20:52 -0400 (EDT) From: Thomas Monjalon To: Erik Gabriel Carrillo Cc: dev@dpdk.org Date: Thu, 18 Jul 2019 23:20:51 +0200 Message-ID: <3466413.WYBCQ2yfea@xps> In-Reply-To: <1563205172-352-1-git-send-email-erik.g.carrillo@intel.com> References: <1563205172-352-1-git-send-email-erik.g.carrillo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 0/2] fix segfault seen with performance-thread example X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 15/07/2019 17:39, Erik Gabriel Carrillo: > A crash occurs in the examples/performance-thread/l3fwd-thread when it calls > into rte_timer_manage() from the LThread library it utilizes. This happens > because the application omitted a call to rte_timer_subsystem_init(), which > leaves a pointer set to null in the timer library. This pointer is > dereferenced in a check for validity of a timer data object, resulting in > the segfault. This series fixes the validity check in the timer library, > and adds the missing call to rte_timer_subsystem_init in the application. > > Erik Gabriel Carrillo (2): > timer: fix null pointer dereference > examples/performance-thread: init timer subsystem Applied, thanks