Skip to content

Could not open /proc/0/status with cuda-gdb #4

Open

Description

@eduardz1

When trying to execute a program with cuda-gdb

 mpigdb --mpigdb_gdb cuda-gdb  --mpigdb_gdbserver cuda-gdbserver -np 1 -- ../../build/cuda-dev/code/app/forward_waveform_acoustic_isotropic_hdg.out  parameter=par.mesh25k

I get an error right after continuing the debugger

Process ../../build/cuda-dev/code/app/forward_waveform_acoustic_isotropic_hdg.out created; pid = 1653056
Listening on port 8001
NVIDIA (R) cuda-gdb 12.9
Portions Copyright (C) 2007-2025 NVIDIA Corporation
Based on GNU gdb 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This CUDA-GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://forums.developer.nvidia.com/c/developer-tools/cuda-developer-tools/cuda-gdb>.
Find the CUDA-GDB manual and other documentation resources online at:
    <https://docs.nvidia.com/cuda/cuda-gdb/index.html>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Remote debugging from host 127.0.0.1, port 47864
Reading symbols from /home/eduard/Github/hawen_worktree/arborescence-compil/build/cuda-dev/code/app/forward_waveform_acoustic_isotropic_hdg.out...

Program stopped.
0x00007ffff7fe2740 in ?? () from /lib64/ld-linux-x86-64.so.2
(cuda-gdb) c
Continuing.
Could not open /proc/0/status: No such file or directory(2)

Activity

  1. robertu94 commented on Jun 23, 2025

    @robertu94
    Owner

    That appears to be a weird OS or cuda-gdb issue. /proc/0/status should contain status information for PID 0 (which I think is an invalid PID). What versions of everything do you have installed?

  2. eduardz1 commented on Jun 23, 2025

    @eduardz1
    Author

    That appears to be a weird OS or cuda-gdb issue. /proc/0/status should contain status information for PID 0 (which I think is an invalid PID). What versions of everything do you have installed?

    Yes it's a bit weird that it's checking PID 0, I am using the NHVPC Toolkit, the latest version, 25.5, the environment is loaded with the provided module. For mpigdb I installed it with cargo the day I opened the issue. I'm on Ubuntu 25.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions