Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-5082

gdb crashes when trying to set breakpoint on qFatal with QtWebKit present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Moved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.2.0
    • Debugger
    • None
    • Windows

      The gdb process errors out with the following log:

      dALL COMMANDS DONE; INVOKING CALLBACK
      <46maint print msymbols C:/Users/JoLi/AppData/Local/Temp/gdb_ns_.mz3772
      >&"maint print msymbols C:/Users/JoLi/AppData/Local/Temp/gdb_ns_.mz3772\n"
      >46^done
      dFOUND NON-NAMESPACED QT
      <47-break-insert -f 'qFatal'
      >&"warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)\n"
      (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

      >&"\n"
      >&"warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)\n"
      (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

      >&"\n"
      >&"warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)\n"
      (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

      >&"\n"
      >&"warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)\n"
      (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

      >&"\n"
      dHANDLE GDB ERROR: The gdb process crashed some time after starting successfully.
      dGDB PROCESS FINISHED, status 1, code -1073741819
      dNOTE: ENGINE ILL ******

      Workaround is to create an easy-to-find-for-gdb qFatal() in your main file. This will cause gcc to emit a warning though, and you'll need to provide a reasonable implementation of it.

      void qFatal(const char *...)
      {
      return;
      }

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

            hjk hjk
            sirreal Johan Lindh
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes