[llvm-dev] llvm pass / LLVMCore conflicts with opengles libLLVMContainer.dylib on iOS

Ramakrishna Mallireddy via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 17 14:42:59 PDT 2016


I am trying to use clang/llvm to generate llvm IR on IOS.
but libLLVMContainer.dylib of opengles.framework conflicts with the llvm
code I am using, a sample run crash the iOS simulator before anything
loaded,

here is the backtrace:

*(lldb) **bt all*

* thread #1: tid = 0xad480, 0x0d534ddb
libsystem_pthread.dylib`_pthread_rwlock_check_init + 11, queue =
'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)

  * frame #0: 0x0d534ddb libsystem_pthread.dylib`_pthread_rwlock_check_init
+ 11

    frame #1: 0x0d534af0 libsystem_pthread.dylib`_pthread_rwlock_lock + 25

    frame #2: 0x0d539fcc
libsystem_pthread.dylib`pthread_rwlock_wrlock$UNIX2003 + 23

    frame #3: 0x12443f13
libLLVMContainer.dylib`llvm::sys::RWMutexImpl::writer_acquire() + 19

    frame #4: 0x1239eb12
libLLVMContainer.dylib`llvm::PassRegistry::addRegistrationListener(llvm::PassRegistrationListener*)
+ 34

    frame #5: 0x1239a67e
libLLVMContainer.dylib`llvm::PassNameParser::PassNameParser() + 78

    frame #6: 0x12391ad3
libLLVMContainer.dylib`_GLOBAL__sub_I_LegacyPassManager.cpp + 1299

    frame #7: 0x09c5020f

    frame #8: 0x09c50368

    frame #9: 0x09c4ba01

    frame #10: 0x09c4b994

    frame #11: 0x09c4b994

    frame #12: 0x09c4b994

    frame #13: 0x09c4b994

    frame #14: 0x09c4b994

    frame #15: 0x09c4b994

    frame #16: 0x09c4b994

    frame #17: 0x09c4b994

    frame #18: 0x09c4ad54

    frame #19: 0x09c4ade3

    frame #20: 0x09c40c50

    frame #21: 0x09c442c7

    frame #22: 0x09c401f9

    frame #23: 0x8fe89118 dyld`dyld::useSimulatorDyld(int, macho_header
const*, char const*, int, char const**, char const**, char const**,
unsigned long*) + 1053

    frame #24: 0x8fe881f2 dyld`dyld::_main(macho_header const*, unsigned
long, int, char const**, char const**, char const**, unsigned long*) + 202

    frame #25: 0x8fe84232 dyld`dyldbootstrap::start(macho_header const*,
int, char const**, long, macho_header const*, unsigned long*) + 428

    frame #26: 0x8fe84047 dyld`_dyld_start + 71

*(lldb) *


How to resolve this conflict. any ideas please let me know.


Thanks

Ramakrishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160318/178e6ca3/attachment.html>


More information about the llvm-dev mailing list