Skip to content

SIGSEGV when compiled with clang-7.0.1 #1

@ZaWertun

Description

@ZaWertun

Backtrace:

#0  clang::Preprocessor::RemovePragmaHandler (this=0x55d0a0, Namespace=..., Handler=0x5aeb70)
    at /usr/src/debug/clang-7.0.1-1.fc29.x86_64/lib/Lex/Pragma.cpp:922
#1  0x00007ffff67b4f0e in clang::Parser::resetPragmaHandlers (this=this@entry=0x5adb10) at /usr/include/llvm/ADT/StringRef.h:85
#2  0x00007ffff67ed5a1 in clang::Parser::~Parser (this=0x5adb10, __in_chrg=<optimized out>)
    at /usr/src/debug/clang-7.0.1-1.fc29.x86_64/lib/Parse/Parser.cpp:418
#3  0x00007ffff67ed9ad in clang::Parser::~Parser (this=0x5adb10, __in_chrg=<optimized out>)
    at /usr/src/debug/clang-7.0.1-1.fc29.x86_64/lib/Parse/Parser.cpp:409
#4  0x00007ffff6740372 in std::default_delete<clang::Parser>::operator() (this=<synthetic pointer>, __ptr=0x5adb10)
    at /usr/include/c++/8/bits/unique_ptr.h:347
#5  std::unique_ptr<clang::Parser, std::default_delete<clang::Parser> >::~unique_ptr (this=<synthetic pointer>,
    __in_chrg=<optimized out>) at /usr/include/c++/8/bits/unique_ptr.h:274
#6  clang::ParseAST (S=..., PrintStats=<optimized out>, SkipFunctionBodies=<optimized out>) at /usr/include/c++/8/bits/unique_ptr.h:270
#7  0x00007ffff7ad03f6 in clang::FrontendAction::Execute (this=this@entry=0x50bff0)
    at /usr/src/debug/clang-7.0.1-1.fc29.x86_64/lib/Frontend/FrontendAction.cpp:910
#8  0x00007ffff7a8b386 in clang::CompilerInstance::ExecuteAction (this=this@entry=0x7fffffffc880, Act=...)
    at /usr/src/debug/clang-7.0.1-1.fc29.x86_64/lib/Frontend/CompilerInstance.cpp:961
#9  0x00007ffff7f6cd0e in clang::tooling::FrontendActionFactory::runInvocation (this=0x5075f0, Invocation=..., Files=0x5083a0,
    PCHContainerOps=..., DiagConsumer=0x0) at /usr/include/c++/8/bits/unique_ptr.h:326
#10 0x00007ffff7f64f26 in clang::tooling::ToolInvocation::runInvocation (this=0x7fffffffd580, BinaryName=<optimized out>,
    Compilation=0x509340, Invocation=std::shared_ptr<clang::CompilerInvocation> (empty) = {...},
    PCHContainerOps=std::shared_ptr<clang::PCHContainerOperations> (empty) = {...}) at /usr/include/c++/8/bits/shared_ptr_base.h:1154
#11 0x00007ffff7f68fa7 in clang::tooling::ToolInvocation::run (this=0x7fffffffd580) at /usr/include/c++/8/bits/shared_ptr_base.h:1374
#12 0x00007ffff7f6b721 in clang::tooling::ClangTool::run (this=<optimized out>, Action=<optimized out>)
    at /usr/src/debug/clang-7.0.1-1.fc29.x86_64/lib/Tooling/Tooling.cpp:496
#13 0x000000000041be32 in main (argc=8, argv=0x7fffffffd918) at src/bindgen.cpp:16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions