stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3k stars 658 forks source link

Illegal instruction (core dumped) #4889

Closed mark-liu closed 1 week ago

mark-liu commented 1 week ago

Describe the bug Downloading and running the binary for the set architecture causes Illegal instruction (core dumped) Problem Version: 2.5.0.0.3 (both glibc and musl versions for x86)

> unzip linux-glibc-x64.zip 
Archive:  linux-glibc-x64.zip
  inflating: blockstack-cli
  inflating: clarity-cli
  inflating: relay-server
  inflating: stacks-events
  inflating: stacks-inspect
  inflating: stacks-node
  inflating: stacks-signer
> ./stacks-node
Illegal instruction (core dumped)
> ./stacks-signer
Illegal instruction (core dumped)

I'm seeing same behaviour on Docker setup as above.

I've tested a prior version and binary runs fine, working version: 2.4.0.1.0

> unzip linux-glibc-x64.zip
Archive:  linux-glibc-x64.zip
  inflating: blockstack-cli
  inflating: clarity-cli
  inflating: stacks-inspect
  inflating: stacks-node
> ./stacks-node
INFO [1718697727.185858] [testnet/stacks-node/src/main.rs:292] [main] stacks-node 2.4.0.1.0 (master:9b377f9, release build, linux [x86_64])
./stacks-node <SUBCOMMAND>
Run a stacks-node.

Steps To Reproduce Download binary and run

Expected behavior Expecting the binary to run.

Environment (please complete the following information):

Additional context Happy to provide more hardware information.

mark-liu commented 1 week ago

Changing host emulation with new flags helped.

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 pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 fm a cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat umip pku ospke md_clear flush_l1d arch_capabilities