Skip to content
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

Error allocating remote code buffer #17

Open
hardik05 opened this issue Jul 27, 2021 · 1 comment
Open

Error allocating remote code buffer #17

hardik05 opened this issue Jul 27, 2021 · 1 comment

Comments

@hardik05
Copy link

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");
}

@ifratric
Copy link
Collaborator

ifratric commented Jan 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants