<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto">Hello David,</div>
<div dir="auto">What's the dpdk version used in that OS?</div>
<div dir="auto">Have you tried manually installing latest dpdk and check?</div>
<div dir="auto">We recently fixed some mem issue, raised by valgrind.</div>
<div><br>
</div>
<div id="ms-outlook-mobile-signature" dir="auto">
<div>Regards,</div>
<div dir="auto">Asaf Penso</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> bugzilla@dpdk.org <bugzilla@dpdk.org><br>
<b>Sent:</b> Tuesday, June 20, 2023 2:09:48 PM<br>
<b>To:</b> dev@dpdk.org <dev@dpdk.org><br>
<b>Subject:</b> [Bug 1255] [asan] net/mlx5: memory leak on port cleanup</font>
<div> </div>
</div>
<base href="https://bugs.dpdk.org/">
<div>
<table border="1" cellspacing="0" cellpadding="8" class="x_bz_new_table">
<tbody>
<tr>
<th>Bug ID</th>
<td><a class="x_bz_bug_link x_bz_status_UNCONFIRMED" title="UNCONFIRMED - [asan] net/mlx5: memory leak on port cleanup" href="https://bugs.dpdk.org/show_bug.cgi?id=1255">1255</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[asan] net/mlx5: memory leak on port cleanup </td>
</tr>
<tr>
<th>Product</th>
<td>DPDK </td>
</tr>
<tr>
<th>Version</th>
<td>unspecified </td>
</tr>
<tr>
<th>Hardware</th>
<td>All </td>
</tr>
<tr>
<th>OS</th>
<td>All </td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED </td>
</tr>
<tr>
<th>Severity</th>
<td>normal </td>
</tr>
<tr>
<th>Priority</th>
<td>Normal </td>
</tr>
<tr>
<th>Component</th>
<td>other </td>
</tr>
<tr>
<th>Assignee</th>
<td>dev@dpdk.org </td>
</tr>
<tr>
<th>Reporter</th>
<td>david.marchand@redhat.com </td>
</tr>
<tr>
<th>Target Milestone</th>
<td>--- </td>
</tr>
</tbody>
</table>
<p></p>
<div class="x_bz_comment_block">
<pre class="x_bz_comment_text">This is something I caught on RHEL 9.2 but it might be generic:

# rm -rf build; meson setup build
-Denable_drivers=bus/auxiliary,common/mlx5,net/mlx5 -Ddisable_libs=*
-Denable_apps=test-pmd -Dbuildtype=debug -Ddeveloper_mode=disabled
-Db_sanitize=address -Dtests=false -Dexamples=
...
# ninja -C build
...
# lspci | grep Ethernet.*Mellanox
98:00.0 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6
Dx]
98:00.1 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6
Dx]
98:00.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen
Virtual Function
98:01.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen
Virtual Function

# echo quit | ASAN_OPTIONS="use_sigaltstack=0" ./build/app/dpdk-testpmd -a
0000:98:00.0 -- -ia

...

=================================================================
==135295==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 80 byte(s) in 1 object(s) allocated from:
    #0 0x7f14054b4bd7 in calloc (/lib64/libasan.so.6+0xb4bd7)
    #1 0x7f1405e5ec6c in dr_action_create_generic
../providers/mlx5/dr_action.c:1009
    #2 0x294135e in mlx5_flow_os_create_flow_action_dest_devx_tir
../drivers/net/mlx5/linux/mlx5_flow_os.h:409
    #3 0x294b3e7 in mlx5_devx_hrxq_new ../drivers/net/mlx5/mlx5_devx.c:924
    #4 0x294cb13 in mlx5_devx_drop_action_create
../drivers/net/mlx5/mlx5_devx.c:1169
    #5 0xec0f50 in mlx5_drop_action_create ../drivers/net/mlx5/mlx5_rxq.c:3101
    #6 0x2c62d99 in mlx5_dev_spawn ../drivers/net/mlx5/linux/mlx5_os.c:1556
    #7 0x2c68fb2 in mlx5_os_pci_probe_pf
../drivers/net/mlx5/linux/mlx5_os.c:2348
    #8 0x2c6a4b1 in mlx5_os_pci_probe ../drivers/net/mlx5/linux/mlx5_os.c:2497
    #9 0x2c6b08e in mlx5_os_net_probe ../drivers/net/mlx5/linux/mlx5_os.c:2578
    #10 0xc6afff in drivers_probe ../drivers/common/mlx5/mlx5_common.c:937
    #11 0xc6b6a6 in mlx5_common_dev_probe
../drivers/common/mlx5/mlx5_common.c:1027
    #12 0xc8ad0a in mlx5_common_pci_probe
../drivers/common/mlx5/mlx5_common_pci.c:168
    #13 0xc1e3fa in rte_pci_probe_one_driver
../drivers/bus/pci/pci_common.c:312
    #14 0xc1eadb in pci_probe_all_drivers ../drivers/bus/pci/pci_common.c:396
    #15 0xc1eb82 in pci_probe ../drivers/bus/pci/pci_common.c:423
    #16 0xb72d22 in rte_bus_probe ../lib/eal/common/eal_common_bus.c:78
    #17 0xbe317e in rte_eal_init ../lib/eal/linux/eal.c:1300
    #18 0x5e80a0 in main ../app/test-pmd/testpmd.c:4515
    #19 0x7f140503feaf in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58

SUMMARY: AddressSanitizer: 80 byte(s) leaked in 1 allocation(s).
          </pre>
</div>
<p></p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li></ul>
<div itemscope="" itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope="" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1255">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</div>
</body>
</html>