Skip to content

llvm-bolt instrument appears Segmentation fault (core dumped) #136802

Open
@qianwindz

Description

@qianwindz

Testing a simple SO library on arm64 resulted in the following error:
Image
The code for this library is as follows:
#include

extern "C" {

attribute((visibility("default")))
int32_t add(int32_t a, int32_t b) {
return a + b;
}

attribute((visibility("default")))
int32_t multiply(int32_t x, int32_t y) {
return x * y;
}S

} // extern "C"
The libtestdemo format is:
ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[md5/uuid]=2d020c716e8f70c88d6cf7306c2c9edd, with debug_info, not stripped
llvm-bolt version is:
Image
the clang compiler version is:
clang-r522817

Metadata

Metadata

Assignees

No one assigned

    Labels

    BOLTcrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions