From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by dpdk.org (Postfix) with ESMTP id 301D83230 for ; Thu, 1 Feb 2018 11:55:55 +0100 (CET) Received: by mail-lf0-f43.google.com with SMTP id q194so25495424lfe.13 for ; Thu, 01 Feb 2018 02:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YD3F0mWAN4gOXi0dLoTyCbvN+hXUMJS0So36KKdKX4g=; b=BIkWPiCflafpMkcvLVcj+QD2S9ICT3TxttdUUj2uMDaAW5PkwBuQImWQ4n1yh12sY2 8mxNEc4aUQusn+Q4p22rjesdBZdlDsmfRhGu8ffwZk2Wo/75vgTli9jbf/bc5bNKxtMt WFXO0cQtzSm4ECh7sJve7++apbLi5KNQp/SNnTQ1yZCWyuu+xRJslyN5eIugr/t7m4gq 2NoEenL1BdusZRsyT+oWao4mgqYx2tAm6pMs64g8qziXOFsIravbDGKA+dgY8CXxVp40 JROpTO2/YP5jJGghAFVBhR+GswgPu9KUshPCiY2r/5TGBBfZ21q2IlW27BFwy2AmpTJP sx4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YD3F0mWAN4gOXi0dLoTyCbvN+hXUMJS0So36KKdKX4g=; b=I3mrz4YVcSYVF6G9lHde5Dr7p6CpcAOnuPTJcMAgzS4R6M5mxxF1PMBoytUnltkkh9 AYZ9PxVK8chQIg+Bbwi1A7viZaYafJAS3btcE7KO7Np7FuYwQHHHOIFSsXI0N573dCLV L+HzKqPWoPilsLC1hreoAJ0SJ7LsX6PXvve6gBujTV1qcsTeMvft1y7/qpEbJtkRfRRF ZXUEa83tdlt7DqrWzaYBRZnUQvP3aeEkJlNoidrX09j50o4UD1CHnDScKcjgp2jG7TKw DRfEYk0idhtL+pQrdrXWG4dG4GQ0hgj/EvOkBrHsQFaKFUcj+jochxYC0eH54o3ZpSjJ NkWw== X-Gm-Message-State: AKwxyteEjEaTeSi1fjIilxt2OMkq4mDAObpHHd3t3dJMc4qIuGg1IhaU rVewdqrw8UAqEIMoaMfmGacWzPxRwyFWXg9otsUtag== X-Google-Smtp-Source: AH8x226Ux2qBF3BpfkVl8/LPOgerJvYZscxR+VRCEKzWHjISQyh/muLbYkX588oYF+rphGpiw67VInIeNWhda6LXRZc= X-Received: by 10.46.112.5 with SMTP id l5mr21285528ljc.141.1517482554631; Thu, 01 Feb 2018 02:55:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.215.80 with HTTP; Thu, 1 Feb 2018 02:55:54 -0800 (PST) From: Dan Shimshoni Date: Thu, 1 Feb 2018 12:55:54 +0200 Message-ID: To: dts@dpdk.org Content-Type: multipart/alternative; boundary="f4f5e807fe509f2a9a05642470d3" Subject: [dts] DTS with pktgen crashes X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 10:55:55 -0000 --f4f5e807fe509f2a9a05642470d3 Content-Type: text/plain; charset="UTF-8" Hello, I am trying to run L2FW DTS with pktgen on DELL R720 server, and I get "Illegal instruction". I tried to find the root cause of the problem, and it seems related to the pktgen binary, to something related to a CPU flag (RTE_CPUFLAG_RTM flag (Transactional memory). I cloned the latest DTS repo, and extracted pktgen from it (it is in the dep/tgen.tgz tar file). My first question is: is this binary created from the official pktgen tree ? (in case it is, which version of pktgen is it?) or is it after applying some patches? (the reason for this question will be clear soon). Second: when I try to run it as stand alone and look at the core dump, I see the following: ./pktgen Illegal instruction (core dumped) gdb ./pktgen core GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./pktgen...done. [New LWP 6639] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ---Type to continue, or q to quit--- Core was generated by `./pktgen'. Program terminated with signal SIGILL, Illegal instruction. #0 0x000000000043417d in rte_cpu_get_flag_enabled (feature=6217008, feature@entry=RTE_CPUFLAG_RTM) at /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_cpuflags.h:303 303 /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_cpuflags.h: No such file or directory. (gdb) bt #0 0x000000000043417d in rte_cpu_get_flag_enabled (feature=6217008, feature@entry=RTE_CPUFLAG_RTM) at /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_cpuflags.h:303 #1 0x00000000004341ae in rte_rtm_init () at /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_spinlock.h:103 #2 0x00000000005d451d in __libc_csu_init () #3 0x00007fe2fda1aed5 in __libc_start_main (main=0x433400
, argc=1, argv=0x7ffd0c6a5868, init=0x5d44d0 <__libc_csu_init>, fini=, rtld_fini=, stack_end=0x7ffd0c6a5858) at libc-start.c:246 #4 0x0000000000435385 in _start () (gdb) - and I get the same issue of "illegal instruction" and the same results also with older official DTS releases, like https://dpdk.org/browse/tools/dts/snapshot/dts-17.11.tar.xz and https://dpdk.org/browse/tools/dts/snapshot/dts-17.05.tar.xz Regards, Dan --f4f5e807fe509f2a9a05642470d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,
I am trying to run L2= FW DTS with pktgen on=C2=A0
DELL R720 server, and I get "Ill= egal instruction".
I tried to find the root cause of the pro= blem, and it seems related to
the pktgen binary, to something rel= ated to=C2=A0a CPU flag (RTE_CPUFLAG_RTM flag (Tr= ansactional memory).

=
I cloned the latest DTS repo, and extracted pktgen=C2=A0
from it (it is in the dep/tgen.tgz tar file).
My first questio= n is: is this binary created from the=C2=A0
official pktgen tree = ? (in case it is, which version of pktgen is it?) or is it after applying s= ome patches? (the=C2=A0
reason for this question will be clear so= on).

Second: when I try to run it as stand alone a= nd look at the core dump, I see the=C2=A0
following:
./pktgen

Illegal instruction (core du= mped)

gdb ./pktgen core
GNU gdb (Ubuntu = 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Fo= undation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html<= /a>>
Find the GDB manual and other documentation r= esources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word= " to search for commands related to "word"...
Read= ing symbols from ./pktgen...done.
[New LWP 6639]
[Threa= d debugging using libthread_db enabled]
Using host libthread_db l= ibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".
---Ty= pe <return> to continue, or q <return> to quit---
Cor= e was generated by `./pktgen'.
Program terminated with signal= SIGILL, Illegal instruction.
#0=C2=A0 0x000000000043417d in rte_= cpu_get_flag_enabled (feature=3D6217008,
=C2=A0 =C2=A0 feature@en= try=3DRTE_CPUFLAG_RTM)
=C2=A0 =C2=A0 at /root/dpdk/x86_64-native-= linuxapp-gcc/include/rte_cpuflags.h:303
303=C2=A0 =C2=A0 =C2=A0/r= oot/dpdk/x86_64-native-linuxapp-gcc/include/rte_cpuflags.h: No such file or= directory.
(gdb) bt
#0=C2=A0 0x000000000043417d in rte= _cpu_get_flag_enabled (feature=3D6217008,
=C2=A0 =C2=A0 feature@e= ntry=3DRTE_CPUFLAG_RTM)
=C2=A0 =C2=A0 at /root/dpdk/x86_64-native= -linuxapp-gcc/include/rte_cpuflags.h:303
#1=C2=A0 0x0000000000434= 1ae in rte_rtm_init ()
=C2=A0 =C2=A0 at /root/dpdk/x86_64-native-= linuxapp-gcc/include/rte_spinlock.h:103
#2=C2=A0 0x00000000005d45= 1d in __libc_csu_init ()
#3=C2=A0 0x00007fe2fda1aed5 in __libc_st= art_main (main=3D0x433400 <main>,
=C2=A0 =C2=A0 argc=3D1, a= rgv=3D0x7ffd0c6a5868, init=3D0x5d44d0 <__libc_csu_init>,
= =C2=A0 =C2=A0 fini=3D<optimized out>, rtld_fini=3D<optimized out&g= t;,
=C2=A0 =C2=A0 stack_end=3D0x7ffd0c6a5858) at libc-start.c:246=
#4=C2=A0 0x0000000000435385 in _start ()
(gdb)


- and I get the same issue of "illega= l instruction" and the same results also with older=C2=A0

Regards,
Dan= =C2=A0
--f4f5e807fe509f2a9a05642470d3--