Skip to main content

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

Hi Greg,
thank you, anyway. Therefore, we must conclude that there's no way to inspect STL container with the SDM/GDB parallel debugger. I'm right?
Bests,

Marco


Da: ptp-user-request@xxxxxxxxxxx
A: ptp-user@xxxxxxxxxxx
Inviato: Martedì, 25 febbraio 2014 18:00:07
Oggetto: ptp-user Digest, Vol 87, Issue 19

Send ptp-user mailing list submissions to
        ptp-user@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/ptp-user
or, via email, send a message with subject or body 'help' to
        ptp-user-request@xxxxxxxxxxx

You can reach the person managing the list at
        ptp-user-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ptp-user digest..."


Today's Topics:

   1. Re: parallel debug STL Container (Greg Watson)


----------------------------------------------------------------------

Message: 1
Date: Tue, 25 Feb 2014 10:28:48 -0500
From: Greg Watson <g.watson@xxxxxxxxxxxx>
To: PTP User list <ptp-user@xxxxxxxxxxx>
Subject: Re: [ptp-user] parallel debug STL Container
Message-ID: <63DDB1EE-C164-403E-A715-B09C217F5313@xxxxxxxxxxxx>
Content-Type: text/plain; charset="windows-1252"

Marco,

I?ve taken a look at your code. Unfortunately the debugger does not support displaying STL containers (either natively or using python in this way). Although I couldn?t repeat the exact issue, I?d say the segmentation fault is because of the use of the python pretty printer. This would be a nice feature to have, but the way the debugger works currently with it?s own data types precludes this.

Regards,
Greg

On Feb 18, 2014, at 10:59 AM, Marco Cisternino <marco.cisternino@xxxxxxxxxx> wrote:

> Hi to all,
> I'm new on the list and I'm a PTP newbie!!
> I would like to debug my parallel c++ code in PTP. The matter is: STL Container!!
> I hope someone can help me, I really don't know what to do.
> I'm able to inspect STL Container in serial codes using eclipse and gdb.
> But I'm going crazy with them in parallel.
> My parallel debug configuration:
> Open MPI-Generic-Interactive
> Connection Type: local (?????)
> Number of processes: 1
> Debugger: SDM
> Debugger backend: gdb-mi
> Use built-in SDM ....
> All the rest is set at default values.
>
> .gdbinit looks like
> python
> import sys
> sys.path.insert(0, '/home/marco/gdb_printers/python')
> from libstdcxx.v6.printers import register_libstdcxx_printers
> register_libstdcxx_printers (None)
> end
>
>
> If I run the parallel debug session everything works fine, until I select Variables view and stl container are in it. If so, things get ruined:
> - stl container have no value
> - not all stl container are in Variables view
> - and waiting for some seconds you get a python error like this and a Segmentation Fault stopping mpirun, like this:
>   close failed in file object destructor:
>   sys.excepthook is missing
>   lost sys.stderr
>   --------------------------------------------------------------------------
>   mpirun noticed that process rank 0 with PID 21677 on node lello exited on signal 11 (Segmentation fault).
> - from this point on a weird error is continuously produced:
>   Error on tasks: 0 - Partial _expression_ evaluation error!
>   Reason: Time out for this request.
> - if I close Parallel Debugger Perspective, Eclipse exit unexpectedly.
>
> I think it is obvious that not only a C code works perfectly in parallel debug with the same configuration, but I can use command line (parallel with xterm) gbd with no problem.
> Is there a way to debug c++ parallel code in eclipse, inspecting STL container?
>
> Thanks a lot for any suggestion.
> Best regards,
>
> Marco Cisternino
>
>
> _______________________________________________
> ptp-user mailing list
> ptp-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/ptp-user/attachments/20140225/a8a04f29/attachment.html>

------------------------------

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user


End of ptp-user Digest, Vol 87, Issue 19
****************************************


Back to the top