Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

[3.7] runToolOnCode.FindsNoTopLevelDeclOnEmptyCode function unit test fails in mingw-w64 #24726

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR24727
Status NEW
Importance P normal
Reported by Daniel Starke (daniel.f.starke@freenet.de)
Reported on 2015-09-06 03:55:18 -0700
Last modified on 2015-09-06 11:13:46 -0700
Version 3.7
Hardware PC Windows XP
CC geek4civic@gmail.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Running the ToolingTests unit test fails with:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000f59fc1 in llvm::sys::path::append (path=..., a=..., b=..., c=...,
d=...)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/lib/Support/Path.cpp:446
446                                          const Twine &d) {
#0  0x0000000000f59fc1 in llvm::sys::path::append (path=..., a=..., b=...,
c=..., d=...)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/lib/Support/Path.cpp:446
#1  0x000000000064d995 in clang::driver::Driver::Driver (this=0x2fd6e0,
ClangExecutable=..., DefaultTargetTriple=..., Diags=...)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/lib/Driver/Driver.cpp:71
#2  0x00000000004d722c in newDriver (BinaryName=0x2fd2a0 "clang-tool",
Diagnostics=0x22ef40)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/lib/Tooling/Tooling.cpp:58
#3  clang::tooling::ToolInvocation::run (this=this@entry=0x22f580)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/lib/Tooling/Tooling.cpp:215
#4  0x00000000004d7cf7 in clang::tooling::runToolOnCodeWithArgs
(ToolAction=<optimized out>, Code=..., Args=..., FileName=...,
PCHContainerOps=...,
    VirtualMappedFiles=...) at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/lib/Tooling/Tooling.cpp:147
#5  0x00000000004d7e69 in clang::tooling::runToolOnCode
(ToolAction=ToolAction@entry=0x2fc750, Code=..., FileName=...,
PCHContainerOps=...)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/lib/Tooling/Tooling.cpp:111
#6  0x00000000004c7df5 in
clang::tooling::runToolOnCode_FindsNoTopLevelDeclOnEmptyCode_Test::TestBody
(this=<optimized out>)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/unittests/Tooling/ToolingTest.cpp:64
#7  0x0000000000ecc63d in testing::Test::Run (this=this@entry=0x2fc000)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:2162
#8  0x0000000000ed3605 in Run (this=<optimized out>)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:2153
#9  testing::TestInfo::Run (this=0x31285be0) at
e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:2309
#10 0x0000000000ed37d5 in Run (this=<optimized out>)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:2284
#11 testing::TestCase::Run (this=0x2f24b0) at
e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:2416
#12 0x0000000000ed7c1e in Run (this=<optimized out>)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:4245
#13 testing::internal::UnitTestImpl::RunAllTests (this=0x31285cc0)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:4207
#14 0x0000000000ed7ea3 in
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
(location=<synthetic pointer>,
    method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0xed78f0 <testing::internal::UnitTestImpl::RunAllTests()>, object=0x31285cc0) at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:2145
#15 testing::UnitTest::Run (this=<optimized out>) at
e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/googletest/src/gtest.cc:3841
#16 0x0000000001266ba9 in main (argc=1, argv=0x31282480)
    at e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/utils/unittest/UnitTestMain/TestMain.cpp:47

Clang/LLVM was compiled as 64-bit build with:
../llvm-3.7.0.src/configure --prefix=/mingw64-64 --host=x86_64-w64-mingw32 --
disable-shared --enable-assertions --enable-debug-symbols --enable-keep-symbols
--enable-targets="x86 x86_64 cpp" --disable-docs "--with-gcc-toolchain=`which
x86_64-w64-mingw32-gcc | xargs dirname`" CC=x86_64-w64-mingw32-gcc CXX=x86_64-
w64-mingw32-g++ AR=x86_64-w64-mingw32-gcc-ar LD=x86_64-w64-mingw32-ld
"CPPFLAGS=-std=c++14"
Quuxplusone commented 9 years ago

The bug is still present in r246942.