DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1038] Illegal instruction found when running dpdk-test (built with GCC 12.1) on CPU has no AVX instruction set
@ 2022-06-16 14:45 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-06-16 14:45 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=1038

            Bug ID: 1038
           Summary: Illegal instruction found when running dpdk-test
                    (built with GCC 12.1) on CPU has no AVX instruction
                    set
           Product: DPDK
           Version: 21.11
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: yongxin.liu@windriver.com
  Target Milestone: ---

Build dpdk with GCC 12.1 on x86 Atom machine which has no AVX support.


root@intel-x86-64:/mnt/ninja# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         42 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  24
  On-line CPU(s) list:   0-23
Vendor ID:               GenuineIntel
  BIOS Vendor ID:        Intel(R) Corporation
  Model name:            Intel Atom(R) P5362 processor
    BIOS Model name:     Intel Atom(R) P5362 processor  CPU @ 2.2GHz
    BIOS CPU family:     179
    CPU family:          6
    Model:               134
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
pdpe1gb rdtscp lm consta
                         nt_tsc art arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64
monitor ds_cpl vmx smx est tm2 ss
                         se3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe
popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault
epb cat_l3 cat_l2 cdp_l2 ss
                         bd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi
flexpriority ept vpid ept_ad fsgsbase tsc_adjust smep erms cqm rdt_a rdseed
smap clflushopt clwb intel
                         _pt sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc
cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect dtherm arat pln pts
umip waitpkg gfni rdpid c
                         ldemote movdiri movdir64b md_clear flush_l1d
arch_capabilities


root@intel-x86-64:/mnt/build/app/test# ./dpdk-test
Illegal instruction

root@intel-x86-64:/mnt/build/app/test# gdb ./dpdk-test
GNU gdb (GDB) 12.1
Reading symbols from ./dpdk-test...
(gdb) run
Starting program: /mnt/build/app/test/dpdk-test 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x000055555581af85 in __idxd_pmd_logtype ()
(gdb) bt 
#0  0x000055555581af85 in __idxd_pmd_logtype ()
#1  0x00007ffff776a62e in __libc_start_main () from /lib64/libc.so.6
#2  0x0000555555ec6d35 in _start () at ../sysdeps/x86_64/start.S:115
(gdb) display/i $pc
1: x/i $pc
=> 0x55555581af85 <__idxd_pmd_logtype+21>:      vpxor  %xmm1,%xmm1,%xmm1

Apparently, vpxor is an instruction of AVX set. It should not run on CPU
without AVX support.

BTW, there is no issue when building dpdk-test with GCC 11.3.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-16 14:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 14:45 [Bug 1038] Illegal instruction found when running dpdk-test (built with GCC 12.1) on CPU has no AVX instruction set bugzilla

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).