Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43057

'make docs' crashes qdoc on rhel6

    XMLWordPrintable

Details

    • 6e522f7ed5e52d7887277a4009d269985e0a3044

    Description

      Trying to build qtbase-5.4.0-rc on a rhel/centos 6.6 box, and 'make docs' fails with a qdoc segfault. Fwiw, qtbase-5.4.0-beta did not suffer this problem. The failure happens in src/dbus:

      make[1]: Entering directory `/data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/src/dbus'
      QT_INSTALL_DOCS=/data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/doc QT_VERSION_TAG=540 QT_VER=5.4 QT_VERSION=5.4.0 QT_PLUGIN_PATH=/data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/plugins LD_LIBRARY_PATH=/data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} /data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/bin/qdoc -outputdir /data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/doc/qtdbus -installdir /usr/share/doc/qt5 /data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/src/dbus/doc/qtdbus.qdocconf -prepare -indexdir /data/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qtbase-opensource-src-5.4.0-rc/doc -no-link-errors
      make[1]: *** [prepare_docs] Segmentation fault
      

      I was able to generate a backtrace:

      Program received signal SIGSEGV, Segmentation fault.
      compareNodes (n1=0x461cf60, n2=0x9700000000) at qdocindexfiles.cpp:1261
      1261        if (n1->location().filePath() < n2->location().filePath())
      Missing separate debuginfos, use: debuginfo-install glib2-2.28.8-4.el6.x86_64 glibc-2.12-1.149.el6.x86_64 libgcc-4.4.7-11.el6.x86_64 libicu-4.2.1-9.1.el6_2.x86_64 libstdc++-4.4.7-11.el6.x86_64 zlib-1.2.3-29.el6.x86_64
      (gdb) backtrace
      #0  compareNodes (n1=0x461cf60, n2=0x9700000000) at qdocindexfiles.cpp:1261
      #1  0x000000000050b7d4 in __unguarded_linear_insert<QList<Node*>::iterator, Node*, bool (*)(Node const*, Node const*)> (this=0x47d9b40, writer=..., node=0x179df60, generateInternalNodes=true)
          at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:2084
      #2  __unguarded_insertion_sort<QList<Node*>::iterator, bool (*)(Node const*, Node const*)> (this=0x47d9b40, writer=..., node=0x179df60, generateInternalNodes=true)
          at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:2161
      #3  __final_insertion_sort<QList<Node*>::iterator, bool (*)(Node const*, Node const*)> (this=0x47d9b40, writer=..., node=0x179df60, generateInternalNodes=true)
          at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:2194
      #4  sort<QList<Node*>::iterator, bool (*)(Node const*, Node const*)> (this=0x47d9b40, writer=..., node=0x179df60, generateInternalNodes=true)
          at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:5260
      #5  QDocIndexFiles::generateIndexSections (this=0x47d9b40, writer=..., node=0x179df60, generateInternalNodes=true) at qdocindexfiles.cpp:1330
      #6  0x000000000050bd1c in QDocIndexFiles::generateIndex (this=0x47d9b40, fileName=<value optimized out>, url=..., title=<value optimized out>, g=0x7fffffffd240, generateInternalNodes=true)
          at qdocindexfiles.cpp:1410
      #7  0x00000000004f63b8 in QDocDatabase::generateIndex (this=<value optimized out>, fileName=..., url=..., title=..., g=<value optimized out>, generateInternalNodes=true) at qdocdatabase.cpp:1446
      #8  0x00000000004c2919 in HtmlGenerator::generateDocs (this=0x7fffffffd240) at htmlgenerator.cpp:282
      #9  0x00000000004dfdfe in processQdocconfFile (fileName=<value optimized out>) at main.cpp:476
      #10 0x00000000004e2023 in main (argc=10, argv=<value optimized out>) at main.cpp:665
      

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            rdieter Rex Dieter
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes