coolxv / cpp-stub

C++ unit test stub(not mock) and awesome.Surpported ISA x86,x86-64,arm64,arm32,arm thumb,mips64,riscv,loongarch64.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission to execute mprotect function is denied. Procedure

ZixiangMa12138 opened this issue · comments

In a qemu environment, when the stub::set function is executed, The permission of the internal call if (-1 == mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_WRITE | PROT_EXEC)) is denied. Procedure