Skip to content

LLDB 21.1.0 regression with call #155892

@patryk4815

Description

@patryk4815

I'm running lldb on Apple M4, but maybe same issue on linux.

Repro:

cat << EOF > hello.c
#include <stdio.h>
int main() {
    printf("hello");
    return 0;
}
EOF

zig cc  -g -O0 hello.c -o hello

lldb ./hello
lldb> b main
lldb> r
lldb> call (const void*)_dyld_get_shared_cache_range()

Regression example:

lldb> call (const void*)_dyld_get_shared_cache_range()
(const void *) $1 = 0x00000001818d0000

^ this command work fine in lldb 20.1.8

lldb> call (const void*)_dyld_get_shared_cache_range()
error: Couldn't apply expression side effects : Couldn't dematerialize a result variable: couldn't read its memory

^ same command crash on lldb 21.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions