Open connor4312 opened 1 year ago
I'm not sure if I symbolicated the logs properly. Is this with the latest Insiders using Electron 22.4.8?
First 50 lines
Operating system: Linux
5.19.0 -40-generic #41~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 31 16:00:14 UTC 2 x86_64
CPU: amd64
family 6 model 158 stepping 13
4 CPUs
GPU: UNKNOWN
Crash reason: SIGILL / ILL_ILLOPN
Crash address: 0x55650710f0f2
Process uptime: 1 seconds
Thread 0 (crashed)
0 code-insiders!unsigned long v8::internal::(anonymous namespace)::fast_search_avx<unsigned int>(unsigned int*, unsigned long, unsigned long, unsigned int) [simd.cc : 280 + 0x0]
rax = 0x0000000000000005 rdx = 0x00003de302d2a364
rcx = 0x0000000000225ed1 rbx = 0x00003de300225ed1
rsi = 0x0000000000000062 rdi = 0x00003de302d2a34c
rbp = 0x00007ffe1a04fc20 rsp = 0x00007ffe1a04fc20
r8 = 0x0000000000000000 r9 = 0x00000000000f7f01
r10 = 0x0000000000000001 r11 = 0x0000000000000001
r12 = 0x0000000000000001 r13 = 0x00002c94003c0000
r14 = 0x00003de300000000 r15 = 0x0000000000000000
rip = 0x000055650710f0f2
Found by: given as instruction pointer in context
1 0x55649febd42a
rbx = 0x00003de300225ed1 rbp = 0x00007ffe1a04fc78
rsp = 0x00007ffe1a04fc30 r12 = 0x0000000000000001
r13 = 0x00002c94003c0000 r14 = 0x00003de300000000
r15 = 0x0000000000000000 rip = 0x000055649febd42a
Found by: call frame info
2 0x55649febdbdf
rbp = 0x00007ffe1a04fcb0 rsp = 0x00007ffe1a04fc88
rip = 0x000055649febdbdf
Found by: previous frame's frame pointer
3 0x55649fe8b82c
rbp = 0x00007ffe1a04fd70 rsp = 0x00007ffe1a04fcc0
rip = 0x000055649fe8b82c
Found by: previous frame's frame pointer
4 0x55649fe8b82c
rbp = 0x00007ffe1a04fe00 rsp = 0x00007ffe1a04fd80
rip = 0x000055649fe8b82c
Found by: previous frame's frame pointer
5 0x55649fe8b82c
rbp = 0x00007ffe1a04ff18 rsp = 0x00007ffe1a04fe10
rip = 0x000055649fe8b82c
Found by: previous frame's frame pointer
6 0x55649fe8b82c
rbp = 0x00007ffe1a04ff68 rsp = 0x00007ffe1a04ff28
rip = 0x000055649fe8b82c
Found by: previous frame's frame pointer
This is on 2902f278ad8e2d830fa6883d3d8fd7b5c2ca59e9, which is currently the latest Insiders, and x64.
The crash would happen when avx cpu flags are disabled and v8 incorrectly decides to use avx code path, refs https://bugs.chromium.org/p/chromium/issues/detail?id=1412373. @connor4312 can you check if the flags are disabled via cat /proc/cpuinfo
? Also, curious if you are running the VM via WSL2 ?
This is running an Ubuntu 22.04 VM in parallels. Here's the cpuinfo. I don't see any avx flags, but I am on an Intel processor, so in theory they should be there.
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
stepping : 13
cpu MHz : 2400.000
cache size : 16384 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 smep bmi2 invpcid rdseed adx smap clflushopt dtherm arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
stepping : 13
cpu MHz : 2400.000
cache size : 16384 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 smep bmi2 invpcid rdseed adx smap clflushopt dtherm arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
stepping : 13
cpu MHz : 2400.000
cache size : 16384 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 smep bmi2 invpcid rdseed adx smap clflushopt dtherm arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
stepping : 13
cpu MHz : 2400.000
cache size : 16384 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 smep bmi2 invpcid rdseed adx smap clflushopt dtherm arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
AVX instructions are present via sysctl -a | grep machdep.cpu
on the macOS side:
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
machdep.cpu.leaf7_features: RDWRFSGS TSC_THREAD_OFFSET SGX BMI1 AVX2 SMEP BMI2 ERMS INVPCID FPU_CSDS MPX RDSEED ADX SMAP CLFSOPT IPT SGXLC MDCLEAR IBRS STIBP L1DF ACAPMSR SSBD
For your VM which hypervisor is configured under Parallels Configuration > CPU and Memory > Advanced
?
Apple
Interesting, I am on similar configuration and do get avx support for my linux VM not sure what else would cause the difference.
I just noticed that I can also check my settings.
My Ubuntu 22.04 VM works fine on the Intel Mac. I have both avx and avx2 flags listed under cpuinfo. Under "Ubuntu 22.04" Configuration > CPU and Memory > Advanced
I see a single checkbox that says Adaptive Hypervisor. It is unchecked. I'm using Parallels 1.8.1 on Monterey.
code --disable-gpu --disable-extensions
(repros both with and without these flags)vscode-crash.zip
This happens on Ubuntu 22.04, but not my other Ubuntu 18.04 VM.