On 15 Jun 2010, at 01:02, Riccardo Mottola wrote:
> mprotect() wants a page-aligned address on Solaris.
> - valloc instead of malloc, valloc just one page
> - mprotect exactly that page, not size
> - before freeing, make the page writable again.
I went through this code with Riccardo last night.
Hi,
we discussed this yesterday, this is what I ended up with.
A breakpoint on NSLog will tell you, but this is most likely in NSInvocation's
code for protecting the buffer containing the trampoline, making sure that it
is not both writable and executable. It is possible that your version of
On 14 Jun 2010, at 23:06, Riccardo Mottola wrote:
> 2010-06-15 00:04:51.596 GWorkspace[12031] Failed to protect memory as
> executable: Invalid argument
A breakpoint on NSLog will tell you, but this is most likely in NSInvocation's
code for protecting the buffer containing the trampoline, maki
Hi,
on Solaris 2.7, when I start about any application I get this log:
2010-06-15 00:04:51.596 GWorkspace[12031] Failed to protect memory as
executable: Invalid argument
many times.
Most applications do run afterwards, others crash. Where could be the
problem?
Riccardo
__