| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Greetings,
Brief intro:
The set up:
1) three small c++ files. see bellow
2) c++ -dynamiclib -o libfoo.dylib a.o b.o c.o
3) a small program (attached)
lib = dlopen( "libfoo.dylib", RTLD_LAZY | RTLD_GLOBAL);
dlsym( lib, symbol_name);
The Problem:
dlsym hangs. gdb reveal the program is waiting on
#0 0x90034d68 in semaphore_wait_trap ()
#1 0x9000a258 in pthread_mutex_lock ()
| References: | |
| >weird bug: dylib symbol loading hangs on pthread semaphore (From: Yarden Livnat <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.