Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote GDB - No such file or directory #13265

Open
x41lakazam opened this issue Feb 10, 2025 · 1 comment
Open

Remote GDB - No such file or directory #13265

x41lakazam opened this issue Feb 10, 2025 · 1 comment
Labels
bug debugger help wanted Can be fixed in the public (open source) repo.

Comments

@x41lakazam
Copy link

Environment

  • OS and version: OSX 14.5
  • VS Code: 1.96.1
  • C/C++ extension: 1.23.6
  • OS and version of remote machine (if applicable): ubuntu 22.04
  • GDB / LLDB version: 12.1

Bug Summary and Steps to Reproduce

I get the following error when trying to run this config

Image

I have no other extensions beside the remote development pack and C/C++

Debugger Configurations

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Attach",
            "type": "cppdbg",
            "request": "attach",
            "program": "/swgwork/eshukrun/ucc/build/bin/ucc_perftest",
            "MIMode": "gdb",
            "miDebuggerServerAddress": "dgx-gaia-33",
            "miDebuggerPath": "/usr/bin/gdb",
            "useExtendedRemote": true,
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

Debugger Logs

Launch configuration:
{
  "logging": {
    "engineLogging": true,
    "trace": true,
    "traceResponse": true
  },
  "name": "(gdb) Attach",
  "type": "cppdbg",
  "request": "attach",
  "program": "/swgwork/eshukrun/ucc/build/bin/ucc_perftest",
  "MIMode": "gdb",
  "miDebuggerServerAddress": "dgx-gaia-33",
  "miDebuggerPath": "/usr/bin/gdb",
  "useExtendedRemote": true,
  "setupCommands": [
    {
      "description": "Enable pretty-printing for gdb",
      "text": "-enable-pretty-printing",
      "ignoreFailures": true
    },
    {
      "description": "Set Disassembly Flavor to Intel",
      "text": "-gdb-set disassembly-flavor intel",
      "ignoreFailures": true
    }
  ],
  "__configurationTarget": 6
}
$ /usr/bin/gdb -ex "target extended-remote dgx-gaia-33" -ex "info os processes" -batch
pid        user       command    cores      
[...]
462014     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools 4,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,38,39 
464758     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools 4,20,21,23,24,25,26,27,28,29,30,31,32,33,34,36,37,38 
465067     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools-srv 464758 {AA9F193A-B7E4-4D60-BF9F-FC8CD42DA192} 4,25,26,28,29,30,31 
482610     eshukrun   sh /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/bin/code-server --connection-token=remotessh --accept-server-license-terms --start-server --enable-remote-auto-shutdown --socket-path=/tmp/code-5036a04a-c363-43ea-9a2f-4bc0bc1a97f0 33         
482614     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/out/server-main.js --connection-token=remotessh --accept-server-license-terms --start-server --enable-remote-auto-shutdown --socket-path=/tmp/code-5036a04a-c363-43ea-9a2f-4bc0bc1a97f0 0,11,20,21,22,24,25,29,37,39 
482627     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/out/bootstrap-fork --type=ptyHost --logsPath /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/data/logs/20250210T150709 0,17,20,22,23,25,30,31,33,38,39 
482655     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/out/bootstrap-fork --type=fileWatcher 22,23,24,25,26,27,28,29,33,34,35,36,37 
482671     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node --dns-result-order=ipv4first /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false 2,6,7,8,9,11,13,14,16,17,18 
482730     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=482671 0,1,2,17,18,19 
482837     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools 0,1,2,3,4,5,6,7,8,10,12,13,16,17,18,19,25,27 
482903     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/gitlab.gitlab-workflow-5.39.0/assets/language-server/node/main-bundle.js --stdio --clientProcessId=482671 2,4,5,9,14,15,17,18,25,26 
483748     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools-srv 482837 {128E7099-8AC4-4C44-8239-9F718827005C} 0,12,13,14,16,17 
484258     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/code-42b266171e51a016313f47d0c48aca9295b9cbb2 command-shell --cli-data-dir /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli --parent-process-id 484240 --on-host=127.0.0.1 --on-port 20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 
484319     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node --dns-result-order=ipv4first /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false 2,5,6,8,9,10,18,21,23,39 
484330     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/out/bootstrap-fork --type=fileWatcher 6,21,23,27,28,30,31,32,33,34,35,36 
484456     eshukrun   /bin/sh    36         
484459     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,31 
484498     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=484319 1,6,7,9,10,11,14 
484561     eshukrun   /.autodirect/mtrsysgwork/eshukrun/.vscode-server/.vscode-server/cli/servers/Stable-42b266171e51a016313f47d0c48aca9295b9cbb2/server/node /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/gitlab.gitlab-workflow-5.39.0/assets/language-server/node/main-bundle.js --stdio --clientProcessId=484319 2,4,5,7,8,9,10,20,22 
484687     root       [kworker/2:1-eve] 2          
484691     root       [kworker/13:2-ev] 13         
484832     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools-srv 484459 {E5D0F6CC-8F34-4C21-9C8B-E6B3BDE0DA18} 7,9,11,13,15,17 
484843     eshukrun   /mtrsysgwork/eshukrun/.vscode-server/.vscode-server/extensions/ms-vscode.cpptools-1.23.6-linux-x64/bin/cpptools-srv 484459 {37CCB01A-1C91-4F09-B0C1-73F1CFFE108C} 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 
486252     eshukrun   /bin/sh -c ./gdb -ex "target extended-remote dgx-gaia-33" -ex "info os processes" -batch 6          
486253     eshukrun   ./gdb -ex target extended-remote dgx-gaia-33 -ex info os processes -batch 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19

Other Extensions

No response

Additional Information

No response

Copy link

Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.

@github-actions github-actions bot added the help wanted Can be fixed in the public (open source) repo. label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug debugger help wanted Can be fixed in the public (open source) repo.
Projects
None yet
Development

No branches or pull requests

2 participants