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 4300FA0C4C; Mon, 9 Aug 2021 15:23:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 098934068A; Mon, 9 Aug 2021 15:23:59 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 869514003C for ; Mon, 9 Aug 2021 15:23:57 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 7AFB1A0C52; Mon, 9 Aug 2021 15:23:57 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 09 Aug 2021 13:23:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brydon_gibson@dell.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 785] rte_pktmbuf_alloc fails with a segmentation fault but rte_pktmbuf_pool_create returns valid data 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D785 Bug ID: 785 Summary: rte_pktmbuf_alloc fails with a segmentation fault but rte_pktmbuf_pool_create returns valid data Product: DPDK Version: 20.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: brydon_gibson@dell.com Target Milestone: --- (backtrace below) mbuf_pool is valid, and there is sufficient memory onboar= d, yet __mempool_generic_get (from rte_pktmbuf_alloc) fails because cache poin= ts to invalid memory. There doesn't seem to be any way of detecting that somet= hing is wrong because pool_create returns perfectly good data. Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0000000000402735 in __mempool_generic_get (cache=3D0x2f6e69622f77735f, n= =3D1, obj_table=3D0x7fffffffe0d8, mp=3D0x7fffffffe6db) at /usr/local/include/rte_mempool.h:1417 1417 if (unlikely(cache =3D=3D NULL || n >=3D cache->size)) (gdb) bt full #0 0x0000000000402735 in __mempool_generic_get (cache=3D0x2f6e69622f77735f= , n=3D1, obj_table=3D0x7fffffffe0d8, mp=3D0x7fffffffe6db) at /usr/local/include/rte_mempool.h:1417 ret =3D 0 len =3D 4294960256 index =3D 32767 cache_objs =3D 0x0 #1 rte_mempool_generic_get (cache=3D0x2f6e69622f77735f, n=3D1, obj_table=3D0x7fffffffe0d8, mp=3D0x7fffffffe6db) at /usr/local/include/rte_mempool.h:1491 ret =3D 0 #2 rte_mempool_get_bulk (n=3D1, obj_table=3D0x7fffffffe0d8, mp=3D0x7ffffff= fe6db) at /usr/local/include/rte_mempool.h:1526 cache =3D 0x2f6e69622f77735f #3 rte_mempool_get (obj_p=3D0x7fffffffe0d8, mp=3D0x7fffffffe6db) at /usr/local/include/rte_mempool.h:1552 No locals. #4 rte_mbuf_raw_alloc (mp=3D0x7fffffffe6db) at /usr/local/include/rte_mbuf= .h:590 m =3D 0x1656380 #5 0x0000000000402cd2 in rte_pktmbuf_alloc (mp=3D0x7fffffffe6db) at /usr/local/include/rte_mbuf.h:895 m =3D 0x7ffff70e5d4d <__GI_rewind+109> #6 0x000000000040798e in getAndMbufData (argstring=3D0x7a9935 "-f", einf=3D0x7fffffffe480) at cmdParser.c:73 fd =3D 0x1656380 fsize =3D 0 readSize =3D 5 data =3D 0x1651f20 "" argv =3D {0x4095f0 "progname", 0x7a9935 "-f", 0x7a9938 "test.txt", = 0x0} argc =3D 3 opt =3D -1 myBuf =3D 1 total_mbufs =3D 0 bufToUse =3D 0x7fffffffe70a --=20 You are receiving this mail because: You are the assignee for the bug.=