Details
Description
I ran "sleep 1000" in my terminal, and then tried attaching to the process via Debug -> Attach to Running Process.
The process suddenly exited (no crash) and the attaching failed.
Debug log:
wNote: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator's Debugger plugin, for instance in swap files, or other plugins you might use. wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share. w dStart parameters: 'Process 76962' mode: 3 dABI: x86-darwin-generic-mach_o-64bit dLanguages: c++ dExecutable: sleep dDebugger: /usr/bin/lldb dPID: 76962 dSysroot: dDebug Source Location: dDebugger settings: dAdditionalArguments: (default: ) dAdjustBreakpointLocations: true (default: true) dAllPluginBreakpoints: true (default: true) dAlwaysAdjustColumnWidths: true (default: true) dAutoDerefPointers: true (default: true) dAutoEnrichParameters: true (default: true) dAutoQuit: false (default: false) dBreakEvent: (default: ) dBreakOnAbort: false (default: false) dBreakOnCatch: false (default: false) dBreakOnCrtDbgReport: false (default: false) dBreakOnFatal: false (default: false) dBreakOnThrow: false (default: false) dBreakOnWarning: false (default: false) dBreakpointCorrection: true (default: true) dBreakpointsFullPath: false (default: false) dCDB_Console: false (default: false) dCloseBuffersOnExit: false (default: false) dCloseMemoryBuffersOnExit: true (default: true) dDisplayStringLimit: 1000 (default: 100) *** dEnableReverseDebugging: false (default: false) dExtraDumperFile: (default: ) dFirstChanceExceptionTaskEntry: true (default: true) dFontSizeFollowsEditor: false (default: false) dGdbCustomDumperCommands: (default: ) dGdbPostAttachCommands: (default: ) dGdbStartupCommands: #settings set target.source-map /private/tmp/python-20160802-64718-dxvcid/Python-2.7.11 /Users/alex/Dev/python2_debug/Python-2.7.11 d#settings set target.source-map /Users/qt/work/qt /Users/alex/Dev/qt/qt58_source d#script import pydevd d#script pydevd.settrace('localhost', port=13337, stdoutToServer=True, stderrToServer=True) d (default: ) *** dIdentifyDebugInfoPackages: false (default: false) dIgnoreFirstChanceAccessViolation: false (default: false) dIntelFlavor: false (default: false) dLoadGdbDumpers2: false (default: false) dLoadGdbInit: true (default: true) dLogTimeStamps: false (default: false) dMaximalStackDepth: 40 (default: 20) *** dMaximalStringLength: 10000 (default: 10000) dMultiInferior: false (default: false) dNoPluginBreakpoints: false (default: false) dQmlInspector.ShowAppOnTop: false (default: false) dRaiseOnInterrupt: true (default: true) dSecondChanceExceptionTaskEntry: true (default: true) dSelectedPluginBreakpoints: false (default: false) dSelectedPluginBreakpointsPattern: .* (default: .*) dShowQObjectNames2: true (default: true) dShowQmlObjectTree: true (default: true) dShowQtNamespace: true (default: true) dShowStandardNamespace: true (default: true) dShowThreadNames: false (default: false) dSkipKnownFrames: false (default: false) dSortStructMembers: false (default: true) *** dSourcePaths: (default: ) dStationaryEditorWhileStepping: false (default: false) dSwitchModeOnExit: false (default: false) dSymbolPaths: (default: ) dTargetAsync: true (default: false) *** dUseAddressInBreakpointsView: false (default: false) dUseAddressInStackView: false (default: false) dUseAlternatingRowColours: false (default: false) dUseCodeModel: true (default: true) dUseDebuggingHelper: true (default: true) dUseDynamicType: true (default: true) dUseMessageBoxForSignals: true (default: true) dUsePythonDumper: true (default: true) dUseToolTips: false (default: true) *** dUseToolTipsInBreakpointsView: true (default: false) *** dUseToolTipsInLocalsView: false (default: false) dUseToolTipsInStackView: true (default: true) dWarnOnReleaseBuilds: true (default: true) dWatchdogTimeout: 20 (default: 20) dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) dCALL: SETUP ENGINE dSTARTING LLDB: /usr/bin/lldb >@ >lldbversion="lldb-1001.0.13.3 > Swift-5.0"@ >@ >state="enginesetupok"@ Setting up inferior... <1loadDumpers({"token":1}) <2setupInferior({"attachpid":76962,"breakonmain":0,<environment suppressed>,"executable":"sleep","nativemixed":0,"platform":"","processargs":"","remotechannel":"","startmode":3,"sysroot":"","token":2,"useterminal":0,"workingdirectory":""}) dNOTE: ENGINE SETUP OK dState changed from EngineSetupRequested(1) to EngineSetupOk(3) dState changed from EngineSetupOk(3) to EngineRunRequested(4) dCALL: RUN ENGINE Running requested... <3runEngine({"token":3}) >(lldb) script sys.path.insert(1, '/Volumes/T3/Dev/qtcreator/officia_4100rc1_opensource/Qt Creator.app/Contents/Resources/debugger/') >(lldb) script from lldbbridge import * >(lldb) #settings set target.source-map /private/tmp/python-20160802-64718-dxvcid/Python-2.7.11 /Users/alex/Dev/python2_debug/Python-2.7.11 >(lldb) #settings set target.source-map /Users/qt/work/qt /Users/alex/Dev/qt/qt58_source >(lldb) #script import pydevd >(lldb) #script pydevd.settrace('localhost', port=13337, stdoutToServer=True, stderrToServer=True) >(lldb) script theDumper.loadDumpers({"token":1}) >@ >result={token="1",dumpers=[{type="std____debug__unordered_set"},{type="boost__variant"},{type="QV4__InternalClass__Transition"},{type="QSizePolicy"},{type="QtcDumperTest_PointerArray"},{type="std__list"},{type="QmakeProjectManager__QmakeProFileNode"},{type="QtcDumperTest_FieldAccessByIndex"},{type="std__multimap",formats="17"},{type="QUuid"},{type="boost__optional"},{type="QDir"},{type="TNimNode"},{type="QSharedData"},{type="Debugger__Internal__GdbMi"},{type="QV4__PropertyHash"},{type="std__complex"},{type="__m256"},{type="boost__container__list"},{type="CPlusPlus__Symbol"},{type="std____debug__unordered_multimap",formats="17"},{type="std____1__complex"},{type="std__deque"},{type="std___Rb_tree_const_iterator"},{type="QFixed"},{type="uint8_t"},{type="std____1__set__iterator"},{type="std____debug__stack"},{type="CPlusPlus__StringLiteral"},{type="QPoint"},{type="std__unordered_multimap",formats="17"},{type="std____1__vector",formats="16"},{type="QMultiMap",formats="17"},{type="PyTypeObject"},{type="std__byte"},{type="QLocale"},{type="QV4__CallContext"},{type="QJsonPrivate__q_littleendian"},{type="string",editable="true"},{type="std__set"},{type="std___Tree_const_iterator"},{type="__gnu_cxx__hash_set"},{type="QFile"},{type="wstring",editable="true"},{type="QByteArrayData"},{type="CPlusPlus__Literal"},{type="QSizeF"},{type="CPlusPlus__Class"},{type="NimStringDesc"},{type="QRegion"},{type="QIPv6Address"},{type="QV4__Heap__String"},{type="Utils__ElfSection"},{type="QGraphicsPolygonItem"},{type="Debugger__Internal__DisassemblerLine"},{type="QTypedArrayData"},{type="QPointer"},{type="QMap",formats="17"},{type="std____cxx11__string",editable="true",formats="5, 6, 7, 8"},{type="std____1__stack"},{type="QArrayData"},{type="QV4__ScopedString"},{type="QChar"},{type="boost__posix_time__time_duration"},{type="std__once_flag"},{type="CPlusPlus__TemplateNameId"},{type="QQmlRefCount"},{type="std____debug__set"},{type="QMetaObject"},{type="QHostAddress"},{type="QV4__Value"},{type="QVariantList"},{type="std__unordered_multiset"},{type="Utils__FilePath"},{type="QObjectPrivate__ConnectionList"},{type="QJsonValue"},{type="std____1__shared_ptr"},{type="QV4__SimpleScriptFunction"},{type="CPlusPlus__Internal__Value"},{type="QFileInfo"},{type="QHash__const_iterator"},{type="qfloat16"},{type="Debugger__Internal__WatchData"},{type="QTime"},{type="QSqlField"},{type="std___Tree_iterator"},{type="QXmlStreamStringRef"},{type="CPlusPlus__PointerType"},{type="std____1__weak_ptr"},{type="std____debug__unordered_multiset"},{type="QTimeZone"},{type="gsl__span"},{type="boost__bimaps__bimap"},{type="cv__Size_"},{type="std____cxx1998__map"},{type="std____1__map__const_iterator"},{type="QV4__Heap__Base"},{type="QHash",formats="17"},{type="QXmlAttributes"},{type="QHash__iterator"},{type="KDSoapValue1"},{type="QMetaEnum"},{type="QLinkedList"},{type="Utils__FileName"},{type="QVariantHash"},{type="QStack",formats="16"},{type="QBitArray"},{type="std__list__QNX"},{type="Debugger__Internal__BreakpointModelId"},{type="boost__unordered__unordered_set"},{type="Qt__ItemDataRole"},{type="QLazilyAllocated"},{type="std____1__basic_string"},{type="std____cxx11__basic_string"},{type="std__set__const_iterator"},{type="QQmlBinding"},{type="std____1__unique_ptr"},{type="std__map__iterator"},{type="QDate"},{type="std____1__set_const_iterator"},{type="std__stack"},{type="std____weak_ptr"},{type="std__multiset"},{type="std__unordered_map",formats="17"},{type="QJsonPrivate__qle_bitfield"},{type="QV4__Identifier"},{type="__m128"},{type="__m128d"},{type="QTextCodec"},{type="std__shared_ptr"},{type="std____1__wstring"},{type="std__unordered_set"},{type="QEvent"},{type="std__string",editable="true",formats="5, 6, 7, 8"},{type="QByteArray",editable="true",formats="5, 6, 7, 8"},{type="QtcDumperTest_List__NodeX"},{type="Utf8String"},{type="__m512d"},{type="std____cxx1998__set"},{type="QPixmap"},{type="std____1__multimap",formats="17"},{type="QMetaClassInfo"},{type="std__map",formats="17"},{type="boost__posix_time__ptime"},{type="QPointF"},{type="std____cxx11__wstring",editable="true",formats="2, 4"},{type="Eigen__Matrix"},{type="QImage",formats="2, 4"},{type="QSet"},{type="std__valarray",formats="16"},{type="std__map__const_iterator"},{type="QJsonArray"},{type="CPlusPlus__QualifiedNameId"},{type="std____1__deque"},{type="QFiniteStack",formats="16"},{type="std__set__iterator"},{type="QTextDocument"},{type="QTJSC__JSValue"},{type="QSqlResultPrivate"},{type="NimGenericSequence__"},{type="QMargins"},{type="std__wstring",editable="true",formats="2, 4"},{type="QV4_Object"},{type="QBasicAtomicInt"},{type="QScriptValue"},{type="QMetaProperty"},{type="QDateTime"},{type="std____1__unordered_set"},{type="std____1__map__iterator"},{type="boost__gregorian__date"},{type="CPlusPlus__Token"},{type="std__pair"},{type="std__set__QNX"},{type="std____1__list"},{type="std__deque__MSVC"},{type="CPlusPlus__ByteArrayRef"},{type="QProcEnvKey"},{type="boost__shared_ptr"},{type="QV__PropertyHash"},{type="Core__Id"},{type="std__basic_string"},{type="std____debug__vector",formats="16"},{type="QRectF"},{type="QAtomicInt"},{type="__m256i"},{type="QQmlSourceLocation"},{type="QKeyEvent"},{type="__m256d"},{type="KDSoapValue"},{type="std____1__set"},{type="PyVarObject"},{type="gsl__byte"},{type="QPolygonF"},{type="QXmlStreamAttribute"},{type="int8_t"},{type="QStandardItemData"},{type="QV4__SharedInternalClassData"},{type="QQmlAccessorProperties__Properties"},{type="QHashedString"},{type="QtcDumperTest_String"},{type="QV4__ExecutionContext"},{type="ProKey"},{type="WTF__String"},{type="std__vector",editable="true",formats="16"},{type="QV4__FunctionObject"},{type="PyObject"},{type="std____1__multiset"},{type="std____1__unordered_map",formats="17"},{type="QV4__IdentifierTable"},{type="__m512i"},{type="QV4__InternalClassTransition"},{type="__m128i"},{type="QVariantMap",formats="17"},{type="QStringRef"},{type="std____debug__map"},{type="std____debug__list"},{type="QStaticStringData"},{type="QVariant (QVariantMap)",formats="17"},{type="QSize"},{type="Debugger__Internal__WatchItem"},{type="QPolygon"},{type="std____1__string"},{type="QSharedDataPointer"},{type="QV__PropertyHashData"},{type="QStringList"},{type="std___Rb_tree_iterator"},{type="QString",editable="true",formats="2, 4"},{type="std__optional"},{type="std__deque__QNX"},{type="CPlusPlus__Identifier"},{type="QRegExp"},{type="QTextCursor"},{type="QFlags"},{type="QStringData"},{type="std____debug__unordered_map",formats="17"},{type="QList",formats="18, 19"},{type="QJsonPrivate__qle_signedbitfield"},{type="QSharedPointer"},{type="QUrl",formats="2, 4"},{type="QmakeProjectManager__QmakePriFileNode"},{type="cv__Mat",formats="4"},{type="QVarLengthArray"},{type="QV4__Object"},{type="std____debug__deque"},{type="std__unique_ptr"},{type="QScopedPointer"},{type="__m512"},{type="std____1__map",formats="17"},{type="QStandardItem"},{type="QtcDumperTest_BufArray"},{type="QMapNode"},{type="Core__GeneratedFile"},{type="QObjectConnectionList"},{type="std____1__array",formats="16"},{type="std____1__valarray",formats="16"},{type="QVariant"},{type="QV4__String"},{type="QVector",editable="true",formats="16"},{type="ProjectExplorer__ProjectNode"},{type="CPlusPlus__Internal__PPToken"},{type="Debugger__Internal__ThreadId"},{type="std____1__once_flag"},{type="QHashNode",formats="17"},{type="QV4__Scoped"},{type="ProString"},{type="_typeobject"},{type="Utils__Port"},{type="QV4__CompilationUnit"},{type="std__experimental__optional"},{type="QTemporaryFile"},{type="QXmlAttributes__Attribute"},{type="std__function"},{type="QJsonObject"},{type="QRect"},{type="CPlusPlus__IntegerType"},{type="std__array",formats="16"},{type="CMakeProjectManager__Internal__CMakeProjectNode"},{type="QJSValue"},{type="std____cxx11__list"},{type="CPlusPlus__FullySpecifiedType"},{type="__gnu_debug___Safe_iterator"},{type="QV4__ScriptFunction"},{type="QSizePolicy__Policy"},{type="QtcDumperTest_List"},{type="QWeakPointer"},{type="std__weak_ptr"},{type="QMetaMethod"},{type="QAtomicPointer"},{type="CPlusPlus__NamedType"},],python="20710"}@ >(lldb) script theDumper.setupInferior({"attachpid":76962,"breakonmain":0,"environment":[],"executable":"sleep","nativemixed":0,"platform":"","processargs":"","remotechannel":"","startmode":3,"sysroot":"","token":2,"useterminal":0,"workingdirectory":""}) >@ >result={token="2",success="1",msg="success",exe="sleep"}@ >(lldb) script theDumper.runEngine({"token":3}) >1^ >2^ >@ >pid="76962"@ >@ >state="enginerunandinferiorstopok"@ dNOTE: ENGINE RUN AND INFERIOR STOP OK Stopped. dState changed from EngineRunRequested(4) to InferiorStopOk(11) dNOTE: INFERIOR RUN REQUESTED Run requested... dState changed from InferiorStopOk(11) to InferiorRunRequested(7) <4continueInferior({"token":4}) >(lldb) script theDumper.continueInferior({"token":4}) >@ >result={token="4",success="1",error={type="0",code="0",desc="success"}}@ >@ >event={type="1",data="0x7ff2a4a006c0 Event: broadcaster = 0x7ff2a5008a38 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7ff2a5008a00 (pid = 76962), state = running}",msg="None",flavor="Process::ProcessEventData",state="running",bp="No value"}@ >@ >state="running"@ >@ >event={type="1",data="0x7ff2a4a01510 Event: broadcaster = 0x7ff2a5008a38 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7ff2a5008a00 (pid = 76962), state = exited}",msg="None",flavor="Process::ProcessEventData",state="exited",bp="No value"}@ >@ >state="inferiorexited"@ >@ >exited={status="0",desc="None"}@ >4^ dNOTE: INFERIOR RUN OK Running. dState changed from InferiorRunRequested(7) to InferiorRunOk(8) dNOTE: INFERIOR EXITED dState changed from InferiorRunOk(8) to InferiorShutdownFinished(14) dState changed from InferiorShutdownFinished(14) to EngineShutdownRequested(15) dCALL: SHUTDOWN ENGINE dLLDB PROCESS ERROR: 1 dNOTE: ENGINE SHUTDOWN FINISHED dState changed from EngineShutdownRequested(15) to EngineShutdownFinished(16) Debugger finished. dState changed from EngineShutdownFinished(16) to DebuggerFinished(17)