capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.64k stars 1.56k forks source link

Missing `X86_INS_ENDBR64` in `libcapstone-dev` when using github action #1922

Open syheliel opened 2 years ago

syheliel commented 2 years ago

I have a project relies on capstone. I install the capstone through libcapstone-dev. But X86_INS_ENDBR64 is missing in usr/include/capstone/x86.c. You can check my github action log in https://github.com/syheliel/StochFuzzplusplus/actions/runs/3168954801/jobs/5160525653, the print keystone section(sorry for typo) print the content of usr/include/capstone/x86.c.

syheliel commented 2 years ago

By the way, I can find it in my local machine and in docker. I have no idea why it is missing in github action image

tmfink commented 2 years ago

The files in /usr/include/ are provided by your operating system packages. Perhaps the github action is using an older OS (Ubuntu 20.04) that is using an older version of capstone. Did you try using a more recent OS (e.g. Ubuntu 22.04)? What OS is in your local machine/docker? Does your code compile there? Did you include the necessary header.

syheliel commented 2 years ago

my local machine and docker both using ubuntu 22.04 and the github action failed in both of ubuntu 20 and 22. How can I get some debug information? like capstone's version or sth else.