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 DADA3A0C54; Fri, 27 Aug 2021 03:47:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72E414067C; Fri, 27 Aug 2021 03:47:38 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 00D7940140 for ; Fri, 27 Aug 2021 03:47:36 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id CB360A0C55; Fri, 27 Aug 2021 03:47:36 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 27 Aug 2021 01:47:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yux.jiang@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 797] [dpdk-21.11]Segmentation fault when start txonly packet forward after set txpkts=40, 64 and txsplit=rand 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=3D797 Bug ID: 797 Summary: [dpdk-21.11]Segmentation fault when start txonly packet forward after set txpkts=3D40,64 and txsplit=3Dr= and Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: yux.jiang@intel.com Target Milestone: --- Environment DPDK version:=20 commit fdab8f2e17493192d555cd88cf28b06269174326 (HEAD, origin/main) Author: Thomas Monjalon Date: Sun Aug 8 21:26:58 2021 +0200 version: 21.11-rc0 Start a new release cycle with empty release notes. The ABI version becomes 22.0. The map files are updated to the new ABI major number (22). The ABI exceptions are dropped and CI ABI checks are disabled because compatibility is not preserved. Signed-off-by: Thomas Monjalon Acked-by: Ferruh Yigit Acked-by: David Marchand Other software versions:=20 OS:=C2=A0PRETTY_NAME=3D"Fedora 34 (Server Edition)"/5.12.14-300.fc34.x86_64 Compiler:=C2=A0gcc version 11.1.1 20210531 (Red Hat 11.1.1-3)=C2=A0 Hardware platform:=C2=A0Intel(R) Xeon(R) Gold 6252N CPU @ 2.30GHz NIC hardware:=C2=A0Ethernet Controller X710 for 10GbE SFP+ 1572 NIC firmware:=C2=A0 [root@fedora dpdk]# ethtool -i enp217s0f0 driver: i40e version: 2.15.9 firmware-version: 8.30 0x8000a49d 1.2926.0 Test Setup # Build dpdk rm -rf x86_64-native-linuxapp-gccCC=3Dgcc meson --werror -Denable_kmods=3DT= rue=C2=A0 -Dbuildtype=3Ddebug -Dlibdir=3Dlib --default-library=3Dstatic x86_64-native-linuxapp-gccninja -C x86_64-native-linuxapp-gcc -j 40 # bind nic to vfio-pci and start testpmd ./usertools/dpdk-devbind.py -b vfio-pci d9:00.0 d9:00.1 x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4 -n 4 --file-prefix=3Ddpdk_339481_20210823205202 -- -i # Set txpkts and txsplit and start testpmd> set fwd txonly Set txonly packet forwarding mode testpmd> set txpkts 40,64 testpmd> set txsplit rand testpmd> start testpmd>=20 Show the output from the previous commands. testpmd> start txonly packet forwarding - ports=3D2 - cores=3D1 - streams=3D2 - NUMA suppo= rt enabled, MP allocation mode: native Logical Core 2 (socket 0) forwards packets on 2 streams: RX P=3D0/Q=3D0 (socket 1) -> TX P=3D1/Q=3D0 (socket 1) peer=3D02:00:00:00= :00:01 RX P=3D1/Q=3D0 (socket 1) -> TX P=3D0/Q=3D0 (socket 1) peer=3D02:00:00:00= :00:00 txonly packet forwarding packets/burst=3D32 packet len=3D104 - nb packet segments=3D2 nb forwarding cores=3D1 - nb forwarding ports=3D2 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x0 Tx offloads=3D0x10000 RX queue: 0 RX desc=3D256 - RX free threshold=3D32 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D256 - TX free threshold=3D32 TX threshold registers: pthresh=3D32 hthresh=3D0 wthresh=3D0 TX offloads=3D0x10000 - TX RS bit threshold=3D32 port 1: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x0 Tx offloads=3D0x10000 RX queue: 0 RX desc=3D256 - RX free threshold=3D32 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D256 - TX free threshold=3D32 TX threshold registers: pthresh=3D32 hthresh=3D0 wthresh=3D0 TX offloads=3D0x10000 - TX RS bit threshold=3D32 testpmd> Segmentation fault (core dumped) [root@fedora dpdk]# Expected Result No any core dumped Regression Is this issue a regression: (Y/N) N First test with such cmd Stack Trace or Log # if set txsplit on, there is no core dumped. # gdb ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd ./core-lcore-worker-2-46341-1629784290 warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3= ,4 -n 4 --file-prefix=3Ddpdk_'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000005fbbc6 in copy_buf_to_pkt_segs (buf=3D0x3de3e3e , len=3D2, pkt=3D0x166c5e400, offset=3D34) at ../app/test-pmd/txonly.c:86 86 seg_buf =3D rte_pktmbuf_mtod(seg, char *); [Current thread is 1 (Thread 0x7f47712a0400 (LWP 46344))] Missing separate debuginfos, use: dnf debuginfo-install elfutils-libelf-0.185-2.fc34.x86_64 glibc-2.33-5.fc34.x86_64 jansson-2.13.1-2.fc34.x86_64 libfdt-1.6.1-1.fc34.x86_64 libibverbs-34.0-3.fc34.x86_64 libnl3-3.5.0-6.fc34.x86_64 libpcap-1.10.1-1.fc34.x86_64 numactl-libs-2.0.14-3.fc34.x86_64 openssl-libs-1.1.1k-1.fc34.x86_64 zlib-1.2.11-26.fc34.x86_64 (gdb) bt #0 0x00000000005fbbc6 in copy_buf_to_pkt_segs (buf=3D0x3de3e3e , len=3D2, pkt=3D0x166c5e400, offset=3D34) at ../app/test-pmd/txonly.c:86 #1 0x00000000005fe51c in copy_buf_to_pkt (buf=3D0x3de3e38 , l= en=3D8, pkt=3D0x166c5e400, offset=3D34) at ../app/test-pmd/txonly.c:100 #2 0x00000000005ff51b in pkt_burst_prepare (pkt=3D0x166c5e400, mbp=3D0x17f= 0f0180, eth_hdr=3D0x7f477129b182, vlan_tci=3D0, vlan_tci_outer=3D0, ol_flags=3D0, i= dx=3D1, fs=3D0x166bbb4c0) at ../app/test-pmd/txonly.c:251 #3 0x000000000060043f in pkt_burst_transmit (fs=3D0x166bbb4c0) at ../app/test-pmd/txonly.c:372 #4 0x00000000005f0362 in run_pkt_fwd_on_lcore (fc=3D0x17fb3adc0, pkt_fwd=3D0x5ff7eb ) at ../app/test-pmd/testpmd.c:2049 #5 0x00000000005f0452 in start_pkt_forward_on_core (fwd_arg=3D0x17fb3adc0)= at ../app/test-pmd/testpmd.c:2075 #6 0x0000000000aa8910 in eal_thread_loop (arg=3D0x0) at ../lib/eal/linux/eal_thread.c:127 #7 0x00007f477254f299 in start_thread () from /lib64/libpthread.so.0 #8 0x00007f47724776a3 in clone () from /lib64/libc.so.6 (gdb) --=20 You are receiving this mail because: You are the assignee for the bug.=