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

LLDB Core files do not work properly in Creator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.4.0-beta1, Qt Creator 4.6.0-beta1
    • Fix Version/s: Qt Creator 4.6.0-rc1
    • Component/s: Debugger
    • Labels:
    • Environment:
      macOS 10.12.5, Creator 4.4 rc 1

      lldb-360.99.0
        clang revision a41b64721d4be78870711cbb7b5af156a9e1f4ad
        llvm revision 3c45ea423a9e3d27eaf77af0639a73e0c56d9a35
    • Commits:
      42e224eb4b823cbe4295172a5a0d0c0e6ff4b7ad

      Description

      Compile the following program:

      int main() {
          int * a = 0;
          *a = 3;
          return 0;
      }
      

      with

      clang++ -O0 -g main.cpp
      

      enable core files with

       ulimit -c unlimited 

      and run program with

      ./a.out
      

      a core file is generated in the /cores/core.xxxx.

      Opening it with lldb works:

      lldb ./a.out -c /cores/core.71941                                                                                                                                                                                                                                                                                                                              139 ↵
      (lldb) target create "./a.out" --core "/cores/core.71941"
      warning: (x86_64) /cores/core.71941 load command 344 LC_SEGMENT_64 has a fileoff + filesize (0x2bc74000) that extends beyond the end of the file (0x2bc73000), the segment will be truncated to match
      warning: (x86_64) /cores/core.71941 load command 345 LC_SEGMENT_64 has a fileoff (0x2bc74000) that extends beyond the end of the file (0x2bc73000), ignoring this section
      Core file '/cores/core.71941' (x86_64) was loaded.
      

      Loading the core file with Creator via Debug -> Start Debugging -> Load Core file menu does not work properly. It seems like a debug session is started, and you can run lldb commands in the top-left corner, like "frame variables" or "bt", and you get proper results.
      But the backtrace and locals view of Creator are empty.

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-18722
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            hjk hjk
            Reporter:
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes