From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0040.outbound.protection.outlook.com [104.47.34.40]) by dpdk.org (Postfix) with ESMTP id AC93B2C74 for ; Tue, 28 Mar 2017 13:36:54 +0200 (CEST) Received: from CY4PR03CA0009.namprd03.prod.outlook.com (10.168.162.19) by SN1PR0301MB1968.namprd03.prod.outlook.com (10.163.224.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Tue, 28 Mar 2017 11:36:52 +0000 Received: from BN1AFFO11FD043.protection.gbl (2a01:111:f400:7c10::181) by CY4PR03CA0009.outlook.office365.com (2603:10b6:903:33::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Tue, 28 Mar 2017 11:36:52 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD043.mail.protection.outlook.com (10.58.52.190) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Tue, 28 Mar 2017 11:36:51 +0000 Received: from [10.232.14.39] ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2SBameh014771; Tue, 28 Mar 2017 04:36:49 -0700 To: Olivier Matz References: <1490004190-16892-1-git-send-email-shreyansh.jain@nxp.com> <20170324172227.5bdfac8c@platinum> CC: , , From: Shreyansh Jain Message-ID: Date: Tue, 28 Mar 2017 17:12:47 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170324172227.5bdfac8c@platinum> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131351746119285200; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39850400002)(39840400002)(39860400002)(39450400003)(39380400002)(39400400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(377454003)(24454002)(199003)(9170700003)(104016004)(356003)(305945005)(50466002)(5660300001)(65826007)(65956001)(65806001)(106466001)(105606002)(64126003)(31686004)(76176999)(86362001)(31696002)(33646002)(50986999)(36756003)(47776003)(54356999)(6246003)(81156014)(8936002)(230700001)(8676002)(81166006)(229853002)(38730400002)(110136004)(2906002)(6916009)(2950100002)(53936002)(97736004)(23746002)(189998001)(83506001)(4001350100001)(54906002)(4326008)(8656002)(85426001)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1968; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD043; 1:nxuXeWk/VoUr6yLUFCiiBgnEe2suXXduNHcOmkeIyzPJI16mVh8raaVY33ai5uaONdAKVCEUsqyU+CvBH9lxKO/HoKhiikhd6PFEwvZL654KJXWZxmickAsHfam1yqoiOLbEw/eOvXaHB4hjVO0uXXh4/U5rPVckHk6dqaHQ0lvR4NoGUWmU3OnWJYkb6+/yiU6t9AeDAgwcq+uxTznkY6R9xkGnRxn0Hfn1bSpoZBHLeg7CzI5DUkXKhPu95hroDvE7S3Xfz2iQXkZKWD3Fpgx6Of/z7suo+2p/fmvkQ4UW+BSaOZfSZVv24gsCIeyuCCftBq1PBihIoiNCJFL4/0OJ4edRaGtPtJweBm8DLmKTNfgOxKfM9JffhnRsaRQrbFwbZaI5kntoxhhWXS35nxeH4EXyoqi9+167iUXEVZ19tmMha03CeOhqIV53mbn9TcKKrU57oxEY5zVzrv6SUsf/yW5EXul7Qe7a9P73n0epVckJ9sD4SRQurE8KSRBG9mfBWc5tz9Q/7mSgHLcLjAf2htNZjKX8EZnJCiIlMbR8SkYGXHeJmmyFlZXxf6EC X-MS-Office365-Filtering-Correlation-Id: 31fd973a-9764-4aa9-cd67-08d475ceba72 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255075)(201703131430060)(201703131517066); SRVR:SN1PR0301MB1968; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1968; 3:ZcAsiuXSNOi9aC1w8+0l4ccw9Ct+RNBvFs91Hgr5V0SqpSWsIvTJYkAQubfPn2gcQbTAbzv3nKd6+IFyuyMScqJMhxJxmgDbBDjAn1pld8sYgn6gbWIFogFpbaR1zw+dE6GT1xxCzpd4oDfgrc3kY344FgYqEocjK6JsMbuXeu6f4izeo8Cm5xGpQr4NouOZa+IXef6+14D0HD0HWbnpdtJ7VW/de/OBinyNY7ovR00YTmkYHG1FvMxGy1kcrlWvahAG7wwCZXJVO/waZHfd3UP3TXuUWTZYBP00csz8YrOq8AakdTvhHiDjsTwolxqLj5LEGS6vME1lKvM2jveRL4X2c4MLq2Of6HNcuzmaXTVWE0x6EJ1dChbayrVAOEK/RXx2E7H0hrwUIa3hQg6KAB9lRHmJq0d2LKpAMGypNjDC7FzwyLbqIWdVPHBelLv1sLcWms/pailH5x1leUVb5A== X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1968; 25:kOuvaFNtOGoN4gkWwaOvrvA6+1Vn7rZplhxtI9sDsYhA7fETB1UqaFM2R+uLpEJ5rWtOz3c0Z+gsR4D5vloTsQQ34KGNhTucaE6MY7/o7GHMVzwcjFupj5OnqOIQ0ZsZLxhz+iG90OR+XycEHgH8lYokQbARMtaWIyYdMT0LYPnTPZGOLo8AO90LaKGs9aPPOH0YHcSB52J4+w3LruDykffCUB0pXKP0CKkjboJutRbgmalpviG8OHMONbs2pKJ84U/iN+oZPmdazsEwA5CyEzhRypfp44nd3fGHL0ReKVHgRdXpRjBSCUQxF545hq3+pqwLlf9EA4R3faN4QZfbHkho2i/wX3g4QPjh6duYqwELEudzMVcnA0q00rVP4d7Sonq6gYw8noj/k+8a3El2KELA2AaMg3tOnHV7E9P+536oRO+iWA4vytZ9qVA84cutGA4hWEfBo9EyCkybFqiMqQ==; 31:AMk7moqRucntJ3Dr168FtcyeJ5wpSwkz+AuQ3fS2LRLn4OlgfBkAJNM55MXyu8ux2R98usWwEaBNgqXJUp+k2znjcK0L7usNSg8vgqIHxFfELrtcEWRCRjgMtbb5f49VuhH023XVR2RmAuiYyAj+OR4erDlGouxVtOQHdqklieOkgXjkN3PW21UFF/811tSegmHVMsEa+FdUmuPvHxqzRM2CUoFase3v+qBqDXld9zmnPCaFgpreeJs8hxVloP+5WvlE4YcAQKXKFglI54KprF4Ey3szMrKG/FjPOzCFl4w= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095119)(601004)(2401047)(13015025)(13024025)(13017025)(5005006)(8121501046)(13018025)(13023025)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(201703131430059)(201703131433059)(201703131448059)(201703161259059)(201703151042059)(20161123563025)(20161123556025)(20161123561025)(20161123559025); SRVR:SN1PR0301MB1968; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB1968; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1968; 4:E4PK6lutTu2ysKFZw8B4JygaVoRiTHxiu7bJuOQh2Jpv+/DS6CVs1ReRD2VvfhbMIq4MDay9LgOUZvw1GxcFXQKwCJRKloFuMJAW+Tz7AHs6weHecV7cMpDf69DVHI6E9YZkSPH/hUKc5kIxLx/X9B/UtfitSvhArWFhwqUgBhnjb1tGHZKPqOeUwq8zkpO7KG4P9WFc4jXQ4zE/x1m771+HUiGCah51juI+1wru4xjTS4bql86nGVsF86qhT26nn9J9b3rRw9RJ70ZlNMikS3P8l7JEIUJyg50DA6QW6EoC7tN++bCIkb3bSg+XJhbrZOdeCqmiFay8GEU2JkdisuL2lchcKFG8iR2bjr91O47/nG1sO8Gww8MUNXPXqjv+425kMeeDkypJFEwWHfL8HJqruL4D828Z+SQ/bMx+PleQikorO02DYD78jp91CZjLL7FcJy4uwdInF2DtM7YOTk+eNp6OMtwnTGeuyVXc++Ry8JTwmnjRjhlxzeiRh05Dffc5rzPduf0ZfWRLeOS0uVOn7z7tL95oF6o1ExVvtsIFaQoL7x00p27QdOBL44rxoMTTE3Lb71740uer+AWQ83PdQAjLL7gPm0W3/5YAYIRbi6lZdG3pB+b1GPacX019VgCOX/7nwuEtjA9aX4/BVznzWnZlPH4ERZOjacbccu+xYgIDwN4/K6SpfmLFbTte7TvYBvXeoC5Abt9RBeP5KVdB3qsFfpLcGVGWS90Q+OZlkdxRTYR+H//ZExTFk3ZUTkB7WfWn4YaSHkj5SSrSwdhlScl9YigFPhq6fNpSeb5aNYtTdZ3c95tbPT8K291dkbgGr7CDiYAY5xTLWpJBCcfyGaxBKrOWDEN9wND0HOe0jmmAN8dlgeNjCzYm3QZgiN7SJRvEkk7O+HJFPQLlIuvHImd2gtXdVuE5i/r9kTI= X-Forefront-PRVS: 0260457E99 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; SN1PR0301MB1968; 23:bvY9XUv51jZCNDvGaleoie48p8jAEVwLnJd?= =?Windows-1252?Q?M52w2FfyCfag2ZY2RM9X/77Z7XxiYm1gBLvUzQ70bOuc+gWBFutLkfCq?= =?Windows-1252?Q?pTH/f2c8PeycBFEaZLhkWCOzUCVOEAJsH1c9Gvwv+qARV2P4qocWB3CH?= =?Windows-1252?Q?zWI/EcQ9WBFZlhxq6pMNEYMAmsCvtv68L2kyQNUgyXk9tx3n2c1+xpqc?= =?Windows-1252?Q?oX41EebejMF3DM4JTfaXJnZGaeO9XZ5p8kgB6cqeTRjVZ+O0nu7Ry12P?= =?Windows-1252?Q?U0pMtX5x/gtoQKrcVamY11FhEfMrNVG2wOxLZ6yFUacDYhamesAMt70P?= =?Windows-1252?Q?DrqCOA/JPe1Ig4YKnLXiSotOkJJkFQ/NM2AauIeN/03PP0d0aKqxRJM9?= =?Windows-1252?Q?PNwqJFhSyIz3LtnuW2UoAp+W9V27LEACb8HXuWhaOCc9hWBAowtXeU0k?= =?Windows-1252?Q?BrXCwlMA/MwJP/Vply5YUXtI9FciUoCTE7pyjUy+totI0DHrBXYRXi8+?= =?Windows-1252?Q?6wI9p3W6qIUHrCgYiQtdd6e/v1CMZsqlcEaiPkPA9KE1mvhTNLEpzvpV?= =?Windows-1252?Q?9GK3bUu+VEjVHpvYMa5NsmVpviEDjWkqSvYBtbiTt5WyN24XsFwN/39N?= =?Windows-1252?Q?Wo3uywzfQ/+mMZCS3rYUWya7jEzy6X+Pxu3zg/dawiES01MOjJd/gE7I?= =?Windows-1252?Q?ByK9ciww8YaEDpURtQn2C+pA6bB7NDqAxb2n35qA0JyjQrY7E2+iWka7?= =?Windows-1252?Q?RzLIo4oHA06QmEeRGpti12vef6E5l3fziYfrxEjRkv6bPvwK1vq0L2J7?= =?Windows-1252?Q?QXZH1S7h01KwLvsVHht4GJ9BxNsbeC5nvlBjo/aFH3cgHs6c24S2wSx/?= =?Windows-1252?Q?pyWOeOmKGdX0KsIVRPUl/B3MVEWs3XY7bk52VpyyUvELS9TU5hReB2LD?= =?Windows-1252?Q?AiUuyypt5r5Cw3Jd4HZvBNLlSuCftcD/a8m7aP9I+IwbDm781jgKaWk5?= =?Windows-1252?Q?f5zGSkq0sXcyFQ+vlj4znKozqfGFIkjqQ3KZUrkcbUwef8MpReKVKuL9?= =?Windows-1252?Q?GusiC8QDWjvqx/Sp8iWXmK+Eo8k7vKKnKH+Xd7N1ed4Hdh2SEeUA6HCJ?= =?Windows-1252?Q?nkPwlnM1OCNkRkebM6JY5WgnlEDh8aijcHuT++etm99XjV+3RqYUfinY?= =?Windows-1252?Q?U7jQbL+53ICg282m66LnISxP4lwqpVjIjAFLju0EM8S5K5Qqs7nzzThV?= =?Windows-1252?Q?MD0HlAj5t/Od0YqhuRZtgt5BcsIJhAWXEEi8zekxGmzvlNbdVu0AAQ0V?= =?Windows-1252?Q?GfDg2bI4F5NhlgYp+FE1dk20SS1INZcLPCoFGIspIlQeuZMIZZWJaQXl?= =?Windows-1252?Q?ord3Zgs3PEotbaztau9ZLCz6PLOI+YsQ0X0jcVGUDtqGT5+acOcegMtX?= =?Windows-1252?Q?cRrIVB7hG5FzrxHP+E358s1M23EPjrA8XQVgnbVAuDVRyX4JUjmNTKBz?= =?Windows-1252?Q?qjkozuDj9Be12W218Nx4x5xaWPyOkuNN5aPG+fJiVz2BCwIPoMc8+SQX?= =?Windows-1252?Q?X1JwHdzHWC5mfiOM/p1aHvSMa3zSasZFjEIc0XSkkjWjN5e1tfh2ES5l?= =?Windows-1252?Q?biA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1968; 6:9FavRplRiiIWeN5hrBfk7VMjroR8yA92/4yWilV4S62f89VGKHcfCfU5gi89snoiUqgnzK6fokVPJLXChfAsOq0eptE2e+byZz9YSeJ5Byy01L0QAhGaQL883AGmKSH1L5leKPIAoI4zSL66jjfpBt+W+GsDZ8qCICEu5tCCVYlf3zfp9lcyShnhqg5D73EeXkacBWt6fX9sj2+PPctB2C2SK+h8i87oeFYsghQw2zxtwi+CsGqe4q+v4+KSsb6YcL8C2J5MIR/1oHvk2xrPyDdl0e8ssbxf5MvIEUDq79U5PbbpyrL9kXWtYlk4ceRVKV3uckHhsfTt8SGcUcxSA3N5zIBQD4GgPri2iVQe36/jeLs+t0V2dMak5xys0JhWf+i+g2byPmvBXncZ29SP+A==; 5:PElhVk41sE1SScm2sUDJ/mp90J6WxoFUKIKVzRGgdQTxIlfAtTaKvTreiQm9DPXk2Tbt6xM9oWAuk6Rs6E3r34gWz+Zjn+r+B7FvZLMNnyBxNz8JVvZ8KBjRgbaDidg9s0LfaHJ4RkY00MHqj6PVNa2IPV7Dfd6eZMDOBr4EayTpAVzkpEfv94YKjWCZsmaV; 24:ikTEO3ospIqvKNLWf8Nm7hedeeNOSjSMhykT0gQ2HCCdpphVgvZwwAzJoU8CKrFI9pXqx4/1Uofonmg3hTjnp9L2K6H5Nxq55bska3PI0Kc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1968; 7:DuFoc7DX9bs3regu/3ncBv7lcKUAlHaN/71pdbK+wk2nV7aLjULXbv1iH86LyFSH+MCjhUetVmGBhMu77jrYpE6QfgMgTkmSHeT9ikMF87f95M0okHdxRNuh+rZBR35ccN0RD2SrfI7FCgQQPdeFK8w2AG32oU/epoV+pigD6wctXIGRewhgIt/Cj1E4yCiHhOhKMBTYy+VA+USr6RsYvrAINRbsxm5+go5gQX5R1yrtdHjLvdOnk2zSs+EnwqGQIuP9Vz36F/AmK2GNy0c++nONZjyVhLhgNfX+IDCoBeW7sDq1EkmE63qGvEZWM2bmKGyFYDf245PJQv9ttiZxZA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2017 11:36:51.6165 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1968 Subject: Re: [dpdk-dev] [PATCH 1/2] drivers/mempool: add stack mempool handler as driver 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: , X-List-Received-Date: Tue, 28 Mar 2017 11:36:55 -0000 Hello Olivier, On Friday 24 March 2017 09:52 PM, Olivier Matz wrote: [..] > I tried to pass the mempool autotest, and it issues a segfault. > I think the libraries are missing in rte.app.mk, so no handler is > registered. I have been trying to simulate the segfault that you are referring to above. But, I think it should not be the case. If a mempool handler is not registered (as librte_mempool_ring was not included in mk/rte.app.mk, so, no "ring_mp_mc"), the caller would get error. The mempool_autotest is reporting: --->8-- RTE>>mempool_autotest cannot allocate mp_nocache mempool Test Failed --->8-- > > Adding the following code in lib/librte_mempool/rte_mempool_ops.c > fixes the crash. > > ops = rte_mempool_get_ops(mp->ops_index); > + if (ops == NULL || ops->alloc == NULL) > + return -ENOTSUP; > return ops->alloc(mp); Can you tell me for which case did your code reach rte_mempool_ops_alloc() and segfault? In my case, librte_mempool_ring and librte_mempool_stack are not added to mk/rte.app.mk and it is static compilation. > > Now that drivers are not linked to the mempool library, it can > happen that there is no handler. Could you please add this patch in your > patchset? Yes, once I can get this issue reproduced. Because I think there is one more place similar code should go (rte_mempool_ops_getcount). As per what I can see, this would only happen if rte_mempool_xmem_create is called and then directly alloc is called. That is not happening for mempool_autotest. - Shreyansh