Skip to content

[Cygwin] lli crashes with --no-process-syms #143080

@jeremyd2019

Description

@jeremyd2019

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

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?

@mstorsjo

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashPrefer [crash-on-valid] or [crash-on-invalid]tools:lli

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions