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

QProcess::start() causes SIGTRAP and then SISSEGV under GDB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.15.2
    • 5.15.1
    • Core: I/O
    • None
    • ArchLinux with all stuff from the repos:

      * GCC v10.2.0
      * CLANG v10.0.1
      * GDB v9.2
      * Qt v5.15.1
      * QtCreator v4.13.1
    • Linux/X11

    Description

      This simple program:

      #include <QCoreApplication>
      #include <QProcess>
      #include <QDebug>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
          auto p = new QProcess(qApp);
          p->start(QStringLiteral("/usr/bin/dd"), {"--help"});
          return a.exec();
      }
      

      under the GDB debugger, causes SIGTRAP and then SISSEGV signals on line 'p->start(...)'.

      • This happens with any executables, running from the QProcess.
      • This happens as from QtCreator, and as from the GDB command line.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes