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 ED147A0547; Fri, 28 May 2021 11:21:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D47E740150; Fri, 28 May 2021 11:21:37 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id D551040040 for ; Fri, 28 May 2021 11:21:36 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id C36B2A0548; Fri, 28 May 2021 11:21:36 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 28 May 2021 09:21:36 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhihongx.peng@intel.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 attachments.created 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 723] pci_scan_one function has memory leak 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=3D723 Bug ID: 723 Summary: pci_scan_one function has memory leak Product: DPDK Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: zhihongx.peng@intel.com Target Milestone: --- Created attachment 158 --> https://bugs.dpdk.org/attachment.cgi?id=3D158&action=3Dedit asan meson patch Environment failed on: CVL 25G*4 dpdk: 21.05 clang: 9.0.0 test patch: asan meson patch pmdinfogen-allow-padding-after-NUL-terminator.= diff Test Setup: 1. git apply pmdinfogen-allow-padding-after-NUL-terminator.dif 2. CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dbuildtype=3Ddebug -Db_lundef=3Dfalse -Db_sanitize=3Daddress x86_64-native-linuxapp-clang 3. ninja -C x86_64-native-linuxapp-clang -j 110 4. ./x86_64-native-linuxapp-clang/app/dpdk-testpmd -c 0x6 -n 4 =E2=80=93 -i 5. testpmd> quit 6. expect result quit normally actual result There are some errors here: Direct leak of 12379752 byte(s) in 231 object(s) allocated from: EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #0 0x58801d in malloc (/home/pzh/main_dpdk/x86_64-native-linuxapp-clang/app/dpdk-testpmd+0x58801d) EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #1 0x1688d9a in pci_scan_one /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../drivers/bus/pci/linux/p= ci.c:225:8 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #2 0x16883a3 in rte_pci_scan /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../drivers/bus/pci/linux/p= ci.c:487:7 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #3 0x14ce0d6 in rte_bus_scan /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../lib/eal/common/eal_comm= on_bus.c:50:9 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #4 0x1552c7a in rte_eal_init /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../lib/eal/linux/eal.c:107= 0:6 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #5 0x80f964 in main /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../app/test-pmd/testpmd.c:= 3752:9 --=20 You are receiving this mail because: You are the assignee for the bug.=