> Source: [sk119593](https://support.checkpoint.com/results/sk/sk119593)

# sk119593 - "In order to use gdb, please run: /opt/xxx/fw1/bin/debug_tools/install_debug_tools" message, when executing "coredumps_bt" 

| Property | Value |
|----------|-------|
| Solution ID | sk119593 |
| Date Created | 2017-08-07 |
| Last Modified | 2024-02-19 |
| Technical Level | General |
| Products | Security Gateway, Scalable Platforms |
| Versions | R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * The *$FWDIR/bin/coredumps_bt* command shows the following message: "`In order to use gdb, please run: /opt/CPsuite-R76/fw1/bin/debug_tools/install_debug_tools`".

  Example:

  ```
  
  [Expert@RHOSTNAME-ch01-01:0:ACTIVE]# /opt/CPsuite-R76/fw1/bin/coredumps_bt
  Printing backtrace for /var/log/dump/usermode/fw.16970.core
  ================================================================================
  
  In order to use gdb, please run: /opt/CPsuite-R76/fw1/bin/debug_tools/install_debug_tools
  ```

* In R80.20SP, the *$SMODIR/bin/coredumps_bt* command shows the following message "  
  `In order to use gdb, please run: /opt/CPsmo-R80.20/bin/debug_tools/install_debug_tools`".

* In R81.10, the *$SMODIR/bin/coredumps_bt* command shows the following message "  
  `In order to use gdb, please run: /opt/CPsmo-R81.10/bin/debug_tools/install_debug_tools`".

## Cause

When the debug tools are installed, gdb executable is located in "/usr/local/bin/gdb".  
However, the "coredumps_bt" script refers to gdb in "$FWDIR/bin/debug_tools/gdb".

## Solution

This problem was fixed. The fix is included in:

* **[R76SP.50 Jumbo Hotfix Take 62](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk117633)**
* **[R80.20SP Jumbo Hotfix Take 283](https://supportcenter.us.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk155832)**

Check Point recommends to always [upgrade to the most recent version](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk117633).  

**Note:**   
The issue resurfaces in R81.10, please use the workaround below   

For **R80.20SP/R81.10** version, the following workaround is also available:

1. Connect to the command line.

2. Log in to the Expert mode.

3. Back up the "$SMODIR/bin/coredumps_bt" script:

   `# g_cp $SMODIR/bin/coredumps_bt{,_BKP}`
4. Edit the "$SMODIR/bin/coredumps_bt" script:

   `# vi $SMODIR/bin/coredumps_bt`
5. Edit line 66:

   from:

   $SMODIR/bin/debug_tools/gdb` -batch -q -n $bpath $corefile -x $CONFILE`

   to:

   $SMODIR/bin/debug_tools/gdb_bin` -batch -q -n $bpath $corefile -x $CONFILE`

   Note: You can jump to the relevant line by typing `:66` in vi.
6. Save and exit:

   `:wq!`

\* Copy the changed file to all SGMs:  
# asg_cp2blades $SMODIR/bin/coredumps_bt  

For **R76SP.50 and lower versions**, the workaround is available:

1. Connect to the command line.

2. Log in to the Expert mode.

3. Back up the "/opt/CPsuite-R76/fw1/bin/coredumps_bt" script:

   `# g_cp /opt/CPsuite-R76/fw1/bin/coredumps_bt{,_BKP}`
4. Edit the "/opt/CPsuite-R76/fw1/bin/coredumps_bt" script:

   `# g_all vi /opt/CPsuite-R76/fw1/bin/coredumps_bt`
5. Edit line 66:

   from:

   $FWDIR/bin/debug_tools/gdb` -batch -q -n $bpath $corefile -x $CONFILE`

   to:

   /usr/local/bin/gdb` -batch -q -n $bpath $corefile -x $CONFILE`

   Note: You can jump to the relevant line by typing `:66` in vi.
6. Save and exit:

   `:wq!`

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
