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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.15.1
    • Fix Version/s: 5.15.2
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      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
    • Platform/s:
      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

              Assignee:
              thiago Thiago Macieira
              Reporter:
              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