From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 768CDC48BE5 for ; Wed, 16 Jun 2021 05:41:16 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id E59196128C for ; Wed, 16 Jun 2021 05:41:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E59196128C Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=dpdk.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E6EA40140; Wed, 16 Jun 2021 07:41:15 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 630664003C for ; Wed, 16 Jun 2021 07:41:14 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 44159A0C49; Wed, 16 Jun 2021 07:41:14 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 16 Jun 2021 05:41:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: examples 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 738] dpdk-ethtool has emory 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=3D738 Bug ID: 738 Summary: dpdk-ethtool has emory leak Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: examples Assignee: dev@dpdk.org Reporter: zhihongx.peng@intel.com Target Milestone: --- Created attachment 161 --> https://bugs.dpdk.org/attachment.cgi?id=3D161&action=3Dedit asan patch Environment dpdk: 21.05 test patch: 0001-asan-and-asan-gcc-patch.patch Test Setup: 1. git apply 0001-asan-and-asan-gcc-patch.patch 2. CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples= =3Dethtool -Dbuildtype=3Ddebug -Db_lundef=3Dfalse -Db_sanitize=3Daddress --default-library=3Dstatic x86_64-native-linuxapp-gcc 3. ninja -C x86_64-native-linuxapp-gcc -j 110 4. ./x86_64-native-linuxapp-gcc/examples/dpdk-ethtool -l 16,15,14,13 -n 4 --file-prefix=3Ddpdk_32767_20210616191235 5. EthApp> quit 6. expect result no error actual result There are some errors here: 583 [[1m[[31m=3D=3D598341=3D=3DERROR: LeakSanitizer: detected memory leaks^M 584 [[1m[[0m^M 585 [[1m[[34mDirect leak of 10024 byte(s) in 1 object(s) allocated from:^M 586 [[1m[[0m #0 0x7f3f21946ba8 in __interceptor_malloc (/lib64/libasan.so.5+0xefba8)^M 587 #1 0xd3cb05 in cmdline_new ../lib/cmdline/cmdline.c:79^M 588 #2 0xd49616 in cmdline_stdin_new ../lib/cmdline/cmdline_socket.c:41^M 589 #3 0x4e3ace in ethapp_main ../examples/ethtool/ethtool-app/ethapp.c:907= ^M 590 #4 0x4e64fd in main ../examples/ethtool/ethtool-app/main.c:294^M 591 #5 0x7f3f20279492 in __libc_start_main (/lib64/libc.so.6+0x23492)^M --=20 You are receiving this mail because: You are the assignee for the bug.=