Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2619

create scripts for reliable core file debugging

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 2.3.0
    • None
    • Infrastructure
    • None

    Description

      These step by step instructions should be scripted.

      On the system where impalad crashed:

      gdb -c core /path/to/impalad
      (gdb) info shared
      
      # Take this list of .so's and tar them up, being sure to follow symlinks:
      tar chvzf so.tar.gz <list of so files>
      
      # Copy the core file, impalad, impalad.debug, and so.tar.gz files in the jira directory on impala-desktop.
      
      On the system where you'll debug:
      
      tar xvf so.tar.gz
      gdb impalad
      # That should find and load symbols from impalad.debug automatically.
      # Tell gdb to look for the copied so's rather than the system so's
      (gdb) set sysroot /path/to/extracted/so/tar
      # Once the path is changed, then load the core file
      (gdb) core core
      # Now the core file should be debuggable on the remote system.
      

      Attachments

        Activity

          People

            anujphadke Anuj Phadke
            srus Silvius Rus
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: