From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/testpmd Bug 1852] [asan] detected memory leaks on quit
Date: Thu, 18 Dec 2025 13:27:11 +0000 [thread overview]
Message-ID: <bug-1852-3@http.bugs.dpdk.org/> (raw)
http://bugs.dpdk.org/show_bug.cgi?id=1852
Bug ID: 1852
Summary: [asan] detected memory leaks on quit
Product: DPDK
Version: 22.11
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: testpmd
Assignee: dev@dpdk.org
Reporter: sbadawi@nvidia.com
Target Milestone: ---
testpmd app running cmd:
install/bin/dpdk-testpmd -n 4 -a 0000:08:00.0,dv_flow_en=2 -a
0000:08:00.1,dv_flow_en=2 --iova-mode="va" -- --mbcache=512 -i --nb-cores=7
--
repro cmds:
testpmd>stop
testpmd>port stop all
testpmd>flow configure 0 queues_number 16 queues_size 256 aging_counters_number
0
testpmd>flow configure 1 queues_number 16 queues_size 256 aging_counters_number
0
testpmd>port start all
testpmd>start
testpmd>flow pattern_template 0 create ingress pattern_template_id 4 relaxed no
template eth / ipv6 proto mask 0xff / end
testpmd>flow actions_template 0 create ingress actions_template_id 4 template
modify_field op set dst_type ipv6_dst dst_offset 0 src_type mac_dst src_offset
31 width 2 / rss / end mask modify_field op set dst_type ipv6_dst dst_level
0xffffffff dst_offset 0xffffffff src_type mac_dst src_offset 0xffffffff
src_level 0xffffffff width 0xffffffff / rss / end
testpmd>flow template_table 0 create table_id 8 group 155 priority 0 ingress
rules_number 64 pattern_template 4 actions_template 4
testpmd>flow template_table 0 destroy table 8
testpmd>flow pattern_template 0 destroy pattern_template 4
testpmd>flow actions_template 0 destroy actions_template 4
testpmd>quit
log on quit:
testpmd> quit
Telling cores to stop...
Waiting for lcores to finish...
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 1 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
Primary: Sending 'stop_req' request to secondary...
Stopping port 0...
Stopping ports...
Done
Stopping port 1...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Port 0 is closed
Done
Shutting down port 1...
Closing ports...
Port 1 is closed
Done
Bye...
=================================================================
==394529==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f4845a0b867 in __interceptor_malloc
../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x564ddf25e3bf in mlx5_malloc (install/bin/dpdk-testpmd+0xa8f3bf)
#2 0x564ddf81587f in mlx5dr_cmd_header_modify_pattern_create
(install/bin/dpdk-testpmd+0x104687f)
#3 0x564ddf8378b8 in mlx5dr_pat_arg_create_modify_header
(install/bin/dpdk-testpmd+0x10688b8)
#4 0x564ddf80a330 in mlx5dr_action_create_modify_header
(install/bin/dpdk-testpmd+0x103b330)
#5 0x564ddf76c99d in __flow_hw_actions_translate
(install/bin/dpdk-testpmd+0xf9d99d)
#6 0x564ddf7746f8 in flow_hw_table_create
(install/bin/dpdk-testpmd+0xfa56f8)
#7 0x564ddf77527b in flow_hw_template_table_create
(install/bin/dpdk-testpmd+0xfa627b)
#8 0x564ddf2c1ee4 in mlx5_flow_table_create
(install/bin/dpdk-testpmd+0xaf2ee4)
#9 0x564ddf161206 in rte_flow_template_table_create
(install/bin/dpdk-testpmd+0x992206)
#10 0x564ddeb5eaf1 in port_flow_template_table_create
(install/bin/dpdk-testpmd+0x38faf1)
#11 0x564ddeb0a170 in cmd_flow_cb (install/bin/dpdk-testpmd+0x33b170)
#12 0x564ddf122737 in __cmdline_parse (install/bin/dpdk-testpmd+0x953737)
#13 0x564ddf11fa73 in cmdline_valid_buffer
(install/bin/dpdk-testpmd+0x950a73)
#14 0x564ddf128795 in rdline_char_in (install/bin/dpdk-testpmd+0x959795)
#15 0x564ddf11fb6d in cmdline_in (install/bin/dpdk-testpmd+0x950b6d)
#16 0x564ddf11ff9f in cmdline_interact (install/bin/dpdk-testpmd+0x950f9f)
#17 0x564ddeb00aee in prompt (install/bin/dpdk-testpmd+0x331aee)
#18 0x564ddeade217 in main (install/bin/dpdk-testpmd+0x30f217)
#19 0x7f48450e1d8f in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x7f4845a0ba37 in __interceptor_calloc
../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x7f48457adf22 (/lib/x86_64-linux-gnu/libmlx5.so.1+0x67f22)
SUMMARY: AddressSanitizer: 64 byte(s) leaked in 2 allocation(s).
OS: Ubuntu 22.04 (x86_64)
Kernel: 5.15.0-25-generic
OFED: MLNX_OFED_LINUX-5.8-7.0.6.1
DPDK: 04536b2
Device: ConnectX-6 DX
FW: 22.35.4554
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2025-12-18 13:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-1852-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.