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

Crash in QCoreApplication::arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.6.0
    • Other
    • None

    Description

      In an application that opens a dialog before running the main event loop ("You have to confirm the license before using the application" type of thing), the following crash occurs on X11
      (regardless of which arguments, if any, were passed to the application):

      #0 QString::fromLocal8Bit (str=0x21 <Address 0x21 out of bounds>, size=-1)
      at tools/qstring.cpp:3804
      #1 0x00007fee624a8f8c in QCoreApplication::arguments ()
      at kernel/qcoreapplication.cpp:2082
      #2 0x00007fee619c6dc2 in sm_performSaveYourself (smd=0x1810690)
      at kernel/qapplication_x11.cpp:5553
      #3 0x00007fee619c7bc9 in sm_saveYourselfCallback (smcConn=<value optimized out>,
      clientData=0x21, saveType=<value optimized out>, shutdown=<value optimized out>,
      interactStyle=5943968) at kernel/qapplication_x11.cpp:5536
      #4 0x0000003c512065b7 in _SmcProcessMessage () from /usr/lib64/libSM.so.6
      #5 0x000000331a611ce4 in IceProcessMessages (iceConn=<value optimized out>,
      replyWait=<value optimized out>, replyReadyRet=<value optimized out>) at process.c:343
      #6 0x00007fee619b234f in QSmSocketReceiver::qt_metacall (this=0x1889a40,
      _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff861bb670)
      at .moc/release-shared/qapplication_x11.moc:71
      #7 0x00007fee624bb2a6 in QMetaObject::activate (sender=0x1895ac0,
      m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x43f4850)
      at kernel/qobject.cpp:3274
      #8 0x00007fee62507ffe in QSocketNotifier::activated (this=0x7fff861bae00, _t1=12)
      at .moc/release-shared/moc_qsocketnotifier.cpp:89
      #9 0x00007fee624c2583 in QSocketNotifier::event (this=0x1895ac0, e=0x7fff861bbc40)
      at kernel/qsocketnotifier.cpp:317
      #10 0x00007fee6193f8ee in QApplicationPrivate::notify_helper (this=<value optimized out>,
      receiver=0x1895ac0, e=0x7fff861bbc40) at kernel/qapplication.cpp:4242
      #11 0x00007fee61945fdd in QApplication::notify (this=0x7fff861bc0d0, receiver=0x1895ac0,
      e=0x7fff861bbc40) at kernel/qapplication.cpp:4125
      #12 0x00007fee624a83cc in QCoreApplication::notifyInternal (this=0x7fff861bc0d0,
      receiver=0x1895ac0, event=0x7fff861bbc40) at kernel/qcoreapplication.cpp:704
      #13 0x00007fee624d331a in QEventDispatcherUNIX::activateSocketNotifiers (
      this=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:215
      #14 0x00007fee624d4416 in QEventDispatcherUNIXPrivate::doSelect (this=0x0,
      flags=<value optimized out>, timeout=<value optimized out>)
      at kernel/qeventdispatcher_unix.cpp:304
      #15 0x00007fee624d52bb in QEventDispatcherUNIX::processEvents (this=0x17867b0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
      )
      at kernel/qeventdispatcher_unix.cpp:920
      #16 0x00007fee619ec25c in QEventDispatcherX11::processEvents (this=<value optimized out>,
      flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
      ) at kernel/qeventdispatcher_x11.cpp:152
      #17 0x00007fee624a6cd2 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
      )
      at kernel/qeventloop.cpp:149
      #18 0x00007fee624a70af in QEventLoop::exec (this=0x7fff861bc050, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
      )
      at kernel/qeventloop.cpp:201
      #19 0x00007fee61df10de in QDialog::exec (this=0x444e300) at dialogs/qdialog.cpp:530
      #20 0x00000000004062aa in main ()

      Attachments

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

        Activity

          People

            mgoetz Markus Goetz (Inactive)
            bero Bernhard Rosenkränzer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes