[Unity]v8 10.6在mac下运行报v8::base::OS::SetPermissions失败
chexiongsheng opened this issue · comments
chexiongsheng commented
启动时崩溃
# Check failed: 12 == (*__error()).
#
#
#
#FailureMessage Object: 0x7ff7b6b56f50
==== C stack trace ===============================
0 libpuerts.dylib 0x000000010f687123 v8::base::debug::StackTrace::StackTrace() + 19
1 libpuerts.dylib 0x000000010f68dcfb v8::platform::(anonymous namespace)::PrintStackTrace() + 27
2 libpuerts.dylib 0x000000010f67ab83 V8_Fatal(char const*, ...) + 323
3 libpuerts.dylib 0x000000010f685a59 v8::base::OS::SetPermissions(void*, unsigned long, v8::base::OS::MemoryPermission) + 249
4 libpuerts.dylib 0x000000010fabd487 v8::internal::MemoryAllocator::SetPermissionsOnExecutableMemoryChunk(v8::internal::VirtualMemory*, unsigned long, unsigned long, unsigned long) + 199
5 libpuerts.dylib 0x000000010fabd239 v8::internal::MemoryAllocator::AllocateAlignedMemory(unsigned long, unsigned long, unsigned long, v8::internal::Executability, void*, v8::internal::VirtualMemory*) + 265
6 libpuerts.dylib 0x000000010fabd632 v8::internal::MemoryAllocator::AllocateUninitializedChunk(v8::internal::BaseSpace*, unsigned long, v8::internal::Executability, v8::internal::PageSize) + 178
7 libpuerts.dylib 0x000000010fabde4d v8::internal::MemoryAllocator::AllocatePage(v8::internal::MemoryAllocator::AllocationMode, v8::internal::Space*, v8::internal::Executability) + 205
和dylib权限有关
找到这的相关问题:microsoft/ClearScript#483
按其给出的方案执行如下命令问题解决:
codesign --sign - --options linker-signed --force libpuerts.dylib