DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 723] pci_scan_one function has memory leak
@ 2021-05-28  9:21 bugzilla
  2021-07-07  5:36 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-05-28  9:21 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=723

            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=158&action=edit
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=clang meson --werror -Denable_kmods=True -Dbuildtype=debug
-Db_lundef=false -Db_sanitize=address 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 – -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/pci.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/pci.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_common_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:1070: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

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-dev] [Bug 723] pci_scan_one function has memory leak
  2021-05-28  9:21 [dpdk-dev] [Bug 723] pci_scan_one function has memory leak bugzilla
@ 2021-07-07  5:36 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2021-07-07  5:36 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=723

Peng,Zhihong (zhihongx.peng@intel.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Peng,Zhihong (zhihongx.peng@intel.com) ---
Test pass.
Commit: 7c83a1e3c83e601f449f05e2e36e1df50e8503aa

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-07  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28  9:21 [dpdk-dev] [Bug 723] pci_scan_one function has memory leak bugzilla
2021-07-07  5:36 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).