search for: dl_error

Displaying 3 results from an estimated 3 matches for "dl_error".

Did you mean: ml_error
2007 Jul 20
0
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
...libraries. for (std::vector<lt_dlhandle>::iterator I = OpenedHandles.begin(), E = OpenedHandles.end(); I != E; ++I) { lt_ptr ptr = lt_dlsym(*I, symbolName); if (ptr) return ptr; } This needs to call lt_dlerror to clear any previous error, then call dl_sym, then call dl_error again to see if there's an error. The lack of this checking makes it miss the "return 0 without error" case. I'll fix this. Reid. > > It's clear dlsym() gives the required functionality; the layers of > wrapping on top of it present a broken interface. > &gt...
2007 Jul 20
2
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
Hi Reid, > > if ((err = dlerror())) { > > error("earlier undetected dlerror: %s\n", err); > > } > > p = dlsym(handle, sym); > > if ((err = dlerror())) { > > error("dlsym failed: %s\n", err); > > } > > No, you're not missing anything. The correct way to check for errors > is with
2014 Oct 06
3
[LLVMdev] [PATCH] ubsan: label messages as coming from ubsan
I've been working on adding UBSan support to CMake (so that errors found by it can be uploaded to CDash for viewing). One problem is that the message is very generic. The patch here addes 'UndefinedBehaviorSanitizer' to the message so that they may be detected more easily. If something else is wanted (such as the '===' lines from ASan or TSan to cope with things like printing