Post

Replies

Boosts

Views

Activity

xpc connection event handler not being called with XPC_ERROR_CONNECTION_INVALID
Hi, I'm working on creating an xpc service, using the C APIs (gets launched from launchd via plist) and an application that wants to use this service. Generally it works fine, communication is proper and as expected. However, in case the service's plist has not been installed in /Library/LaunchDaemons, the client gets stuck! Neither the event handler (set with xpcconnectionseteventhandler) nor the reply block provided to xpcconnectionsendmessagewithreply get called. If I use xpcconnectionsendmessagewithreplysync() - it never returns! So how is a client to know that the service is not available in this case? My assumption was that in such a case the event handler would be called with XPCERRORCONNECTIONINVALID. Thanks in advance! Devendra.
3
0
1.4k
Aug ’20
Debugging kernel code
I've noticed that breakpoints don't always work when debugging kernel code (kexts). Is there something special that needs to be done for them to work reliably? Also, sometimes the target hangs while debugging. The panic log says something like "mpkdpenter() timed-out during locked wait after NMI;" "expected 8 acks bug received 7 ..." boot-args does include watchdog=0 and pmuflags=1 This is on Big Sur. Thanks. Devendra.
2
0
791
Jun ’20