Skip to content
Snippets Groups Projects

Add debugging tips with gdb

Merged Stan Hu requested to merge stanhu/gitlab-ce:add-debugging-tips into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 63 ```
    64
    65 6) Once you're done debugging with `gdb`, be sure to detach from the process and exit:
    66 ```
    67 detach
    68 exit
    69 ```
    70
    71 Note that if the unicorn process terminates before you are able to run these
    72 commands, gdb will report an error. To buy more time, you can always raise the
    73 Unicorn timeout. For omnibus users, you can edit `/etc/gitlab/gitlab.rb` and
    74 increase it from 60 seconds to 300:
    75
    76 ```ruby
    77 unicorn['worker_timeout'] = 300
    78 ```
    • Can you add the following step to reconfigure?

      [Reconfigure] GitLab for the changes to take effect.
      
      [Reconfigure]: ../../restart_gitlab.md#omnibus-gitlab-reconfigure

      You might also want to mention config/unicorn.rb for source installations :)

  • @stanhu Awesome! I left some inline comments :)

  • Reassigned to @stanhu

  • Achilleas Pipinellis Added ~15078 label

    Added ~15078 label

  • @stanhu please let me know when this is done.

    I think that we should have links to this kind of documentation from the runbooks. So we only know of one source point for documentation.

  • Stan Hu Added 1642 commits:

    Added 1642 commits:

    • c699b1fc...1e3688fa - 1639 commits from branch gitlab-org:master
    • 813b4820 - Add debugging tips with gdb
    • 3a5e8e7c - Update based on review
    • 9b6c8e70 - Add gdb cheatsheet
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 35be4856 - Add more spaces
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • aae2bc6e - Add debugging tips with gdb
  • Author Maintainer

    @axil Thanks for the feedback. Updated. I think this is a Markdown bug because even if I add spaces in between my code blocks, the numbers reset back to 1. For example:

    1. Hello

    2. World

      def code
      end
    3. Hello

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading