Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 10.5 lauchctl unload causing process crash



Title: RE: 10.5 lauchctl unload causing process crash

My daemon basically sits in the background keeping a socket alive, to the outside world, and communicates with the outside world and my daemon agent.

There are actually two plists which are loaded/unloaded via the post and preflight executables in a mpkg file that is run.

the plist that is causing the error generation is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>com.mydaemon.agentmon</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Library/Application Support/MyDaemon/AgentMon</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>

Permissions is set to root but the actually command line is as follows: sudo launchctl unload /System/Library/LaunchDaemons/com.mydaemon.agentmon.plist

the error I see from my terminal window running as 'tail -f /var/log/system.log is:
Feb  6 10:30:24 Leopard-MacBook-Pro com.apple.launchd[1] (com.mydaemon.kusrtsk[1197]): Exited: Terminated
Feb  6 10:30:24 Leopard-MacBook-Pro com. mydaemon.agentmon[1180]: ClientGotData: Client 0x105940 died unexpectedly.
Feb  6 10:30:24 Leopard-MacBook-Pro sudo[1220]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/launchctl unload /System/Library/LaunchDaemons/com. mydaemon.agentmon.plist
Feb  6 10:30:24 Leopard-MacBook-Pro ReportCrash[1221]: Formulating crash report for process AgentMon[1180]
Feb  6 10:30:24 Leopard-MacBook-Pro com.apple.launchd[1] (com. mydaemon.agentmon[1180]): Stray process with PGID equal to this dead job: PID 1211 PPID 1 installer
Feb  6 10:30:24 Leopard-MacBook-Pro com.apple.launchd[1] (com. mydaemon.agentmon[1180]): Exited abnormally: Abort trap
Feb  6 10:30:24 Leopard-MacBook-Pro runner[1214]: *** Terminating app due to uncaught exception 'NSInvalidReceivePortException', reason: 'connection went invalid while waiting for a reply'
Feb  6 10:30:24 Leopard-MacBook-Pro runner[1214]: Stack: (\n    2522281528,\n    2466898075,\n    2522280987,\n    2522281050,\n    2440500542,\n    2440496761,\n    2522304010,\n    2522304114,\n    12410,\n    2440273194,\n    2521664954,\n    2521665683,\n    2440261920,\n    2440881777,\n    2521615125,\n    2521791617,\n    2521792632,\n    2440490021,\n    2441004333,\n    27820,\n    10514\n)
Feb  6 10:30:24 Leopard-MacBook-Pro ReportCrash[1221]: Saved crashreport to /Library/Logs/CrashReporter/AgentMon_2008-02-06-103024_Leopard-MacBook-Pro.crash using uid: 0 gid: 0, euid: 0 egid: 0
Feb  6 10:30:25 Leopard-MacBook-Pro ReportCrash[1221]: Formulating crash report for process runner[1214]
Feb  6 10:30:26 Leopard-MacBook-Pro ReportCrash[1221]: Saved crashreport to /Library/Logs/CrashReporter/runner_2008-02-06-103024_Leopard-MacBook-Pro.crash using uid: 0 gid: 0, euid: 0 egid: 0

When you say run it through the debugger I am not sure how I would do that. Do you have an example or some place I can go see/read a tutorial on this procedure?

Thanks in advance for any help
Carl

>What other information could I supply to  help with this problem?


"This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited."
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/installer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.