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

qtcreator -2.6 crash when parsing kde source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 2.6.0
    • Qt Creator 2.6.0-rc
    • C/C++/Obj-C++ Support
    • None
    • linux
    • e53f4352194a2307d77cea923c2473812a8647b9

    Description

      Hi,

      When we look at source:
      ----------

      if (const TemplateNameId *baseTemplId = baseName->asTemplateNameId()) {
      // Another template that uses the dependent name.
      // Ex.: template <class T> class A : public B<T> {};
      if (baseTemplId->identifier() != templId->identifier())
      baseBinding = nestedType(baseName, origin);
      -------------

      [Switching to Thread 0x7fffce07a700 (LWP 9687)]
      0x00007fffe13fbf25 in CPlusPlus::SubstitutionEnvironment::apply (this=0x7fffcd87b3a0, name=0x7fff444f2bc8, rewrite=0x7fffcd87b1c0) at CppRewriter.cpp:308
      308 {
      Missing separate debuginfos, use: zypper install fontconfig-debuginfo-2.9.0-3.5.1.x86_64 glibc-debuginfo-2.15-22.6.4.x86_64 glibc-locale-debuginfo-2.15-22.6.4.x86_64 libICE6-debuginfo-1.0.8-2.1.2.x86_64 libIlmImf6-debuginfo-1.7.0-15.1.2.x86_64 libSM6-debuginfo-1.2.1-2.1.2.x86_64 libX11-6-debuginfo-1.5.0-2.1.2.x86_64 libXau6-debuginfo-1.0.7-2.1.2.x86_64 libXcursor1-debuginfo-1.1.13-2.1.2.x86_64 libXdmcp6-debuginfo-1.1.1-2.1.2.x86_64 libXext6-debuginfo-1.3.1-2.1.2.x86_64 libXfixes-devel-debuginfo-5.0-2.1.2.x86_64 libXft2-debuginfo-2.3.1-2.1.2.x86_64 libXi-devel-debuginfo-1.6.1-2.1.2.x86_64 libXinerama1-debuginfo-1.1.2-2.1.2.x86_64 libXpm4-debuginfo-3.5.10-2.1.2.x86_64 libXrandr2-debuginfo-1.3.2-2.1.2.x86_64 libXrender1-debuginfo-0.9.7-2.1.2.x86_64 libXtst6-debuginfo-1.2.1-2.1.2.x86_64 libacl1-debuginfo-2.2.51-8.1.3.x86_64 libattr1-debuginfo-2.4.46-9.1.3.x86_64 libbz2-1-debuginfo-1.0.6-20.1.7.x86_64 libdbus-1-3-debuginfo-1.5.12-4.1.2.x86_64 libexpat1-debuginfo-2.1.0-2.1.3.x86_64 libfam0-debuginfo-2.7.0-159.2.1.x86_64 libffi47-debuginfo-4.7.1_20120723-1.1.1.x86_64 libfreetype6-debuginfo-2.4.9-4.1.2.x86_64 libgcc47-debuginfo-4.7.1_20120723-1.1.1.x86_64 libgio-2_0-0-debuginfo-2.32.4-4.8.1.x86_64 libglib-2_0-0-debuginfo-2.32.4-4.8.1.x86_64 libgmodule-2_0-0-debuginfo-2.32.4-4.8.1.x86_64 libgobject-2_0-0-debuginfo-2.32.4-4.8.1.x86_64 libgstapp-0_10-0-debuginfo-0.10.36-2.1.2.x86_64 libgstinterfaces-0_10-0-debuginfo-0.10.36-2.1.2.x86_64 libgstreamer-0_10-0-debuginfo-0.10.36-3.1.2.x86_64 libgthread-2_0-0-debuginfo-2.32.4-4.8.1.x86_64 libicu49-debuginfo-49.1-2.1.2.x86_64 libilmbase6-debuginfo-1.0.2-11.1.2.x86_64 libjasper1-debuginfo-1.900.1-153.1.4.x86_64 libjpeg62-debuginfo-62.0.0-15.5.1.x86_64 liblcms1-debuginfo-1.19-9.1.4.x86_64 liblzma5-debuginfo-5.0.3-12.2.2.x86_64 libmng1-debuginfo-1.0.10-106.1.4.x86_64 liborc-0_4-0-debuginfo-0.4.16-6.1.2.x86_64 libpcre1-debuginfo-8.30-3.1.2.x86_64 libpng14-14-debuginfo-1.4.11-2.5.1.x86_64 libqca2-debuginfo-2.0.3-8.1.2.x86_64 libselinux1-debuginfo-2.0.91-19.1.15.x86_64 libstdc++47-debuginfo-4.7.1_20120723-1.1.1.x86_64 libtiff5-debuginfo-4.0.2-1.9.1.x86_64 libudev0-debuginfo-182-4.17.1.x86_64 libuuid1-debuginfo-2.21.2-4.2.3.x86_64 libxcb1-debuginfo-1.8.1-2.1.2.x86_64 libxml2-2-debuginfo-2.7.8+git20120223-8.5.1.x86_64 xorg-x11-libXfixes-devel-debuginfo-7.6_5.0-3.1.2.x86_64 zlib-debuginfo-1.2.7-2.1.2.x86_64
      (gdb) where
      #0 0x00007fffe13fbf25 in CPlusPlus::SubstitutionEnvironment::apply (this=0x7fffcd87b3a0, name=0x7fff444f2bc8, rewrite=0x7fffcd87b1c0) at CppRewriter.cpp:308
      #1 0x00007fffe1401c09 in CPlusPlus::Rewrite::RewriteType::visit (this=0x7fffcd87b1d0, type=0x7fff45107ce0) at CppRewriter.cpp:129
      #2 0x00007fffe13ea414 in CPlusPlus::Type::accept (this=0x7fff45107ce0, visitor=0x7fffcd87b1d0) at ../3rdparty/cplusplus/Type.cpp:97
      #3 0x00007fffe140229c in accept (ty=..., this=0x7fffcd87b1d0) at CppRewriter.cpp:67
      #4 operator() (ty=..., this=0x7fffcd87b1d0) at CppRewriter.cpp:78
      #5 CPlusPlus::Rewrite::RewriteName::visit (this=0x7fffcd87b1e8, name=0x7fff45aac490) at CppRewriter.cpp:266
      #6 0x00007fffe13c49d1 in CPlusPlus::Name::accept (this=0x7fff45aac490, visitor=0x7fffcd87b1e8) at ../3rdparty/cplusplus/Name.cpp:57
      #7 0x00007fffe13fecd3 in operator() (name=0x7fff45aac490, this=0x7fffcd87b1e8) at CppRewriter.cpp:246
      #8 CPlusPlus::rewriteName (name=0x7fff45aac490, env=<optimized out>, control=<optimized out>) at CppRewriter.cpp:446
      #9 0x00007fffe1413b1e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33716130, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:772
      #10 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33715340, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #11 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33713fc0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #12 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33712230, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #13 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337122e0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #14 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337112f0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #15 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33710600, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #16 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff3370f610, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #17 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff3370e930, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #18 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff3370d940, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #19 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff3370cd20, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #20 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff3370c2e0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #21 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff3370af60, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #22 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337091d0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #23 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33709280, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #24 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33708290, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #25 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337075a0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #26 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337065b0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #27 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337058d0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #28 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff337048d0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #29 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33703cb0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #30 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33703270, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #31 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33701ef0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #32 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33701580, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #33 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff33700210, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #34 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336ff220, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #35 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336fe530, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #36 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336fd540, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #37 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336fc850, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #38 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336fb860, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #39 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336fac40, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #40 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336fa220, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #41 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336f8e80, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #42 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336f8510, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778
      #43 0x00007fffe1413b5e in CPlusPlus::ClassOrNamespace::nestedType (this=this@entry=0x7fff3008c230, name=0x7fffcd87b3a0, name@entry=0x7fff336f71a0, origin=origin@entry=0x7fff300adb90) at LookupContext.cpp:778

      Attachments

        1. incidenceview.h
          4 kB
        2. kdepim-patch.diff
          6 kB
        3. minimum-cmakefile.diff
          15 kB
        4. reduce-kdepim.tar.bz2
          180 kB

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-7962
          # Subject Branch Project Status CR V

          Activity

            People

              erikv Erik Verbruggen
              montel Montel Laurent
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes