Open sendaoYan opened 1 year ago
Thank you for your bug report!
clang_delta: ReturnVoid.cpp:236: bool RVASTVisitor::rewriteFuncDecl(FunctionDecl *): Assertion `Offset >= 0' failed.
Program received signal SIGSEGV, Segmentation fault.
0x0000fffff2efd3a0 in (anonymous namespace)::RopePieceBTreeNode::erase(unsigned int, unsigned int) () from /home/yansendao/tone/run/csmith/creduce-binary/libexec/libclang-cpp.so.16
(gdb) bt
#0 0x0000fffff2efd3a0 in (anonymous namespace)::RopePieceBTreeNode::erase(unsigned int, unsigned int) () from /home/yansendao/tone/run/csmith/creduce-binary/libexec/libclang-cpp.so.16
#1 0x0000fffff2f0170c in clang::Rewriter::ReplaceText(clang::SourceLocation, unsigned int, llvm::StringRef) () from /home/yansendao/tone/run/csmith/creduce-binary/libexec/libclang-cpp.so.16
#2 0x0000aaaaadbcbc38 in RVASTVisitor::rewriteFuncDecl(clang::FunctionDecl*) ()
#3 0x0000aaaaadbcbd50 in RVASTVisitor::VisitFunctionDecl(clang::FunctionDecl*) ()
#4 0x0000aaaaadccc774 in clang::RecursiveASTVisitor<RVASTVisitor>::WalkUpFromFunctionDecl(clang::FunctionDecl*) ()
#5 0x0000aaaaadc57228 in clang::RecursiveASTVisitor<RVASTVisitor>::TraverseFunctionDecl(clang::FunctionDecl*) ()
#6 0x0000aaaaadbcdc20 in clang::RecursiveASTVisitor<RVASTVisitor>::TraverseDecl(clang::Decl*) ()
#7 0x0000aaaaadcb2c00 in clang::RecursiveASTVisitor<RVASTVisitor>::TraverseDeclContextHelper(clang::DeclContext*) ()
#8 0x0000aaaaadc5be30 in clang::RecursiveASTVisitor<RVASTVisitor>::TraverseTranslationUnitDecl(clang::TranslationUnitDecl*) ()
#9 0x0000aaaaadbce220 in clang::RecursiveASTVisitor<RVASTVisitor>::TraverseDecl(clang::Decl*) ()
#10 0x0000aaaaadbcb900 in ReturnVoid::HandleTranslationUnit(clang::ASTContext&) ()
#11 0x0000fffff1733038 in clang::ParseAST(clang::Sema&, bool, bool) () from /home/yansendao/tone/run/csmith/creduce-binary/libexec/libclang-cpp.so.16
#12 0x0000aaaaae997e58 in TransformationManager::doTransformation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int&) ()
#13 0x0000aaaaaaca034c in main ()
creduce_bug_003.zip creduce_bug_004.zip creduce_bug_005.zip creduce_bug_006.zip creduce_bug_000.zip creduce_bug_001.zip creduce_bug_002.zip