Skip to contentSkip to conversation

meson_tests/driver: core dumped occurred after link_bonding_autotest test

Bug 1301 [email protected] 1 participant 1 message Oct 16, 2023

lore
Share & tools
lore

[email protected]

author Acked-by Morten Brørup
#0 lore raw

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

Bug ID: 1301
Summary: [dpdk-23.11] meson_tests/driver: core dumped occurred
after link_bonding_autotest test
Product: DPDK
Version: 23.11
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: meson
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

[Environment]
DPDK version:
dpdk-23.11:77f913752a55c0262bfda99a1b69ca0bd804c6c7
Other software versions: name/version for QEMU, OVS, etc. Repeat as required.
OS: Ubuntu 22.04.3 LTS/5.15.0-82-generic
Compiler: gcc version 11.4.0
Hardware platform: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz
NIC hardware:
Intel Corporation Ethernet Controller E810-C for SFP [8086:1593] (rev 02) NIC firmware:
driver: ice
version: 5.15.0-82-generic
firmware-version: 4.40 0x8001af8b 1.3444.0

[Test Setup]
1. compile dpdk
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Denable_kmods=False -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc -j 72
2. blind port to vfio-pci
./usertools/dpdk-devbind.py -b vfio-pci 05:00.0 08:00.0
3. start test
DPDK_TEST=link_bonding_autotest MALLOC_PERTURB_=94 /root/dpdk/x86_64-native-linuxapp-gcc/app/dpdk-test -c 0xff -a 0000:05:00.0 -a 0000:08:00.0

[Show the output from the previous commands.]
+ TestCase [62] : test_broadcast_verify_member_link_status_change_behaviour
succeeded
+ TestCase [63] : test_reconfigure_bonding_device succeeded
+ TestCase [64] : test_close_bonding_device succeeded
Invalid port_id=8
EAL: Test assert remove_members_and_stop_bonding_device line 658 failed: Failed to stop bonding port 8
+ ------------------------------------------------------- +
+ Test Suite Summary : Link Bonding Unit Test Suite
+ ------------------------------------------------------- +
+ Tests Total : 65
+ Tests Skipped : 0
+ Tests Executed : 65
+ Tests Unsupported: 0
+ Tests Passed : 65
+ Tests Failed : 0
+ ------------------------------------------------------- +
Test OK
RTE>>Segmentation fault (core dumped)

[Expected Result]
no core dumped.
+ TestCase [62] : test_broadcast_verify_member_link_status_change_behaviour
succeeded
+ TestCase [63] : test_reconfigure_bonding_device succeeded
+ TestCase [64] : test_close_bonding_device succeeded
Invalid port_id=8
EAL: Test assert remove_members_and_stop_bonding_device line 658 failed: Failed to stop bonding port 8
+ ------------------------------------------------------- +
+ Test Suite Summary : Link Bonding Unit Test Suite
+ ------------------------------------------------------- +
+ Tests Total : 65
+ Tests Skipped : 0
+ Tests Executed : 65
+ Tests Unsupported: 0
+ Tests Passed : 65
+ Tests Failed : 0
+ ------------------------------------------------------- +
Test OK
RTE>>

[Regression]
Is this issue a regression: (Y/N)Y

commit 36c46e738120c381cf663c96692454c5aa75e203

Author: David Marchand <[email protected]>
Date:   Wed Sep 27 13:45:15 2023 +0200

ethdev: cleanup shared data with the last port

If no port is allocated and no port owner is still registered, ethdev from a primary process may release the memzone used to store port data.
This makes it possible for the DPDK memory allocator to release associated resources back to the OS.

 lib/ethdev/ethdev_driver.c  |  6 ++++++
 lib/ethdev/ethdev_private.c | 21 ++++++++++++++++++++-
 lib/ethdev/ethdev_private.h |  4 ++++
 lib/ethdev/rte_ethdev.c     |  3 +++
 4 files changed, 33 insertions, 1 deletion
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.