test suite reviews and discussions
 help / color / mirror / Atom feed
From: Dan Shimshoni <danshimsh@gmail.com>
To: dts@dpdk.org
Subject: [dts] DTS with pktgen crashes
Date: Thu, 1 Feb 2018 12:55:54 +0200	[thread overview]
Message-ID: <CACuRQ2+SJuayLkvhnYa7MeXULeYKGQEAwCDJr_b92JJ3H8+VVQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2953 bytes --]

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 <http://gnu.org/licenses/gpl.html
>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 <return> to continue, or q <return> 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 <main>,
    argc=1, argv=0x7ffd0c6a5868, init=0x5d44d0 <__libc_csu_init>,
    fini=<optimized out>, rtld_fini=<optimized out>,
    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

[-- Attachment #2: Type: text/html, Size: 5007 bytes --]

             reply	other threads:[~2018-02-01 10:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01 10:55 Dan Shimshoni [this message]
2018-02-02  2:30 ` Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACuRQ2+SJuayLkvhnYa7MeXULeYKGQEAwCDJr_b92JJ3H8+VVQ@mail.gmail.com \
    --to=danshimsh@gmail.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).