-
Notifications
You must be signed in to change notification settings - Fork 56
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
'Illegal instruction' error on x86_64 CentOS 7.9 #110
Comments
I have tried version 5.4.6 and got the same error. I also tried original hyperscan 5.4.0 and it's ok. |
Hi, could you please send the cmake output? it would help to know what is the misconfiguration here. My guess is that AVX512 is auto-enabled, but the AMD chips don't support it hence the SIGILL. |
@markos , thanks for you help! The cmake output is as bellow: CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Update the VERSION argument value or use a ... suffix to tell -- The C compiler identification is GNU 11.1.0 File:
This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done |
ok, so it's not what I thought, AVX512 is not enabled, would you mind running a debug version of the failing binary inside gdb and telling me where it fails? |
gdb bt is as follows: Program received signal SIGILL, Illegal instruction. |
I found a interesting phenomenon, that if I rerun cmake and make, the new compiled binary will run ok without any error. |
@markos can you give me some suggestion? |
@xiaokang if it doesn't happen the second time then it's most definitely a misconfiguration issue. I cannot reproduce this here. |
@markos What I mean is that for the first time run cmake and make the error appears and for the second time the error disappears. The difference between the first time and second time is reproduced in my env. |
Hi, could you please try with latest develop branch on a clean environment? And paste the exact cmake commands? |
Hi @xiaokang, could you please try with 5.4.8 or recent develop? I cannot reproduce this behaviour on my my system, or at least paste the exact cmake command used? |
Closing as unreproducible. |
I got a error 'Illegal instruction' to run unit test and example on x86_64 CentOS 7.9. It's appreciated to get help from the community.
build
wget https://github.com/VectorCamp/vectorscan/archive/refs/tags/vectorscan/5.4.7.zip
unzip 5.4.7.zip
cd vectorscan-vectorscan-5.4.7
mkdir build
cd build
PATH=$RAGEL_PATH:$PATH cmake -DBOOST_ROOT=$BOOST_SOURCE ..
make
run
./bin/unit-hyperscan
Illegal instruction
./bin/simplegrep cpp Makefile
Illegal instruction
Env
Using built-in specs.
COLLECT_GCC=/home/xiaokang/opt/ldb/bin/gcc-11
COLLECT_LTO_WRAPPER=/mnt/disk3/xiaokang/opt/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.1.0-1ubuntu1
18.04.1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --disable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-YRKbe7/gcc-11-11.1.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-YRKbe7/gcc-11-11.1.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu18.04.1)Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (Ubuntu 11.1.0-1ubuntu1
processor : 0
vendor_id : AuthenticAMD
cpu family : 23
model : 49
model name : AMD EPYC 7K62 48-Core Processor
stepping : 0
microcode : 0x1000065
cpu MHz : 2595.124
cache size : 512 KB
physical id : 0
siblings : 48
core id : 0
cpu cores : 24
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 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm art rep_good nopl extd_apicid amd_dcm eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext retpoline_amd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 arat
bogomips : 5190.24
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management:
The text was updated successfully, but these errors were encountered: