Issue |
128282
|
Summary |
Crash while trying to instrument a binary in AArch64 (Assertion `MO.isImm() && "did not expect relocated _expression_"'
|
Labels |
new issue
|
Assignees |
|
Reporter |
jcgomezv
|
BOLT-INFO: first alloc address is 0x400000
BOLT-INFO: creating new program header table at address 0x4600000, offset 0x4200000
BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation
BOLT-WARNING: 14 collisions detected while hashing binary objects. Use -v=1 to see the list.
BOLT-INFO: number of removed linker-inserted veneers: 0
BOLT-INFO: 0 out of 40985 functions in the binary (0.0%) have non-empty execution profile
BOLT-INSTRUMENTER: Number of indirect call site descriptors: 10117
BOLT-INSTRUMENTER: Number of indirect call target descriptors: 40048
BOLT-INSTRUMENTER: Number of function descriptors: 39960
BOLT-INSTRUMENTER: Number of branch counters: 336327
BOLT-INSTRUMENTER: Number of ST leaf node counters: 247871
BOLT-INSTRUMENTER: Number of direct call counters: 66698
BOLT-INSTRUMENTER: Total number of counters: 650896
BOLT-INSTRUMENTER: Total size of counters: 5207168 bytes (static alloc memory)
BOLT-INSTRUMENTER: Total size of string table emitted: 2310032 bytes in file
BOLT-INSTRUMENTER: Total size of descriptors: 37711472 bytes in file
BOLT-INSTRUMENTER: Profile will be saved to file /tmp/prof.fdata
BOLT-INFO: removed 4975 empty blocks
BOLT-INFO: UCE removed 62903 blocks and 5076444 bytes of code
BOLT-INFO: Starting stub-insertion pass
BOLT-INFO: Inserted 0 stubs in the hot area and 0 stubs in the cold area. Shared 0 times, iterated 1 times.
llvm-bolt: /home/gomezjc/OpenSource/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp:235: unsigned int {anonymous}::AArch64MCCodeEmitter::getMachineOpValue(const llvm::MCInst&, const llvm::MCOperand&, llvm::SmallVectorImpl<llvm::MCFixup>&, const llvm::MCSubtargetInfo&) const: Assertion `MO.isImm() && "did not expect relocated _expression_"' failed.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 llvm-bolt 0x0000000000e58b10
1 llvm-bolt 0x0000000000e56560
2 linux-vdso.so.1 0x0000ffff8fbb9834 __kernel_rt_sigreturn + 0
3 libc.so.6 0x0000ffff8f6d8834 gsignal + 180
4 libc.so.6 0x0000ffff8f6da140 abort + 352
5 libc.so.6 0x0000ffff8f6d1780
6 libc.so.6 0x0000ffff8f6d17fc
7 llvm-bolt 0x0000000000835990
8 llvm-bolt 0x00000000008373e4
9 llvm-bolt 0x0000000000ca178c
10 llvm-bolt 0x000000000160e968
11 llvm-bolt 0x0000000001610680
12 llvm-bolt 0x0000000001610ed8
13 llvm-bolt 0x0000000000f35bb8
14 llvm-bolt 0x0000000000f38a18
15 llvm-bolt 0x000000000040b428
16 libc.so.6 0x0000ffff8f6c5da4 __libc_start_main + 228
17 llvm-bolt 0x0000000000486510
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: llvm-bolt postgres -instrument -o postgres-inst
zsh: abort (core dumped) llvm-bolt postgres -instrument -o postgres-inst
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs