Skip to content

[AArch64][BOLT] llvm-bolt annotateCFIState Assertion `!StateStack.empty() && "corrupt CFI stack"' failed. #133501

@ilinpv

Description

@ilinpv

BOLT version: af15027 crashes on MySQL binary:
llvm-bolt mysqld -o mysqld-bolt -instrument --print-disasm -v 1 > mysqld.disasm

...
BOLT-WARNING: failed to post-process indirect branches for _ZL13get_next_timePK9Time_zonePllli13interval_type/1(*2)
BOLT-WARNING: failed to post-process indirect branches for _ZN24Field_iterator_table_ref13end_of_fieldsEv/1(*2)
BOLT-WARNING: failed to post-process indirect branches for _ZN16Event_parse_data13init_intervalEP3THD
llvm-bolt: llvm-project/bolt/lib/Core/BinaryFunction.cpp:2652: void llvm::bolt::BinaryFunction::annotateCFIState(): Assertion `!StateStack.empty() && "corrupt CFI stack"' failed.

Presumably that was caused by incorrect remember-restore CFI sequences in the binary.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions