Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] debug in parallel

I have edited the lines 108 and  126 (also with MPR_debug_state)
and when i launch Eclipse debugger i have now the error :
"Error completing launch
Reason:
Project does not exist or is not a project type"

All is fine to run the program without debug

Le 27/09/2019 à 16:39, Greg Watson a écrit :
I run mpiexec with gdb as you asked, but i think there is a problem : gdb doesn't stop on the main function
That may or may not be a problem. Let’s try this first. Can you edit ~/.eclipsesettings/rms/MPICH2/start_debug_job.pl and add ‘(int)’ to the line that prints ‘MPIR_debug_state' (line 108)?
After the change it should read:

        $response = $gdb->get("print (int) MPIR_debug_state");

Regards,
Greg

On Sep 27, 2019, at 2:45 AM, bruno.guerraz@xxxxxxxxxx wrote:

MPICH version is 3.3a2

I run mpiexec with gdb as you asked, but i think there is a problem : gdb doesn't stop on the main function
Here are the logs :

$ gdb /usr/bin/mpiexec
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
...
Reading symbols from /usr/bin/mpiexec...(no debugging symbols found)...done.
(gdb) b main
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (main) pending.
(gdb) r
Starting program: /usr/bin/mpiexec
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[mpiexec@yd-CZC4510HN7] set_default_values (ui/mpich/utils.c:1529): no executable provided
[mpiexec@yd-CZC4510HN7] HYD_uii_mpx_get_parameters (ui/mpich/utils.c:1740): setting default values failed
[mpiexec@yd-CZC4510HN7] main (ui/mpich/mpiexec.c:149): error parsing parameters
[Inferior 1 (process 24633) exited with code 0377]
(gdb) p MPIR_debug_state
'MPIR_debug_state' has unknown type; cast it to its declared type
(gdb) p (int) MPIR_debug_state
$1 = 0


Le 27/09/2019 à 02:47, Greg Watson a écrit :
Bruno,

What version of MPICH are you using?

If you run ‘gdb /path/to/mpiexec’ from the command line, then enter the commands:

b main
run
print MPIR_debug_state

what does it say?

Greg

On Sep 26, 2019, at 2:39 AM, bruno.guerraz@xxxxxxxxxx wrote:

Hi Greg,
thank you for your answer.
I just installed Devel:GDB and Expect modules.

But i still have an error :
Use of uninitialized value $response in pattern match (m//) at /home/boeg7312/.eclipsesettings/rms/MPICH2/start_debug_job.pl line 109.
29    ../sysdeps/unix/sysv/linux/poll.c: No file or directory
'MPIR_debug_state' has unknown type; cast it to its declared type
Error reading MPIR_debug_state at /home/boeg7312/.eclipsesettings/rms/MPICH2/start_debug_job.pl line 66.
#PTP job_id=26402

Regards,
Bruno

Le 25/09/2019 à 20:59, Greg Watson a écrit :
Hi Bruno,

Sorry it’s taken so long to get back to you!

It looks like the GDB perl module is not installed on your compute nodes, so the start_debug_job.pl perl script is failing. Is it possible to have the module installed?

Regards,
Greg

On Aug 2, 2019, at 1:13 PM, bruno.guerraz@xxxxxxxxxx wrote:

Hi all,

I want to use eclipse PTP on an existing cmake project. I am using MPICH on Ubuntu 18.04 with Eclipse 2019-06 (4.12.0).

Everything is OK for building and running my program in parallel. But there is an issue for debugging; when I run the debugger, I get the following message :

Can't locate Devel/GDB.pm in @INC (you may need to install the Devel::GDB module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/boeg7312/.eclipsesettings/rms/MPICH2/start_debug_job.pl line 17.
BEGIN failed--compilation aborted at /home/boeg7312/.eclipsesettings/rms/MPICH2/start_debug_job.pl line 17.

For the time being I launch everything locally, on a single machine.

Any help would be appreciated...

Bruno





_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.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://www.eclipse.org/mailman/listinfo/ptp-user
_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.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://www.eclipse.org/mailman/listinfo/ptp-user

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.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://www.eclipse.org/mailman/listinfo/ptp-user

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

Back to the top