Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Debug in PTP

Are you able to debug the program with gdb? i.e. set a breakpoint in main(), single step, print variables, etc?

There may be an option you need to pass to the mpicc command to enable the MPI debugging symbols.

Regards,
Greg

On Sep 26, 2017, at 5:44 PM, Francilio Araújo <francilioaraujo@xxxxxxxxx> wrote:

Yes. The project is configured with -g3.

Em ter, 26 de set de 2017 às 16:28, Greg Watson <g.watson@xxxxxxxxxxxx> escreveu:
Have you compiled your program with debugging (the "-g" flag)?

Regards,
Greg

On Sep 26, 2017, at 1:02 PM, Francilio Araújo <francilioaraujo@xxxxxxxxx> wrote:

Hello everyone,

I'm trying to debug a simple MPICH application in PTP 9.1.2.201705091731, Eclipse Oxygen on Linux Ubuntu 14.04 LTS. But I keep receiving this message

"b9dae14c-351e-4fe8-8d76-f7206a2e21c4: FAILED
Use of uninitialized value $response in pattern match (m//) at /home/francilio/.eclipsesettings/rms/MPICH2/start_debug_job.pl line 109.
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Opera��ão não permitida.
/home/francilio/eclipse-workspace/mpiTesting/Debug/11539: Arquivo ou diretório n��o encontrado.
Nenhuma tabela de s\303\255mbolos est\303\241 carregada. Use o comando "file".
Error reading MPIR_debug_state at /home/francilio/.eclipsesettings/rms/MPICH2/start_debug_job.pl line 66.
#PTP job_id=11539
[mpiexec@MINIMAX012] Sending Ctrl-C to processes as requested
[mpiexec@MINIMAX012] Press Ctrl-C again to force abort"

The error seem to be generated in this line "$response = $gdb->get("print MPIR_debug_state");". When I run "print MPIR_debug_state" in gdb 7.7.1 I get "Nenhuma tabela de símbolos está carregada. Use o comando "file"." (No symbol table is loaded. use 'file' command).
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user


Back to the top