2020-08-14T01:48:50.973+0900 INFO chain chain/sync_manager.go:101 sync bootstrap has 1 peers
2020-08-14T01:48:51.485+0900 INFO chain chain/sync.go:1263 Got blocks: 21 20
2020-08-14T01:48:51.661+0900 INFO hello hello/hello.go:117 Got new tipset through Hello: [bafy2bzacecbiew7cq2gquewicoyvu3crpbs65kyfzek4fh4iexdc42h6tymyc bafy2bzacecycv33oxoolv7dxqjy332gxjai5eblwo2pxblfrs4jjzfqybyine bafy2bzacedqejazequaadtgd47vqwyp2ybmyszedhhavbqtzeibn2mbspyikw] from 12D3KooWBM8Zdq288tyYF5yT1j2ym9ynApddGJFjYnXNiFiCbdXp
2020-08-14T01:48:51.662+0900 INFO hello hello/hello.go:179 time offset {"offset": -0.00608892, "peerid": "12D3KooWBM8Zdq288tyYF5yT1j2ym9ynApddGJFjYnXNiFiCbdXp"}
SIGILL: illegal instruction
PC=0x1f112c3 m=21 sigcode=2
goroutine 0 [idle]:
runtime: unknown pc 0x1f112c3
stack: frame={sp:0x7fb2c25ea3c8, fp:0x0} stack=[0x7fb2c1deaf08,0x7fb2c25eab08)2020-08-14T01:48:50.973+0900 INFO chain chain/sync_manager.go:101 sync bootstrap has 1 peers
2020-08-14T01:48:51.485+0900 INFO chain chain/sync.go:1263 Got blocks: 21 20
2020-08-14T01:48:51.661+0900 INFO hello hello/hello.go:117 Got new tipset through Hello: [bafy2bzacecbiew7cq2gquewicoyvu3crpbs65kyfzek4fh4iexdc42h6tymyc bafy2bzacecycv33oxoolv7dxqjy332gxjai5eblwo2pxblfrs4jjzfqybyine bafy2bzacedqejazequaadtgd47vqwyp2ybmyszedhhavbqtzeibn2mbspyikw] from 12D3KooWBM8Zdq288tyYF5yT1j2ym9ynApddGJFjYnXNiFiCbdXp
2020-08-14T01:48:51.662+0900 INFO hello hello/hello.go:179 time offset {"offset": -0.00608892, "peerid": "12D3KooWBM8Zdq288tyYF5yT1j2ym9ynApddGJFjYnXNiFiCbdXp"}
SIGILL: illegal instruction
PC=0x1f112c3 m=21 sigcode=2
goroutine 0 [idle]:
runtime: unknown pc 0x1f112c3
stack: frame={sp:0x7fb2c25ea3c8, fp:0x0} stack=[0x7fb2c1deaf08,0x7fb2c25eab08)
-
Genesis is up,and lotus daemon crashed.
-
@ribasushi Yes I am compiling on the same machine I run.
ribasushi 8 hours ago
@hyunmoon including RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make all ?hyunmoon 8 hours ago
@ribasushi env FFI_BUILD_FROM_SOURCE=1 RUSTFLAGS="-C target-cpu=native -g" make clean deps all install && clear && lotus --version
Anything wrong with this command here? (edited)joe 8 hours ago
Compile and execute on the same server @ribasushi And the compile command is the same as what you wrotehyunmoon 8 hours ago
I cloned again using the tag number and rebuilt. Crashed miserably again. I guess I will try on my AMD machine. @ribasushiribasushi 8 hours ago
then I indeed have to leave this to @Why... seems to be an incorrect ffi assumption...?ribasushi 8 hours ago
@hyunmoon what is your exact lscpuhyunmoon 7 hours ago
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 80
On-line CPU(s) list: 0-79
Thread(s) per core: 2
Core(s) per socket: 20
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
Stepping: 7
CPU MHz: 800.584
CPU max MHz: 2101.0000
CPU min MHz: 800.0000
BogoMIPS: 4200.00
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 28160K
NUMA node0 CPU(s): 0-19,40-59
NUMA node1 CPU(s): 20-39,60-79
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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx 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 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear flush_l1d arch_capabilitiesArchitecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 80
On-line CPU(s) list: 0-79
Thread(s) per core: 2
Core(s) per socket: 20
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
Stepping: 7
CPU MHz: 800.584
CPU max MHz: 2101.0000
CPU min MHz: 800.0000
BogoMIPS: 4200.00
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 28160K
NUMA node0 CPU(s): 0-19,40-59
NUMA node1 CPU(s): 20-39,60-79
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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx 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 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear flush_l1d arch_capabilities
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 64
On-line CPU(s) list: 0-63
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz
Stepping: 7
CPU MHz: 800.551
CPU max MHz: 3200.0000
CPU min MHz: 800.0000
BogoMIPS: 4200.00
Virtualization: VT-x
L1d cache: 1 MiB
L1i cache: 1 MiB
L2 cache: 32 MiB
L3 cache: 44 MiB
NUMA node0 CPU(s): 0-15,32-47
NUMA node1 CPU(s): 16-31,48-63
Vulnerability Itlb multihit: KVM: Mitigation: Split huge pages
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Mitigation; TSX disabled
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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf
pni pclmulqdq dtes64 monitor ds_cpl vmx 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 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single
intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx
512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear flush_l1d arch_capabilities
@ribasushi (edited)ribasushi 7 hours ago
let us know if amd "just works"...leviok 7 hours ago
it works on 3970xjoe 7 hours ago
it works on AMD 7302 ,intel doesn't work @ribasushiribasushi 7 hours ago
can you re-run with RUST_LOG=debug ./lotus daemon 2>&1 | tee -a everything.log and post the full log
( there is a "create code or text snippet" in the left corner as an option, looks much nicer )hyunmoon 7 hours ago
I'm building on my AMD. I notice the build is taking a lot longer than before. (edited)ribasushi 7 hours ago
@hyunmoon I wonder if you are not rebuilding the ffi bindings after a cleanhyunmoon 7 hours ago
I even removed lotus git directory and cloned from scratch. @ribasushi
Added to your saved itemsribasushi 7 hours ago
@hyunmoon on the intel try:
git submodule update --init --recursive; bash -c 'cd extern/filecoin-ffi; git clean -fxd' (edited)hyunmoon 7 hours ago
OK seems to be working fine on an EPYC server. I'll try your solutions shortly. @ribasushiribasushi 7 hours ago
( I need to move to the office, I will disconnect for ~30 minutes (joe 7 hours ago
@ribasushi
Plain Text
everything.log
447 kB Plain Text447 kB — Click to downloadribasushi 7 hours ago
@joe and you are absolutely sure the ffi was rebuilt using the FFI_BUILD_FROM_SOURCE=1 RUSTFLAGS="-C target-cpu=native -g" make all line? you saw the rust output scrolling by?ribasushi 7 hours ago
@joe can you please git log --oneline --decorate --graph ^origin/next^ HEADjoe 7 hours ago
Yes, I'm sure I compiled with this command
QzpcVXNlcnNcQWRtaW5pc3RyYXRvclxBcHBEYXRhXFJvYW1pbmdcRGluZ1RhbGtcNTg3NDU5NjEyX3YyXEltYWdlRmlsZXNcMTU5NzM0MTY2OTM3OV9FNjk0OTE0MC00QjU5LTRmYzktQjVDRi1DM0Q5MTRGQzhDMEMucG5n.png
QzpcVXNlcnNcQWRtaW5pc3RyYXRvclxBcHBEYXRhXFJvYW1pbmdcRGluZ1RhbGtcNTg3NDU5NjEyX3YyXEltYWdlRmlsZXNcMTU5NzM0MTY2OTM3OV9FNjk0OTE0MC00QjU5LTRmYzktQjVDRi1DM0Q5MTRGQzhDMEMucG5n.pngjoe 7 hours ago
@ribasushinemo 7 hours ago
Try: cat extern/filecoin-ffi/rust/rustc-target-features-optimized.json and see if the cpu check for the +sha feature is nulljoe 7 hours ago
@nemo
[
{
"rustc_target_feature": "+adx",
"check_cpu_for_feature": "adx"
},
{
"rustc_target_feature": "+sha",
"check_cpu_for_feature": "sha"
},
{
"rustc_target_feature": "+sse2",
"check_cpu_for_feature": "sse2"
},
{
"rustc_target_feature": "+avx2",
"check_cpu_for_feature": "avx2"
},
{
"rustc_target_feature": "+avx",
"check_cpu_for_feature": "avx"
},
{
"rustc_target_feature": "+sse4.2",
"check_cpu_for_feature": "sse4_2"
},
{
"rustc_target_feature": "+sse4.1",
"check_cpu_for_feature": "sse4_1"
}
]
My CPU instruction set
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 xto
pology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx 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 rd
rand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpci
d rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts md_clear flush_l1d
:thanks:
1nemo 6 hours ago
If you have this error/crash, can you collect a core file and inspect it to see where it's crashing?hyunmoon 6 hours ago
@ribasushi Still the same after updating to lotus version 0.4.4+git.4c5e9614 . Here's what I got for cat extern/filecoin-ffi/rust/rustc-target-features-optimized.json
Xeon Gold:
[
{
"rustc_target_feature": "+adx",
"check_cpu_for_feature": "adx"
},
{
"rustc_target_feature": "+sha",
"check_cpu_for_feature": "sha"
},
{
"rustc_target_feature": "+sse2",
"check_cpu_for_feature": "sse2"
},
{
"rustc_target_feature": "+avx2",
"check_cpu_for_feature": "avx2"
},
{
"rustc_target_feature": "+avx",
"check_cpu_for_feature": "avx"
},
{
"rustc_target_feature": "+sse4.2",
"check_cpu_for_feature": "sse4_2"
},
{
"rustc_target_feature": "+sse4.1",
"check_cpu_for_feature": "sse4_1"
}
][
{
"rustc_target_feature": "+adx",
"check_cpu_for_feature": "adx"
},
{
"rustc_target_feature": "+sha",
"check_cpu_for_feature": "sha"
},
{
"rustc_target_feature": "+sse2",
"check_cpu_for_feature": "sse2"
},
{
"rustc_target_feature": "+avx2",
"check_cpu_for_feature": "avx2"
},
{
"rustc_target_feature": "+avx",
"check_cpu_for_feature": "avx"
},
{
"rustc_target_feature": "+sse4.2",
"check_cpu_for_feature": "sse4_2"
},
{
"rustc_target_feature": "+sse4.1",
"check_cpu_for_feature": "sse4_1"
}
]
Xeon silver:
[
{
"rustc_target_feature": "+adx",
"check_cpu_for_feature": "adx"
},
{
"rustc_target_feature": "+sha",
"check_cpu_for_feature": "sha"
},
{
"rustc_target_feature": "+sse2",
"check_cpu_for_feature": "sse2"
},
{
"rustc_target_feature": "+avx2",
"check_cpu_for_feature": "avx2"
},
{
"rustc_target_feature": "+avx",
"check_cpu_for_feature": "avx"
},
{
"rustc_target_feature": "+sse4.2",
"check_cpu_for_feature": "sse4_2"
},
{
"rustc_target_feature": "+sse4.1",
"check_cpu_for_feature": "sse4_1"
}
][
{
"rustc_target_feature": "+adx",
"check_cpu_for_feature": "adx"
},
{
"rustc_target_feature": "+sha",
"check_cpu_for_feature": "sha"
},
{
"rustc_target_feature": "+sse2",
"check_cpu_for_feature": "sse2"
},
{
"rustc_target_feature": "+avx2",
"check_cpu_for_feature": "avx2"
},
{
"rustc_target_feature": "+avx",
"check_cpu_for_feature": "avx"
},
{
"rustc_target_feature": "+sse4.2",
"check_cpu_for_feature": "sse4_2"
},
{
"rustc_target_feature": "+sse4.1",
"check_cpu_for_feature": "sse4_1"
}
] (edited) -
There is currently a build requirement to compile the lotus daemon on the runtime platform (if you run on intel, you need to compile on Intel). This might extend so far as having to compile on the same processor model. There is new assembly in the bls code. Meaning that any instructions compiled into the binary needs to be present on the running processor. Generally this should just mean if you are running on Intel you need to compile on Intel. However, if your compiling CPU is sufficiently newer than your running processor you may have issues such as the above.