[PD-dev] Fork problem in os x 10.5.1?

David Plans Casal dataflow at davidcasal.com
Fri Jan 18 18:26:27 CET 2008


Hey

(sorry if multiple copies of this were sent, my mail client went  
apeshit)

Has anyone noticed yet that trying to build CVS version on 10.5.1 and  
running gives:

18/01/2008 11:23:23 [0x0-0x96096].org.puredata[17406] The process has  
forked and you cannot use this CoreFoundation functionality safely.  
You MUST exec().
18/01/2008 11:23:23 [0x0-0x96096].org.puredata[17406] Break on  
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__ 
() to debug.

Then pd crashes after about 5 minutes.

I read the following:

http://developer.apple.com/technotes/tn2005/tn2083.html

(search for 'listing 13')

and it looks like a daemon problem:

"Many Mac OS X frameworks do not work reliably if you call fork but do  
not call exec. The only exception is the System framework and, even  
there, the POSIX standard places severe constraints on what you can do  
between afork and an exec."

which can be solved by (apparently) adopting launchd or exec'ing  
yourself.

anyone looked at this?

autobuilds (extended) and source (CVS) build seem to have the same  
problem, as does miller's 0.41-0 test 11 (also 0.40-2).

d




More information about the Pd-dev mailing list