| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Nov 21, 2007, at 6:26 AM, Elango C wrote:
I am the wrong person to help with such issues. I'll only note that this code is not complete, so it does not allow me (at least) to answer the question I asked, whether the process is forking. [...]
Are you invoking fork at any point during the execution of your process, and invoking CF functionality in the fork child ? If you don't know whether your code is invoking fork, directly or indirectly, this dtrace invocation could help resolve this question: sudo dtrace -n 'syscall::fork:entry { printf("Executable '%s' with pid %d is forking", execname, pid); }' Run this in one terminal window, wait for dtrace to report it matched 1 probe, then get your code to run. The script should print lines like the following: ... 1 17594 fork:entry Executable login with pid 255 is forking 1 17594 fork:entry Executable zsh with pid 256 is forking 1 17594 fork:entry Executable sh with pid 259 is forking ... If you see your executable in there, that's your problem. If not, I'm unlikely to help any further. If you see your executable, printing the backtrace from dtrace should show you where the fork() occurs. sudo dtrace -n 'syscall::fork:entry / execname == "myexec" { ustack(); }' Eric
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden This email sent to email@hidden
| References: | |
| >Daemon/launchd crashes with EXC_BREAKPOINT (SIGTRAP) (From: "Elango C" <email@hidden>) | |
| >Re: Daemon/launchd crashes with EXC_BREAKPOINT (SIGTRAP) (From: Eric Gouriou <email@hidden>) | |
| >Re: Daemon/launchd crashes with EXC_BREAKPOINT (SIGTRAP) (From: "Elango C" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.