From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3C6EC39EA for ; Mon, 13 Jun 2016 09:41:55 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP; 13 Jun 2016 00:41:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,465,1459839600"; d="scan'208,217";a="986224181" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 13 Jun 2016 00:41:54 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 13 Jun 2016 00:41:54 -0700 Received: from cdsmsx102.ccr.corp.intel.com (172.17.3.35) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 13 Jun 2016 00:41:53 -0700 Received: from cdsmsx101.ccr.corp.intel.com ([169.254.1.89]) by CDSMSX102.ccr.corp.intel.com ([169.254.2.122]) with mapi id 14.03.0248.002; Mon, 13 Jun 2016 15:41:51 +0800 From: "Ding, HengX" To: "Ding, HengX" , "olivier.matz@6wind.com" CC: "Xu, Qian Q" , "dev@dpdk.org" Thread-Topic: run ip_fragmentation with cores in different socket will cause core dump Thread-Index: AdHFRm6B3S0Id3l8Sgq7Wcjy3jgUYwAAIHmg Date: Mon, 13 Jun 2016 07:41:50 +0000 Message-ID: <6EBE0505FB6FBE47AB60080228528452519690E7@CDSMSX101.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.6.105] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] run ip_fragmentation with cores in different socket will cause core dump X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 07:41:55 -0000 The following command will cause ip_fragmentation app fail: examples/ip_fragmentation/build/ip_fragmentation -c 0x40002 -n 4 -- -p 0x3 = -q 2 while setting core mask to 0x2 or 0x40000 will not cause this issue. error message is shown below: EAL: Not managed by a supported kernel driver, skipped IP_FRAG: Creating direct mempool on socket 0 IP_FRAG: Creating indirect mempool on socket 0 IP_FRAG: Creating LPM table on socket 0 IP_FRAG: Creating LPM6 table on socket 0 IP_FRAG: Creating direct mempool on socket 1 IP_FRAG: Creating indirect mempool on socket 1 IP_FRAG: Creating LPM table on socket 1 IP_FRAG: Creating LPM6 table on socket 1 IP_FRAG: Cannot create LPM table PANIC in main(): Cannot initialize memory structures! 5: [examples/ip_fragmentation/build/ip_fragmentation() [0x42df85]] 4: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3a8a421d65]] 3: [examples/ip_fragmentation/build/ip_fragmentation() [0x42d163]] 2: [examples/ip_fragmentation/build/ip_fragmentation(__rte_panic+0xc9) [0x4= 26c0c]] 1: [examples/ip_fragmentation/build/ip_fragmentation(rte_dump_stack+0x1a) [= 0x4980aa]] Aborted (core dumped) And the bisect result: f82f705b635d31a63446a16bc4526dbebf293c5a is the first bad commit commit f82f705b635d31a63446a16bc4526dbebf293c5a Author: Olivier Matz Date: Wed Apr 6 15:27:58 2016 +0200 lpm: fix allocation of an existing object Change rte_lpm*_create() functions to return NULL and set rte_errno to EEXIST when the object name already exists. This is the behavior described in the API documentation in the header file. These functions were returning a pointer to the existing object in that case, but it is a problem as the caller did not know if the object had to be freed or not. Doing this change also makes the lpm API more consistent with the other APIs (mempool, rings, ...). Fixes: 916e4f4f4e ("memory: fix for multi process support") Signed-off-by: Olivier Matz Acked-by: Pablo de Lara :040000 040000 a7450772f279b8d459c96dd7a7b193d01bb4ecf6 0a41cee86a23d796821= 8183c93a4b60a6bfff1c3 M app :040000 040000 88dd7b9fadc50cbf7824e28195d892635d45581d 72e3179c9835c6bea69= 09a29a56a1c7835540368 M doc :040000 040000 8478c771116ac841eeca65c6b08e263229a96d57 76e2294cca653e36645= 6a73755efbbff687630d2 M lib Thanks Ding Heng