paoloshasta / shasta

De novo assembly from Oxford Nanopore reads.
https://paoloshasta.github.io/shasta/
Other
66 stars 9 forks source link

Illegal instruction error #5

Closed WenyuLiang closed 1 year ago

WenyuLiang commented 1 year ago

Hi Paolo, After I upgraded Shasta to 0.11.0, it always gives me the same error even if I use exactly same parameters as Shasta 0.10.0. New configurations also give the same error.

Screenshot 2022-11-07 at 11 10 12 AM
paoloshasta commented 1 year ago

What Linux distribution/version are you using? Is this an x86_64 or ARM machine? Please also attach the output of the following two commands:

WenyuLiang commented 1 year ago

NAME="Ubuntu" VERSION="20.04

Linux wenyu1 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

processor : 0 vendor_id : AuthenticAMD cpu family : 21 model : 2 model name : AMD Opteron 63xx class CPU stepping : 0 microcode : 0x1000065 cpu MHz : 2299.998 cache size : 512 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 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 syscall nx pdpe1gb lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c hypervisor lahf_lm abm sse4a misalignsse 3dnowprefetch xop fma4 tbm vmmcall arat bugs : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass bogomips : 4599.99 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management:

paoloshasta commented 1 year ago

Thank you. Please also attach the last few lines of standard output, and the last few lines of performance.log in the assembly directory, if present.

paoloshasta commented 1 year ago

Does the same crash occur without --memoryMode filesystem --memoryBacking 2M? I am trying to narrow down the problem, in the hope that I can reproduce it.

paoloshasta commented 1 year ago

I would like to know the opcode of the offending instruction. Can you see if any error messages are generated on /var/log/syslog or /var/log/dmesg when the crash occurs? If so, please attach them here.

paoloshasta commented 1 year ago

Does the last line of performance.log say assembleMarkerGraqhEdges begins following a timestamp? If so, I have been able to reproduce the problem on an old laptop.

paoloshasta commented 1 year ago

I attached here a test executable with a tentative fix that eliminated the crash for me. Please let me know if this works for you. If it does, I will create soon a new Shasta release with the fix.The attached executable is gzipped - you will have to gunzip it before running it, of course.

The Shasta 0.11.0 executable uses some processor instructions that are missing in older processors such as yours, and my old laptop. This was due to an error in the Shasta build process which was recently introduced, and which I now fixed.

If this executable does not fix the problem for you, please provide the information I requested in my last few posts, and we can continue from there.

shasta.gz

paoloshasta commented 1 year ago

This should be fixed by commit 055636a2fafad7dbade600186ec31a48a9cd3d52. Awaiting confirmation from @WenyuLiang.

WenyuLiang commented 1 year ago

Hi Paolo, sorry for the late reply. The shasta.gz works on my machine! Thanks for your help.

paoloshasta commented 1 year ago

Thank you for confirming this, and for reporting the problem in the first place. I also fixed another bug (issue #4), so I will probably create a new release with these two fixes.

paoloshasta commented 1 year ago

This fixed in Shasta 0.11.1.