You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the root cause of the issue lies in the ctx address selected by mmap. When the system allocates in a crowded address space, this significantly reduces the likelihood of successfully allocating near the ctx address.
A possible solution is requesting a large block of memory to ensure ample free address space, then unmap that area and use its address to request memory. This approach might introduce some race condition issues. A more comprehensive solution is to mmap a large block of memory and then allocate new memory within it using remap / fixed mmap, involving considerable modifications. Let me give it a try.
When I tried to perform tracing by stalker like itrace, I got this error.
It works fine on a single function, but when I use it to trace a heavily obfuscated algorithm, the exception occurs.
The issue seems to be that the stalker is unable to allocate memory within a ±2GB address space.
However, my code would only cause the rewritten code size to expand by several times.
I checked the maps file, and many libraries were mapped near that address, which might be the reason why the stalker was unable to allocate space.
Is there a way to control the code generation location of the stalker to make it start at a less crowded memory position?
map:
maps.txt
The text was updated successfully, but these errors were encountered: