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 16684A00C2; Thu, 16 Jun 2022 16:45:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EEC0840DDD; Thu, 16 Jun 2022 16:45:02 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id C542340141 for ; Thu, 16 Jun 2022 16:45:01 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id AE9EEA00C3; Thu, 16 Jun 2022 16:45:01 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1038] Illegal instruction found when running dpdk-test (built with GCC 12.1) on CPU has no AVX instruction set Date: Thu, 16 Jun 2022 14:45:01 +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.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: yongxin.liu@windriver.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 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1038 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 p= ge 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 vn= mi 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=20 [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=20 #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 =3D> 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. --=20 You are receiving this mail because: You are the assignee for the bug.=