[llvm-bugs] [Bug 42821] New: Segmentation fault when parsing invalid code containing mismatch of member function declaration and definition signature

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 30 01:03:19 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42821

            Bug ID: 42821
           Summary: Segmentation fault when parsing invalid code
                    containing mismatch of member function declaration and
                    definition signature
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sgiesecke at mozilla.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

#0 0x00007f41f9345fe4 PrintStackTraceSignalHandler(void*)
(/home/osboxes/.mozbuild/clang/bin/../lib/libLLVM-8.so+0x62cfe4)
 #1 0x00007f41f9343f0e llvm::sys::RunSignalHandlers()
(/home/osboxes/.mozbuild/clang/bin/../lib/libLLVM-8.so+0x62af0e)
 #2 0x00007f41f9346298 SignalHandler(int)
(/home/osboxes/.mozbuild/clang/bin/../lib/libLLVM-8.so+0x62d298)
 #3 0x00007f41fb85fe80 __restore_rt (/lib64/libpthread.so.0+0x12e80)
 #4 0x0000000001b85c00 clang::Lexer::SkipWhitespace(clang::Token&, char const*,
bool&) (/home/osboxes/.mozbuild/clang/bin/clang-8+0x1b85c00)
 #5 0x0000000001b8a5b3 clang::Lexer::LexTokenInternal(clang::Token&, bool)
(/home/osboxes/.mozbuild/clang/bin/clang-8+0x1b8a5b3)
 #6 0x0000000000c8b8fe (anonymous
namespace)::InclusionRewriter::Process(clang::FileID,
clang::SrcMgr::CharacteristicKind, clang::DirectoryLookup const*)
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xc8b8fe)
 #7 0x0000000000c8b7b8 (anonymous
namespace)::InclusionRewriter::Process(clang::FileID,
clang::SrcMgr::CharacteristicKind, clang::DirectoryLookup const*)
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xc8b7b8)
 #8 0x0000000000c8aeff clang::RewriteIncludesInInput(clang::Preprocessor&,
llvm::raw_ostream*, clang::PreprocessorOutputOptions const&)
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xc8aeff)
 #9 0x0000000000c88c71 clang::RewriteIncludesAction::ExecuteAction()
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xc88c71)
#10 0x0000000000aabb57 clang::FrontendAction::Execute()
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xaabb57)
#11 0x0000000000a529b8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xa529b8)
#12 0x0000000000b3b016
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/osboxes/.mozbuild/clang/bin/clang-8+0xb3b016)
#13 0x00000000005fc45d cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/osboxes/.mozbuild/clang/bin/clang-8+0x5fc45d)
#14 0x00000000005fa9e2 main
(/home/osboxes/.mozbuild/clang/bin/clang-8+0x5fa9e2)
#15 0x00007f41f888ff33 __libc_start_main (/lib64/libc.so.6+0x23f33)
#16 0x00000000005f7ecd _start
(/home/osboxes/.mozbuild/clang/bin/clang-8+0x5f7ecd)
clang-8: error: unable to execute command: Segmentation fault (core dumped)
clang-8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 8.0.0 (tags/RELEASE_800/final) (llvm/tags/RELEASE_800/final
356365)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/osboxes/.mozbuild/clang/bin

-- 
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/20190730/588325af/attachment.html>


More information about the llvm-bugs mailing list