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 701E7A0C45; Wed, 16 Jun 2021 05:09:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1EFE40140; Wed, 16 Jun 2021 05:09:47 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id DDD1D4003C for ; Wed, 16 Jun 2021 05:09:46 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id BB01FA0C47; Wed, 16 Jun 2021 05:09:46 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 16 Jun 2021 03:09:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev 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 735] [asan] driver bonding 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=3D735 Bug ID: 735 Summary: [asan] driver bonding has memory leak Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: zhihongx.peng@intel.com Target Milestone: --- Created attachment 159 --> https://bugs.dpdk.org/attachment.cgi?id=3D159&action=3Dedit asan patch Environment dpdk: 21.05 test patch: 0007-porting-AddressSanitizer-feature-to-DPDK.patch 0001-Solve-gcc-compile-dpdk-asan.patch 0001-Solve-known-bugs.patch Test Setup: 1. git apply 0007-porting-AddressSanitizer-feature-to-DPDK.patch 2. git apply 0001-Solve-gcc-compile-dpdk-asan.patch 3. git apply 0001-Solve-known-bugs.patch 4. CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dbuildtype= =3Ddebug -Db_lundef=3Dfalse -Db_sanitize=3Daddress --default-library=3Dstatic x86_64-native-linuxapp-gc 5. ninja -C x86_64-native-linuxapp-gcc -j 110 6. ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,37,38,39,40,41,42,43,44,45,46,47,= 48,49,50,51 ,52,53 -n 4 -a 0000:18:00.0 -a 0000:18:00.1 --file-prefix=3Ddpdk_12870_20210616013323 --vdev 'net_bonding0,slave=3D0000:18:00.0,slave=3D0000:18:00.1,mode=3D4,agg_mode= =3Dbandwidth' =E2=80=93 -i 7. expect result Start up normally actual result There are some errors here: =3D=3D311201=3D=3DERROR: LeakSanitizer: detected memory leaks Direct leak of 528 byte(s) in 1 object(s) allocated from: #0 0x7f2f98331ba8 in __interceptor_malloc (/lib64/libasan.so.5+0xefba8) #1 0x10d7c6a in rte_kvargs_parse ../lib/kvargs/rte_kvargs.c:232 #2 0x190d682 in bond_probe ../drivers/net/bonding/rte_eth_bond_pmd.c:3361 #3 0x1184b20 in vdev_probe_all_drivers ../drivers/bus/vdev/vdev.c:211 #4 0x118693a in vdev_probe ../drivers/bus/vdev/vdev.c:558 #5 0x103ec0e in rte_bus_probe ../lib/eal/common/eal_common_bus.c:79 #6 0x10a0dd8 in rte_eal_init ../lib/eal/linux/eal.c:1286 #7 0x6e9dce in main ../app/test-pmd/testpmd.c:3752 #8 0x7f2f96c64492 in __libc_start_main (/lib64/libc.so.6+0x23492) Indirect leak of 64 byte(s) in 1 object(s) allocated from: #0 0x7f2f9827dda0 in strdup (/lib64/libasan.so.5+0x3bda0) #1 0x10d74d0 in rte_kvargs_tokenize ../lib/kvargs/rte_kvargs.c:35 #2 0x10d7ca5 in rte_kvargs_parse ../lib/kvargs/rte_kvargs.c:237 #3 0x190d682 in bond_probe ../drivers/net/bonding/rte_eth_bond_pmd.c:3361 #4 0x1184b20 in vdev_probe_all_drivers ../drivers/bus/vdev/vdev.c:211 #5 0x118693a in vdev_probe ../drivers/bus/vdev/vdev.c:558 #6 0x103ec0e in rte_bus_probe ../lib/eal/common/eal_common_bus.c:79 #7 0x10a0dd8 in rte_eal_init ../lib/eal/linux/eal.c:1286 #8 0x6e9dce in main ../app/test-pmd/testpmd.c:3752 #9 0x7f2f96c64492 in __libc_start_main (/lib64/libc.so.6+0x23492) --=20 You are receiving this mail because: You are the assignee for the bug.=