[cfe-dev] Assertion violations

John McCall rjmccall at apple.com
Wed Aug 18 23:23:00 PDT 2010


On Aug 18, 2010, at 10:01 PM, Roberto Bagnara wrote:
> Testing clang against GCC's test suite results into several
> violated assertions.  Are you interested in receiving bug
> reports for those?

Yes, please!  We're always interested in fixing assertions.

John.

> 
> *******************************************************************
> c99-hexfloat-3.c
> *******************************************************************
> [Thread 1] APFloat.cpp:2248: llvm::APFloat::opStatus llvm::APFloat::convertFromHexadecimalString(llvm::StringRef, llvm::APFloat::roundingMode): Assertion failed: (dot == end || p - begin != 1) && "Significand has no digits"
> Stack dump:
> 0.      c99-hexfloat-3.c:16:13: current parser token '0x.p0'
> Aborted (core dumped)
> 
> *******************************************************************
> float-range-1.c
> *******************************************************************
> [Thread 1] APFloat.cpp:161: int readExponent(const char*, const char*): Assertion failed: p == end && "Invalid exponent in exponent"
> Stack dump:
> 0.      float-range-1.c:12:13: current parser token '1e+100000000f'
> 1.      float-range-1.c:11:1: parsing function body 'f'
> 2.      float-range-1.c:11:1: in compound statement ('{}')
> Aborted (core dumped)
> 
> *******************************************************************
> funcdef-var-1.c
> *******************************************************************
> [Thread 1] AttrImpl.cpp:22: clang::AttrWithString::AttrWithString(clang::attr::Kind, clang::ASTContext&, llvm::StringRef): Assertion failed: !s.empty()
> Stack dump:
> 0.      funcdef-var-1.c:7:37: current parser token ';'
> Aborted (core dumped)
> 
> *******************************************************************
> pr30805.c
> *******************************************************************
> [Thread 1] TokenLexer.cpp:388: bool clang::TokenLexer::PasteTokens(clang::Token&): Assertion failed: !isAtEnd() && "No token on the RHS of a paste operator!"
> Stack dump:
> 0.      pr30805.c:6:3: current parser token '1'
> Aborted (core dumped)
> 
> -- 
> Prof. Roberto Bagnara
> Applied Formal Methods Laboratory
> Department of Mathematics, University of Parma, Italy
> http://www.cs.unipr.it/~bagnara/
> mailto:bagnara at cs.unipr.it
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list