Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SIGILL: illegal instruction] Within a few seconds of startup, this error is reported and the program just hangs. #478

Open
AstaFrode opened this issue Jul 10, 2023 · 5 comments
Assignees

Comments

@AstaFrode
Copy link

golang: go 1.19
direct reference package: github.com/bytedance/sonic v1.8.0
error packages: github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311
error message:

SIGILL: illegal instruction
PC=0x124ffd3 m=14 sigcode=2
instruction bytes: 0xc5 0xfe 0x6f 0x5 0x92 0xfe 0xff 0xff 0x4c 0x3 0x47 0x8 0x41 0x89 0xd2 0x41

goroutine 103624 [running]:
github.com/chenzhuoyu/base64x.__native_entry__()
	/root/go/pkg/mod/github.com/chenzhuoyu/base64x@v0.0.0-20221115062448-fe3a3abad311/native_amd64.s:205 +0x173 fp=0xc00506ae70 sp=0xc00506ae68 pc=0x124ffd3
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:3089 +0x5ed

cpu info:

customer@s197281:~$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping        : 5
microcode       : 0x1d
cpu MHz         : 1600.010
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm flush_l1d
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown
bogomips        : 4533.47
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
@liuq19
Copy link
Collaborator

liuq19 commented Jul 11, 2023

Thank you, we will investigate this issue

@liuq19
Copy link
Collaborator

liuq19 commented Jul 11, 2023

The problem is the lack of avx instruction set, and it is used inbase64x.

https://github.com/chenzhuoyu/base64x/blob/master/native_amd64.s#L205C30-L205C37

@AstaFrode
Copy link
Author

@liuq19 Can this library only be used with cpu's that have the avx instruction set?

@liuq19
Copy link
Collaborator

liuq19 commented Jul 11, 2023

The dependency is not necessary. We will fix it in the base64x library.

@AstaFrode
Copy link
Author

Thanks, I'd like to be notified when it's resolved.

@liuq19 liuq19 self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants