Mach is the name of the foundational component of the XNU kernel, common to macOS, iOS, tvOS and watchOS. Originally developed by CMU, it was adopted by NeXTSTEP, and integrated into macOS (formally known as Mac OS X) when the former merged with Apple. Though largely undocumented, Mach APIs make up the core of XNU's IPC, scheduling and memory management, supplementing the more widely known POSIX APIs offered in Darwin.
Questions tagged [mach]
159 questions
0
votes
1 answer
Darwin: Thread suspend/wakeup
Usage Cases:
Thread A: Please remove me from the active thread pool, Mr. Scheduler.
Thread B: Mr. Scheduler, please add Thread A to the active
thread pool, if he isn't there already
This is a fairly specific, and well-contained problem. Of…
user6582112
0
votes
0 answers
Dtrace invalid address error when extracting process command line
I'd like to have dtrace script that print new processes' cmdline and their matching parent name. i.e. : if I ran /Users/bla/myexec arg1 arg2 arg3 from bash
I will get something like :
parent is bash process is --> /Users/bla/myexec arg1 arg2…

Zohar81
- 4,554
- 5
- 29
- 82
0
votes
1 answer
iOS kernel development
What is the process (if any) to develop to iOS Mach (kernel) is there is something similar to Windows when you develop a driver and Microsoft Sign your driver?
can it be distributed via the app Store?
0
votes
1 answer
uuid.h in kernel space of OSX?
After I look around, I haven't find a built in function for UUID creation within OSX kernel space. (which is limited to Kernel.framework)
Are there any alternatives I could use? Or should I just use time hash (MD5/SHA1)?

Cai
- 3,609
- 2
- 19
- 39
0
votes
1 answer
iMacros "__undefined__" while trying to extract link using match keyword
I am trying to make this work. Saving links in a .txt file based on a word/keyword match.
here is a code :
TAG POS=1 TYPE=h3 ATTR=class:r extract=htm
SET resultLink EVAL("var s='{{!EXTRACT}}';var match txt=\mmorpg\")
set !extract…

STHoney
- 1
- 1
0
votes
0 answers
If memory used is higher then > perform function
I've been testing my app and currently at peak points it consumes more than 450 mb of ram.
The number is astoundingly big due to AppleMaps api. Simple zoom out eats around 150 mb of ram.
After browsing i've found out a tricky solution - which is…

David Robertson
- 1,561
- 4
- 19
- 41
0
votes
1 answer
Error when running IOS app on simulator in Xcode 6.3.1
When I try to run my IOS app on the simulator, I get an error saying Apple mach -0 linker error. It won't let me run it. When I try to run it on a device, It works fine. Does anyone know how to fix this?
user4565020
0
votes
1 answer
How to daemonize non-privileged script in OSX Yosemite 10.10.3+
For years we've had a process-monitoring/control script as part of our application. The default behavior of the script is to daemonize itself. Often the script is launched, of necessity, by non-privileged users. For reasons I'll not elaborate, we…

lcikgl
- 759
- 1
- 8
- 20
0
votes
1 answer
thread_info returns MACH_SEND_INVALID_DEST instead of KERN_SUCCESS
A call to thread_info now returns MACH_SEND_INVALID_DEST instead of KERN_SUCCESS and I don't yet understand what has caused this new circumstance.
What could be the reason for this return value. I pass a valid obtained from mach_thread_self() when…

Drux
- 11,992
- 13
- 66
- 116
0
votes
1 answer
The Default Freezer (iOS)
Levin had a chapter in his book Mac OS X and iOS internals: To the Apple's Core. related to The Default Freezer which can be used in Virtual Memory Management. It is stated that it is implemented in osfmk/vm/default_freezer.c
At the time of writing…

blaffie
- 505
- 1
- 10
- 32
0
votes
0 answers
IPC using NSConnection on OS X 10.6
I've developed two apps which communicate between each other using IPC.
Here is a code of server and client sides:
Server:
_distantObject = [[DistantObject alloc] init];
NSPort *serverPort = [NSMachPort port];
_proxyConnection =…

Serge
- 2,031
- 3
- 33
- 56
0
votes
1 answer
Mach-O-Link error
I'm currently working on an app that includes in app purchases.
Being tired of having to copy paste the same class files in all projects i decided to create a static library.
I followed several of the available guides on the web on how to create a…

tomvda
- 433
- 1
- 5
- 17
0
votes
0 answers
Breakpad in OSX: Inspection of crashed process failed
I'm trying to figure out why inspection of a crashed process is failing on OSX 10.8. I am adding Breakpad to the Mac version of a very large and complex professional application. I am currently using Breakpad r1035. Due to circumstances outside my…

Ben
- 163
- 1
- 7
0
votes
1 answer
Xcode *Apple Mach-0 Error
Got this error and I'm not sure what's the problem I haven't touched this project in a few weeks, any help is appreciated...
check here for the…
0
votes
1 answer
Years regex or match everything except years
BMW 1-й серии кузов F20 (2011-)
BMW X1 кузов Е84 2009-
BMW X3 кузов F25 2010-
BMW X5 кузов E70 2006-
BMW X6 кузов E71 2009-
CADILLAC CTS II 2007-
CADILLAC Escalade III 2007- / Chevrolet Tahoe кузов (GMT900) 2007-
CADILLAC SRX II 2010-
Chevrolet…

user2687340
- 19
- 3