agiledragon / gomonkey

gomonkey is a library to make monkey patching in unit tests easy
MIT License
1.93k stars 179 forks source link

fix syscall.Mprotect panic: permission denied #41

Closed gbwllx closed 3 years ago

gbwllx commented 3 years ago

macos vm_protect

agiledragon commented 3 years ago

https://github.com/eisenxp/macos-golink-wrapper What do u think this solution?

gbwllx commented 3 years ago

https://github.com/eisenxp/macos-golink-wrapper What do u think this solution?

sorry I didn't try it, but I thought it's not as convenient

agiledragon commented 3 years ago

First of all, it doesn't matter! Although this method is more convenient, it is intrusive to the code and too complicated, which makes the subsequent code difficult to maintain. I will contact you individually and we will communicate further.