[petsc-users] error attaching debugger (again)

Jed Brown jedbrown at mcs.anl.gov
Fri Dec 23 15:37:06 CST 2011


On Fri, Dec 23, 2011 at 15:34, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> mpiexec -n 2 Solver run.xml -start_in_debugger -display :0.0
> [0]PETSC ERROR: PETSC: Attaching gdb to Solver of pid 16633 on display
> :0.0 on machine tharsis
> [1]PETSC ERROR: PETSC: Attaching gdb to Solver of pid 16634 on display
> :0.0 on machine tharsis
> xterm Xt error: Can't open display: :0.0
> xterm Xt error: Can't open display: :0.0
>

-start_in_debugger usually works correctly without also adding the -display
option. If that fails, you need to figure out what does work. You can try

xterm -display tharsis:0

perhaps fix xhost, perhaps use ssh -X. Once you have figured out how to
forward the display with a simple program, try the PETSc program.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111223/d65d0973/attachment-0001.htm>


More information about the petsc-users mailing list