clang-format terminated by signal 11
[root@dev /root]# find ./mysql-server-8032-format-test/ -name ".cc" -exec clang-format -i {} ;
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: clang-format -i ./mysql-server-8032-format-test/plugin/audit_null/audit_null.cc
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 libLLVM-17.so 0x00007fe04a3d75dc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 60
1 libLLVM-17.so 0x00007fe04a3d5184 llvm::sys::RunSignalHandlers() + 68
2 libLLVM-17.so 0x00007fe04a3d5c95
3 libpthread.so.0 0x00007fe054714c20
4 libclang-cpp.so.17 0x00007fe050fbeef0
5 libclang-cpp.so.17 0x00007fe053926b32 clang::format::WhitespaceManager::alignArrayInitializers(unsigned int, unsigned int) + 114
6 libclang-cpp.so.17 0x00007fe053926c66 clang::format::WhitespaceManager::alignArrayInitializers() + 198
7 libclang-cpp.so.17 0x00007fe05392ba74 clang::format::WhitespaceManager::generateReplacements() + 324
8 libclang-cpp.so.17 0x00007fe0538a9475
9 libclang-cpp.so.17 0x00007fe0538e628e clang::format::TokenAnalyzer::process(bool) + 2718
10 libclang-cpp.so.17 0x00007fe05389f0f7
11 libclang-cpp.so.17 0x00007fe05389f15b
12 libclang-cpp.so.17 0x00007fe0538ab6a1 clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRefclang::tooling::Range, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus) + 2289
13 libclang-cpp.so.17 0x00007fe0538accaa clang::format::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRefclang::tooling::Range, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 58
14 clang-format 0x000055cb75f7c618
15 clang-format 0x000055cb75f75fe8
16 libc.so.6 0x00007fe048c97493 __libc_start_main + 243
17 clang-format 0x000055cb75f7649e
find: ‘clang-format’ terminated by signal 11
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: clang-format -i ./mysql-server-8032-format-test/router/src/harness/tests/test_vt100.cc
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 libLLVM-17.so 0x00007efd0eb6d5dc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 60
1 libLLVM-17.so 0x00007efd0eb6b184 llvm::sys::RunSignalHandlers() + 68
2 libLLVM-17.so 0x00007efd0eb6bc95
3 libpthread.so.0 0x00007efd18eaac20
4 libclang-cpp.so.17 0x00007efd15754ef0
5 libclang-cpp.so.17 0x00007efd180bcb32 clang::format::WhitespaceManager::alignArrayInitializers(unsigned int, unsigned int) + 114
6 libclang-cpp.so.17 0x00007efd180bcc66 clang::format::WhitespaceManager::alignArrayInitializers() + 198
7 libclang-cpp.so.17 0x00007efd180c1a74 clang::format::WhitespaceManager::generateReplacements() + 324
8 libclang-cpp.so.17 0x00007efd1803f475
9 libclang-cpp.so.17 0x00007efd1807c28e clang::format::TokenAnalyzer::process(bool) + 2718
10 libclang-cpp.so.17 0x00007efd180350f7
11 libclang-cpp.so.17 0x00007efd1803515b
12 libclang-cpp.so.17 0x00007efd180416a1 clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRefclang::tooling::Range, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 2289
13 libclang-cpp.so.17 0x00007efd18042caa clang::format::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRefclang::tooling::Range, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 58
14 clang-format 0x0000557ecd624618
15 clang-format 0x0000557ecd61dfe8
16 libc.so.6 0x00007efd0d42d493 __libc_start_main + 243
17 clang-format 0x0000557ecd61e49e
find: ‘clang-format’ terminated by signal 11
[root@dev /root]# clang-format --version clang-format version 17.0.6 (Red Hat 17.0.6-1.module_el8+767+9fa966b8)
[root@dev /root]# cat .clang-format
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveShortCaseStatements:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCaseColons: false
AlignEscapedNewlines: DontAlign
AlignOperands: Align
AlignTrailingComments:
Kind: Never
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros:
- __capability
BinPackArguments: false
BinPackParameters: false
BitFieldColonSpacing: Both
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakAfterAttributes: Never
BreakAfterJavaFieldAnnotations: false
BreakArrays: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Attach
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit: 128
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 3
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: None
IndentRequiresClause: true
IndentWidth: 8
IndentWrappedFunctionNames: false
InsertBraces: false
InsertNewlineAtEOF: false
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
BinaryMinDigits: 0
Decimal: 0
DecimalMinDigits: 0
Hex: 0
HexMinDigits: 0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
KeepEmptyLinesAtEOF: false
LambdaBodyIndentation: Signature
LineEnding: DeriveLF
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: NextLine
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Middle
PPIndentWidth: -1
QualifierAlignment: Leave
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
- ParseTestProto
- ParsePartialTestProto
CanonicalDelimiter: pb
BasedOnStyle: google
ReferenceAlignment: Pointer
ReflowComments: false
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: Never
SortJavaStaticImport: Before
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInContainerLiterals: true
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParens: Never
SpacesInParensOptions:
InCStyleCasts: false
InConditionalStatements: false
InEmptyParentheses: false
Other: false
SpacesInSquareBrackets: false
Standard: c++17
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never
VerilogBreakBetweenInstancePorts: true
WhitespaceSensitiveMacros:
- BOOST_PP_STRINGIZE
- CF_SWIFT_NAME
- NS_SWIFT_NAME
- PP_STRINGIZE
- STRINGIZE
...
when i install the llvm-symbolizer,error is:
[root@dev /root]# find ./mysql-server-8032-format-test/ -name "*.cc" -exec clang-format -i {} ;
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: clang-format -i ./mysql-server-8032-format-test/plugin/audit_null/audit_null.cc
#0 0x00007f9a2df1a5dc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM-17.so+0xa6f5dc)
#1 0x00007f9a2df18184 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-17.so+0xa6d184)
#2 0x00007f9a2df18c95 (/lib64/libLLVM-17.so+0xa6dc95)
#3 0x00007f9a38257c20 __restore_rt sigaction.c:0:0
#4 0x00007f9a34b01ef0 (/lib64/libclang-cpp.so.17+0x8f8ef0)
#5 0x00007f9a37469b32 clang::format::WhitespaceManager::alignArrayInitializers(unsigned int, unsigned int) (/lib64/libclang-cpp.so.17+0x3260b32)
#6 0x00007f9a37469c66 clang::format::WhitespaceManager::alignArrayInitializers() (/lib64/libclang-cpp.so.17+0x3260c66)
#7 0x00007f9a3746ea74 clang::format::WhitespaceManager::generateReplacements() (/lib64/libclang-cpp.so.17+0x3265a74)
#8 0x00007f9a373ec475 (/lib64/libclang-cpp.so.17+0x31e3475)
#9 0x00007f9a3742928e clang::format::TokenAnalyzer::process(bool) (/lib64/libclang-cpp.so.17+0x322028e)
#10 0x00007f9a373e20f7 (/lib64/libclang-cpp.so.17+0x31d90f7)
#11 0x00007f9a373e215b (/lib64/libclang-cpp.so.17+0x31d915b)
#12 0x00007f9a373ee6a1 clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus*) (/lib64/libclang-cpp.so.17+0x31e56a1)
#13 0x00007f9a373efcaa clang::format::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::StringRef, clang::format::FormattingAttemptStatus*) (/lib64/libclang-cpp.so.17+0x31e6caa)
#14 0x000056111b4ce618 (/usr/bin/clang-format+0x10618)
#15 0x000056111b4c7fe8 (/usr/bin/clang-format+0x9fe8)
#16 0x00007f9a2c7da493 __libc_start_main (/lib64/libc.so.6+0x23493)
#17 0x000056111b4c849e (/usr/bin/clang-format+0xa49e)
find: ‘clang-format’ terminated by signal 11
Please attach the audit_null.cc file.