- 
                Notifications
    
You must be signed in to change notification settings  - Fork 15.1k
 
Labels
crashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]tools:lli
Description
lli -no-process-syms -lljit-platform=Inactive -emulated-tls -jit-kind=orc-lazy test/ExecutionEngine/OrcLazy/emulated-tls.ll
The ExecutionEngine/OrcLazy/emulated-tls.ll test fails with a segfault in
llvm-project/llvm/tools/lli/lli.cpp
Lines 1086 to 1089 in eb71fdd
| ExitOnErr(J->getProcessSymbolsJITDylib()->define( | |
| orc::absoluteSymbols({{J->mangleAndIntern("__main"), | |
| {orc::ExecutorAddr::fromPtr(mingw_noop_main), | |
| JITSymbolFlags::Exported}}}))); | 
it appears that J->getProcessSymbolsJITDylib() returns NULL.  Should there be a check of that return value before calling ->define on it, or is there some other place that is ensuring this is not NULL on MinGW that should also be used on Cygwin?
Metadata
Metadata
Assignees
Labels
crashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]tools:lli