unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.33k stars 1.31k forks source link

page_collection_lock causing a crash #1946

Open IntThree opened 2 months ago

IntThree commented 2 months ago

page_trylock_add(uc, set, tb->page_addr[0]) tb Indicates inaccessible memory unknown reason 无效

wtdcode commented 2 months ago

Could you post a reproduction?

IntThree commented 2 months ago

"I'm not exactly sure, but the issue may arise from frequent entry and exit of the simulator, and the addresses of entry and exit locations are the same."

IntThree commented 2 months ago

"In every 'uc_emu_start' call to enter the emulator, executing 'uc_ctl_flush_tb' resolves the issue. Please check. I'm using a complex sample, so reproducing the problem may not be possible."