Sadly, I don’t read Chinese, so I’m replying here based on a machine translation of your question. Note that you’re not stuck in mmap_locked, but rather dlmmap_locked. This is part of libffi, which is included in the Darwin open source. See here. This is gonna be tricky because, as explained in the comments for that code, its aim is to create a block of memory that’s both executable and writeable. Modern versions of macOS try really hard to prevent that, for obvious security reasons. However, in my experience such problems usually manifest as an error rather than with your app getting stuck. To work out what’s going on there I need a full spin dump. Generate this like so: % sudo spindump PID where PID is the process ID of your app. The spin dump will likely be too large to post here, so upload it to your favourite file sharing service and post a link. See tip 14 in Quinn’s Top Ten DevForums Tips for advice on how to post links. IMPORTANT Make sure the link doesn’t require me to log in. Share and Enjo
Topic:
Programming Languages
SubTopic:
General