https://bugs.dpdk.org/show_bug.cgi?id=738
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.p...@intel.com Target Milestone: --- Created attachment 161 --> https://bugs.dpdk.org/attachment.cgi?id=161&action=edit 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=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=ethtool -Dbuildtype=debug -Db_lundef=false -Db_sanitize=address --default-library=static 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=dpdk_32767_20210616191235 5. EthApp> quit 6. expect result no error actual result There are some errors here: 583 [[1m[[31m==598341==ERROR: 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 -- You are receiving this mail because: You are the assignee for the bug.