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 DA201A0547; Fri, 28 May 2021 11:18:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FF4A40143; Fri, 28 May 2021 11:18:26 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 6737A40040 for ; Fri, 28 May 2021 11:18:25 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 41D99A0548; Fri, 28 May 2021 11:18:25 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 28 May 2021 09:18:24 +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 722] eal_save_args 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=3D722 Bug ID: 722 Summary: eal_save_args 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 157 --> https://bugs.dpdk.org/attachment.cgi?id=3D157&action=3Dedit asan meson patch Environment 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: Detected memory leaks: Direct leak of 3 byte(s) in 1 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 EAL: recvmsg failed, Bad file descriptor #0 0x573d94 in strdup (/home/pzh/main_dpdk/x86_64-native-linuxapp-clang/app/dpdk-testpmd+0x573d94) EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #1 0x14f5ca5 in eal_save_args /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../lib/eal/common/eal_comm= on_options.c:232:17 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #2 0x155266f in rte_eal_init /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../lib/eal/linux/eal.c:100= 2:2 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #3 0x80f964 in main /home/pzh/main_dpdk/x86_64-native-linuxapp-clang/../app/test-pmd/testpmd.c:= 3752:9 EAL: recvmsg failed, Bad file descriptor EAL: recvmsg failed, Bad file descriptor #4 0x7fe863d22b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310 --=20 You are receiving this mail because: You are the assignee for the bug.=