Cannot dlopen a library linked with CoreFoundation in a non-main thread
One cannot call dlopen a library linked with CoreFoundation in a (sub) thread if CoreFoundation wasn't initialized in the first place. CFInitialize is called, apparently checks if the thread is the main thread and if it is not, crashes with a SIGTRAP.
Steps to Reproduce:
1. Create a shared library linked with CoreFoundation framework.
2. Create a program that is not linked with CoreFoundation and that dlopen-s the above-mentioned library in a thread.
This should open the library.
The process crashes.
This didn't occur with MacOS X 10.5.x.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!