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 81D85A0C45; Wed, 4 Aug 2021 04:15:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09B3940696; Wed, 4 Aug 2021 04:15:45 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id D1D764014F for ; Wed, 4 Aug 2021 04:15:43 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id A498BA0C4D; Wed, 4 Aug 2021 04:15:43 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 04 Aug 2021 02:15:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 21.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhihongx.peng@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 attachments.created 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 770] The softnic start service rte_pmd_softnic_run_internal, when testpmd close port, segmentation fault will appear. 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=3D770 Bug ID: 770 Summary: The softnic start service rte_pmd_softnic_run_internal, when testpmd close port, segmentation fault will appear. Product: DPDK Version: 21.08 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 168 --> https://bugs.dpdk.org/attachment.cgi?id=3D168&action=3Dedit patch and firmware 1. unzip patch.zip=20 2. cp patch/flow_ipv4_addr_hash_firmware.cli dpdk 3. git apply 0001-port-add-some-logs-to-locate-the-issue.patch 4. CC=3Dgcc meson -Denable_kmods=3DTrue -Dbuildtype=3Ddebug -Db_lundef=3Dfa= lse -Db_sanitize=3Daddress -Dlibdir=3Dlib --default-library=3Dstatic x86_64-native-linuxapp-gcc 5. ninja -C x86_64-native-linuxapp-gcc 6. modprobe vfio-pci 7. bind i40e to vfio-pci ./usertools/dpdk-devbind.py -b vfio-pci 0000:86:00.0 0000:86:00.1 8. ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd --vdev net_softnic0,firmware=3D./flow_ipv4_addr_hash_firmware.cli,cpu_id=3D1,conn_= port=3D8086 -l 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,= 29,30,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,= 55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71 -n 4 -a 0000:af:00.0 -a 0000:af:00.1 --file-prefix=3Ddpdk_11700_20210721190= 028 -s 0x4 -- -i --rxq=3D2 --txq=3D2 --disable-rss --portmask=3D0x4 9. testpmd> port stop 0 Stopping ports... Checking link statuses... rte_eth_rx_burst run on port 0 (dev started: no).............. Done trte_eth_rx_burst run on port 1 (dev started: yes).............. estpmd> rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. rte_eth_rx_burst run on port 0 (dev started: no).............. rte_eth_rx_burst run on port 1 (dev started: yes).............. 10. testpmd> port close 1 port close 1 Closing ports... --Type for more, q to quit, c to continue without paging-- Thread 4 "lcore-worker-2" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff450b700 (LWP 39856)] 0x00000000014c347c in _recv_raw_pkts_vec_avx2 (rxq=3D0x0, rx_pkts=3D0x121e0= 8fd28, nb_pkts=3D32, split_packet=3D0x0) at ../drivers/net/i40e/i40e_rxtx_vec_avx2= .c:116 116 const uint32_t *ptype_tbl =3D rxq->vsi->adapter->ptype_tbl; (gdb) bt #0 0x00000000014c347c in _recv_raw_pkts_vec_avx2 (rxq=3D0x0, rx_pkts=3D0x121e08fd28, nb_pkts=3D32, split_packet=3D0x0) at ../drivers/net/i40e/i40e_rxtx_vec_avx2.c:116 #1 i40e_recv_pkts_vec_avx2 (rx_queue=3D0x0, rx_pkts=3D0x121e08fd28, nb_pkt= s=3D32) at ../drivers/net/i40e/i40e_rxtx_vec_avx2.c:635 #2 0x0000000000797ccb in rte_eth_rx_burst (port_id=3D1, queue_id=3D0, rx_pkts=3D0x121e08fd28, nb_pkts=3D32) at ../lib/ethdev/rte_ethdev.h:4996 #3 0x000000000079728e in rte_port_ethdev_reader_rx (port=3D0x121e08ad00, pkts=3D0x121e08fd28, n_pkts=3D32) at ../lib/port/rte_port_ethdev.c:81 #4 0x000000000064b216 in rte_pipeline_run (p=3D0x121e08ae80) at ../lib/pipeline/rte_pipeline.c:1322 #5 0x0000000002895577 in rte_pmd_softnic_run_internal (arg=3D0x4fa4e40 ) at ../drivers/net/softnic/rte_eth_softnic_thread.c:3006 #6 0x0000000000aa53bd in service_runner_do_callback (s=3D0x17fffe000, cs=3D0x17ffea480, service_idx=3D0) at ../lib/eal/common/rte_service.c:376 #7 0x0000000000aa4501 in service_run (i=3D0, cs=3D0x17ffea480, service_mas= k=3D1, s=3D0x17fffe000, serialize_mt_unsafe=3D1) at ../lib/eal/common/rte_service.= c:407 #8 0x0000000000aa4c1c in service_runner_func (arg=3D0x0) at ../lib/eal/common/rte_service.c:475 #9 0x0000000000ab80bc in eal_thread_loop (arg=3D0x0) at ../lib/eal/linux/eal_thread.c:127 #10 0x00007ffff5f87e65 in start_thread () from /lib64/libpthread.so.0 #11 0x00007ffff5cb088d in clone () from /lib64/libc.so.6 (gdb) --=20 You are receiving this mail because: You are the assignee for the bug.=