[llvm-bugs] [Bug 24727] New: [3.7] runToolOnCode.FindsNoTopLevelDeclOnEmptyCode function unit test fails in mingw-w64

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 6 01:55:18 PDT 2015


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

            Bug ID: 24727
           Summary: [3.7] runToolOnCode.FindsNoTopLevelDeclOnEmptyCode
                    function unit test fails in mingw-w64
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: daniel.f.starke at freenet.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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 at 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 at 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 at 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"

-- 
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/20150906/c4b3e633/attachment.html>


More information about the llvm-bugs mailing list