From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AB6A9A0C41; Fri, 16 Apr 2021 07:28:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 42C91141AF1; Fri, 16 Apr 2021 07:28:20 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 14FC140140 for ; Fri, 16 Apr 2021 07:28:19 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id DE8CEA0C42; Fri, 16 Apr 2021 07:28:18 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 16 Apr 2021 05:28:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: examples X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: leweix.yang@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 680] [dpdk-21.05]hotplug_mp/test_attach_detach_dev_primary_cross_loop: Segmentation fault when detach device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D680 Bug ID: 680 Summary: [dpdk-21.05]hotplug_mp/test_attach_detach_dev_primary_ cross_loop: Segmentation fault when detach device Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: examples Assignee: dev@dpdk.org Reporter: leweix.yang@intel.com Target Milestone: --- Environment DPDK version: Use make showversion or for a non-released version: git remot= e -v && git show-ref --heads 21.05.0-rc0:89813a522e68076e6f50ec18b075fa57cc5ae937 Other software versions: name/version for QEMU, OVS, etc. Repeat as require= d. OS:=C2=A0CentOS Stream 8 4.18.0-269.el8.x86_64 Compiler:=C2=A0gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1) Hardware platform: Intel(R) Xeon(R) Gold 6252N CPU @ 2.30GHz NIC hardware: XXV710 for 25GbE SFP28 158b Driver version: 2.8.20-k NIC firmware:=C2=A08.00 0x80008bb1 1.2766.0 Test Setup Steps to reproduce List the steps to reproduce the issue. 1. build dpdk # rm -rf x86_64-native-linuxapp-gcc # CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dc_args=3D'-DRTE_EAL_IGB_UIO=3D1' --default-library=3Dstatic x86_64-native-linuxapp-gcc # ninja -C x86_64-native-linuxapp-gcc -j 70 # meson configure -Dexamples=3Dmulti_process/hotplug_mp x86_64-native-linuxapp-gcc # ninja -C x86_64-native-linuxapp-gcc 2. lanch app # Open three dut terminals=20 # terminal1=EF=BC=9Ax86_64-native-linuxapp-gcc/examples/dpdk-hotplug_mp=20= =20 --proc-type=3Dauto # terminal2=EF=BC=9Ax86_64-native-linuxapp-gcc/examples/dpdk-hotplug_mp=20= =20 --proc-type=3Dauto # terminal3=EF=BC=9Ax86_64-native-linuxapp-gcc/examples/dpdk-hotplug_mp=20= =20 --proc-type=3Dauto # terminal1=EF=BC=9Alist # terminal2=EF=BC=9Alist # terminal3=EF=BC=9Alist # terminal1=EF=BC=9Aattach 0000:18:00.0 # terminal1=EF=BC=9Alist # terminal2=EF=BC=9Alist # terminal3=EF=BC=9Alist # terminal3: detach 0000:18:00.0 Show the output from the previous commands: Output of Terninal3: Failed to send hotplug request to primary. example> detach 0000:18:00.0 detaching... EAL: Releasing PCI mapped resource for 0000:18:00.0 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2200000000 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2201000000 EAL: Fail to recv reply for request /var/run/dpdk/rte/mp_socket:eal_dev_mp_request EAL: Cannot send request to primary EAL: Failed to send hotplug request to primary failed to dettach device 0000:18:00.0 Output of Terninal2: example> list list all etherdev 0 0000:18:00.0 example> EAL: Releasing PCI mapped resource for 0000:18:00.0 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2200000000 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2201000000 example> list list all etherdev example> Output of Terninal1: will shouw "segmentation fault" example> EAL: Releasing PCI mapped resource for 0000:18:00.0 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2200000000 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2201000000 Segmentation fault (core dumped) Expected Result Explain what is the expected result in text or as an example output: detaching... EAL: Releasing PCI mapped resource for 0000:18:00.0 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2200000000 EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x2201000000 detached device 0000:18:00.0 Regression Is this issue a regression: (Y/N) Y Bad commitid :=C2=A064051bb1f144c418f3fc76e6d0973337b05d5886 git show 64051bb1f144c418f3fc76e6d0973337b05d5886 commit 64051bb1f144c418f3fc76e6d0973337b05d5886 (HEAD) Author: Xueming Li Date: Tue Apr 13 03:14:08 2021 +0000 devargs: unify scratch buffer storage In current design, legacy parser rte_devargs_parse() saved scratch buffer to devargs.args while new parser rte_devargs_layers_parse() saved to devargs.data. Code using devargs had to know the difference and cleaned up memory accordingly - error prone. This patch unifies scratch buffer to data field, introduces rte_devargs_reset() function to wrap the memory clean up logic. Signed-off-by: Xueming Li Acked-by: Ray Kinsella Reviewed-by: Gaetan Rivet --=20 You are receiving this mail because: You are the assignee for the bug.=