Content-Type: multipart/mixed; boundary="===============2056640420179019944==" MIME-Version: 1.0 From: asprasannavenkatesh at gmail.com Subject: [SPDK] SPDK v19.10/DPDK v19.05.0 eal_adjust_config issue, Illegal instruction causing application to abort Date: Thu, 23 Apr 2020 07:56:58 +0000 Message-ID: <20200423075658.2763.48335@ml01.vlan13.01.org> List-ID: To: spdk@lists.01.org --===============2056640420179019944== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi guys, I am running SPDK version 19.10 and DPDK version 19.05.0 in my initiator ap= plication and I am running into an issue that seems to be sporadic in natur= e. I am running into this issue, where the application aborts saying Illega= l instruction, with Signal 4, SIGILL (code: illegal operand). Issue seems t= o be more of a library related/EAL config related issue. I am using the following DPDK EAL parameters in the application. I am also = attaching the topmost information from backtrace, as the other things are c= ompany confidential. Starting SPDK v19.10 / DPDK 19.05.0 initialization... [ DPDK EAL parameters: nvmf --no-shconf -c 0x1 --log-level=3Dlib.eal:6 --lo= g-level=3Dlib.cryptodev:5 --log-level=3Duser1:6 --base-virtaddr=3D0x2000000= 00000 --match-allocations --file-prefix=3Dspdk_pid40756 ] *** Aborted at 1587486078 (Unix time, try 'date -d @1587486078') *** *** Signal 4 (SIGILL) (0x7f2e40ec986d) received by PID 40756 (pthread TID 0= x7f2e17fff700) (linux TID 40767) (maybe from PID 1089247341, UID 32558) (co= de: illegal operand), stack trace: *** @ 00007f2e3fb2938f (unknown) @ 00007f2e40ec986d eal_adjust_config -> /spdk/spdk-src/lib/json/j= son_write.c @ 00007f2e40eb03a5 rte_eal_init -> /spdk/spdk-src/lib/json/json_w= rite.c @ 00007f2e40e906e6 spdk_env_init /spdk/spdk-src/lib/env_dpdk/init= .c:456 I am trying to debug this issue. But adding -g and -ggdb compilation flags = to the cmake list file makes the issue to vanish. Have any of you seen this= kind of crash and how should we go about fixing this? Is adding -g and -gd= b a workaround or is that the required fix. Is this a DPDK issue or just a = gcc issue? Also here is the system information that I am using Initiator_system:~$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 56 On-line CPU(s) list: 0-55 Thread(s) per core: 2 Core(s) per socket: 14 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz Stepping: 1 CPU MHz: 1236.281 CPU max MHz: 3300.0000 CPU min MHz: 1200.0000 BogoMIPS: 4801.15 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 35840K NUMA node0 CPU(s): 0-13,28-41 NUMA node1 CPU(s): 14-27,42-55 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 constant_tsc arch_perfmon pebs bts rep_good nopl xtop= ology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl v= mx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic = movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnow= prefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_ad= just bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdseed adx smap xsaveopt = cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts Kindly keep us posted if you guys have any inputs. Thanks and Regards, Prasanna --===============2056640420179019944==--