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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated 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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes