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: weird bug: dylib symbol loading hangs on pthread semaphore



On Fri, Dec 20, 2002 at 10:50:13AM -0700, Yarden Livnat wrote:
> The Problem:
> dlsym hangs. gdb reveal the program is waiting on
> #0 0x90034d68 in semaphore_wait_trap ()
> #1 0x9000a258 in pthread_mutex_lock ()

I've seen this problem before. In addition to the workarounds
suggested by Matt Austern, you should do the following:

(1) Register with the Apple Developer Connection and obtain
the latest December Developer Tools update from
http://connect.apple.com

(2) Set the environment DYLD_BIND_AT_LAUNCH variable to 1.
This trick was suggested to me by Peter O'Gorman, for working around
the exact same problem that you posted. See the thread:

http://lists.apple.com/mhonarc/darwin-development/msg16670.html

The bug which you described is the same as Radar bug 3012645.

--
Craig Rodrigues Distributed Systems and Logistics, Office 6/325A
email@hidden BBN Technologies, a Verizon company
(617) 873-4725 Cambridge, MA
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >weird bug: dylib symbol loading hangs on pthread semaphore (From: Yarden Livnat <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.