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 4D963A00C4 for ; Thu, 28 Jul 2022 15:10:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E84E340151; Thu, 28 Jul 2022 15:10:23 +0200 (CEST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mails.dpdk.org (Postfix) with ESMTP id A45AC4014F for ; Thu, 28 Jul 2022 15:10:22 +0200 (CEST) Received: by mail-lf1-f43.google.com with SMTP id a23so2755577lfm.10 for ; Thu, 28 Jul 2022 06:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0bc9h3SWoOIVoFye5h3dFX7wz8yD2Y1UtES14dEtHr4=; b=Txqw3gX+0v54BCW628k+KAgNvdJQN6+d3Qy7XTvz5YZ19zkH+0/DvRFK9y1YCAriFR x6w/2sq83appO5etKl4nki3b95ybPdiRJbZfU1vUUZGK1Komh5BJChVeYulCmL39xEtd 6borP0yzo1QupwD8O3EwGDyPyIEawb30Rpaxm/2zOhY5hx2+tP8O6UddJe49LjmIeFhG uprs4+89bQR3NG5Ynmoe+BhUDVkd386Ghi1iY7jgUZNNO4xfCpCJgSLM2FTsACn1qjy2 WM72NUYryfiR0ARTAoCwM6J7oVSETAQMtZDaJV8X6RrMa1KsC3Uof3ek/JwmDDG+gF/q I7HQ== 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=0bc9h3SWoOIVoFye5h3dFX7wz8yD2Y1UtES14dEtHr4=; b=AKg9y0M2GLkq6YDC7KRbXNPQDDie+tqdR5Iq4BQdyhscMNjqzDE2jPUIesoFVustX6 rb4e0UCXhbOVH2IrE1kykR+v4AGsNd4/Fo+uQRvIrSBOusiC5RLe68I45nYhU7btWKkU y24MYH+Smqhclll+aGVbyguDpMneGuhzSoF4A0ETYdWMGI3i11chkKRXTlFUH43iM13I 3jZbMQQLNhDsj9uPC+zP5ZgElp1bbBYL8ZxDO+P0f6EP6klXY1rEv7xvD1o0HvGwK7FN PEnwpUqamdeyRpxZb1AFINe/sqxVUrJ4XtgnH2bUHtBoO6V7PJMDuSkKfxDVUTF8w5vW sGkA== X-Gm-Message-State: AJIora/xImPJpn4Pzv/yYVZ3xnSGkJ63J+VAFNO4okHckug8UVkx1L2q B/WVz0EwiHs385mUcdOsoUY= X-Google-Smtp-Source: AGRyM1uMA05ihGO6PZ3EjR7V2XBTMXMcsuRd3T3p3UusHFr2aE2cYBlQxLKSYXRzLD74i9Spl6oTQg== X-Received: by 2002:a05:6512:3e13:b0:48a:9371:3ccb with SMTP id i19-20020a0565123e1300b0048a93713ccbmr5962403lfv.504.1659013821761; Thu, 28 Jul 2022 06:10:21 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id n15-20020a2eb78f000000b0025dff6cc0c8sm135953ljo.65.2022.07.28.06.10.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 06:10:21 -0700 (PDT) Date: Thu, 28 Jul 2022 16:10:20 +0300 From: Dmitry Kozlyuk To: MOD Cc: users@dpdk.org Subject: Re: Mempool bigger than 1 page causes segmentation fault Message-ID: <20220728161020.179f1fc7@sovereign> In-Reply-To: References: <20220727153055.0907ea35@sovereign> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org 2022-07-28 15:05 (UTC+0300), MOD: > Hi, Thanks for the response! > the DPDK version is 20.11.4 > > the stack trace is: > malloc_elem_can_hold() // librte_eal.so.21 > find_suitable_element() // librte_eal.so.21 > malloc_heap_alloc() // librte_eal.so.21 > rte_memzone_reserve_thread_safe() // librte_eal.so.21 > rte_mempool_populate_default() // librte_mempool.so.21 > rte_mempool_create() // librte_mempool.so.21 Is this all the info---no arguments, no lines? You're using a debug build of DPDK, right? > RTE_MALLOC_DEBUG doesn't seem to change anything, > but I noticed that I have been wrong about the allocation succeeding > (not because of RTE_MALLOC_DEBUG) > > the error happens right on the first attempt. Did you try running with ASAN (meson -Db_sanitize=address)? Can you provide a short code to reproduce or does it happen only in a larger program? Please keep Cc: users@dpdk.org so that more people can join if they want.