Jackalope icon indicating copy to clipboard operation
Jackalope copied to clipboard

Error allocating remote code buffer

Open hardik05 opened this issue 2 years ago • 1 comments

Getting this error after few hours: [-] PROGRAM ABORT : Error allocating remote code buffer Location : TinyInst::InstrumentModule(), D:\Research\Jackalope\TinyInst\tinyinst.cpp:1685

looks like its not able to allocate memory: module->instrumented_code_remote = (char *)RemoteAllocateNear((uint64_t)module->min_address, (uint64_t)module->max_address, module->instrumented_code_size, READEXECUTE);

if (!module->instrumented_code_remote) { // TODO also try allocating after the module FATAL("Error allocating remote code buffer\n"); }

hardik05 avatar Jul 27 '21 03:07 hardik05

If the target is heavy on initialization, which uses up memory needed by the code buffer, -instrument_modules_on_load could help.

ifratric avatar Jan 05 '22 16:01 ifratric