[LLVMbugs] [Bug 17630] New: clang-format: Assertion `PPLevelBranchCount[PPBranchLevel] == 0' failed on MipsJITInfo.cpp
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 21 03:13:14 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17630
Bug ID: 17630
Summary: clang-format: Assertion
`PPLevelBranchCount[PPBranchLevel] == 0' failed on
MipsJITInfo.cpp
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: daniel.sanders at imgtec.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Steps to reproduce
==================
$ wget -O MipsJITInfo.cpp
'http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsJITInfo.cpp?revision=187032&view=co'
$ clang-format MipsJITInfo.cpp
Actual behaviour
================
Crash. Output below:
clang-format:
/home/das/mips/MSA/llvm/src/llvm/tools/clang/lib/Format/UnwrappedLineParser.cpp:488:
void clang::format::UnwrappedLineParser::parsePPEndIf(): Assertion
`PPLevelBranchCount[PPBranchLevel] == 0' failed.
0 libLLVMSupport.so 0x00007f947a4ba6de llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 libLLVMSupport.so 0x00007f947a4ba965
2 libLLVMSupport.so 0x00007f947a4ba3a0
3 libpthread.so.0 0x00007f947a18acb0
4 libc.so.6 0x00007f9478c51425 gsignal + 53
5 libc.so.6 0x00007f9478c54b8b abort + 379
6 libc.so.6 0x00007f9478c4a0ee
7 libc.so.6 0x00007f9478c4a192
8 libclangFormat.so 0x00007f9479f5410e
clang::format::UnwrappedLineParser::parsePPEndIf() + 268
9 libclangFormat.so 0x00007f9479f53b71
clang::format::UnwrappedLineParser::parsePPDirective() + 367
10 libclangFormat.so 0x00007f9479f5693c
clang::format::UnwrappedLineParser::readToken() + 200
11 libclangFormat.so 0x00007f9479f5686e
clang::format::UnwrappedLineParser::nextToken() + 96
12 libclangFormat.so 0x00007f9479f54894
clang::format::UnwrappedLineParser::parseStructuralElement() + 860
13 libclangFormat.so 0x00007f9479f533a3
clang::format::UnwrappedLineParser::parseLevel(bool) + 345
14 libclangFormat.so 0x00007f9479f53877
clang::format::UnwrappedLineParser::parseBlock(bool, bool, bool) + 219
15 libclangFormat.so 0x00007f9479f547d0
clang::format::UnwrappedLineParser::parseStructuralElement() + 664
16 libclangFormat.so 0x00007f9479f533a3
clang::format::UnwrappedLineParser::parseLevel(bool) + 345
17 libclangFormat.so 0x00007f9479f53217
clang::format::UnwrappedLineParser::parseFile() + 97
18 libclangFormat.so 0x00007f9479f52f3b
clang::format::UnwrappedLineParser::parse() + 175
19 libclangFormat.so 0x00007f9479f365d6
20 libclangFormat.so 0x00007f9479f38892
clang::format::reformat(clang::format::FormatStyle const&, clang::Lexer&,
clang::SourceManager&, std::vector<clang::CharSourceRange,
std::allocator<clang::CharSourceRange> >) + 132
21 clang-format 0x000000000040b93a
22 clang-format 0x000000000040c1c4
23 libc.so.6 0x00007f9478c3c76d __libc_start_main + 237
24 clang-format 0x000000000040add9
Aborted (core dumped)
Tested with r192963.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131021/4c37ea3e/attachment.html>
More information about the llvm-bugs
mailing list