Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11329

ClangCodeModel plugin crashes with an assert from libclang.dll when parsing <algorithm>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 3.1.0-beta
    • C/C++/Obj-C++ Support

    Description

      When a header file includes <algorithm> from Visual Studio 2010's STL, there's an assert from libclang.dll.

      Qt Creator 3.0.81
      Based on Qt 5.2.0 (MSVC 2010, 32 bit)
      Built on Jan 22 2014 at 11:58:49
      from 8b64e8599e69334aa20c69bee6ca476df767e7e5 (Jan 9)

      clang downloaded from http://llvm.org/releases/3.4/LLVM-3.4-win32.exe

      Qt 5.2.0 downloaded from http://ftp.fau.de/qtproject/official_releases/qt/5.2/5.2.0/qt-windows-opensource-5.2.0-msvc2010_opengl-x86-offline.exe

      Repro:
      The default kit should be Qt 5.2.0 and based on MSVC 2010 (not sure how relevant but that's what I have)
      Build qt creator with ClangCodeModel support and enable the plugin in Help->About plugins
      Load the attached project
      Open header.h

      Attaching screenshot of the error.

      Note that there's no assert when opening main.cpp, even though it includes <algorithm> as well. You can even ctrl-click the include and inspect algorithm's source.

      Attachments

        1. clang-assert2.png
          clang-assert2.png
          22 kB
        2. clang-assert3.png
          clang-assert3.png
          27 kB
        3. test_02.04.2014.zip
          5 kB
        4. test_second_assert.zip
          7 kB
        5. test.zip
          3 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              erikv Erik Verbruggen
              mpawlowski Maciej Pawlowski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes