<p>When debugging in parallel you will need to start the job without gdb and then connect individually to each of the pvserver processes with gdb.</p>
<p>The other option is to use a parallel debugger such as DDT or totalview - both are commercial but you can get a trial license. Note: I'm biased towards DDT as I used to work for Allinea and was one of the original developers!</p>
<p>Regards,<br>
Paul</p>
<div class="gmail_quote">On 26 Oct 2011 13:57, "Adriano Gagliardi" <<a href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Dear All,<br>
<br>
I'm trying to debug a parallel reader I am working on. I normally work with<br>
gdb and ParaView in serial client-server mode, which works fine. However,<br>
I'm now trying to debug the client-server mode when run in parallel using<br>
MPICH2 and I'm encountering issues.<br>
<br>
I've tried the following:<br>
<br>
(1) Run parallel pvserver first -> attach gdb to a process id -> start<br>
paraview client -> connect to server -> Result: client connected message<br>
appears then the client hangs.<br>
<br>
>>> mpirun -np 16 /path/to/ParaView-3.10.1-Debug/bin/pvserver<br>
>>> gdb --pid xxxx<br>
>>> paraview<br>
>>> (connect to client)<br>
<br>
(2) Run parallel pvserver first with gdb -> Result: pvserver does not start<br>
properly (no port message or waiting for client).<br>
<br>
>>> mpirun -np 16 gdb /path/to/ParaView-3.10.1-Debug/bin/pvserver<br>
gdb>> run<br>
>>> (server hangs)<br>
<br>
I tried the second option just in case it worked, but I was sure (and<br>
previous posts on the mailing lists showed) that the first option would<br>
work. I am using ParaView 3.10.1 Release built on CentOS5.4 using standard<br>
OS libraries with MPICH2.1.3.<br>
<br>
Is there something I've done wrong here? Any suggestions?<br>
<br>
Thanks,<br>
<br>
Adriano<br>
<br>
===================================<br>
<br>
Adriano Gagliardi MEng PhD<br>
Business Sector Leader<br>
Computational Aerodynamics<br>
Aircraft Research Association Ltd.<br>
Manton Lane<br>
Bedford<br>
<br>
Tel: 01234 32 4644<br>
E-mail: <a href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</a><br>
Url: <a href="http://www.ara.co.uk" target="_blank">www.ara.co.uk</a><br>
<br>
<br>
**********************************************************************<br>
This email contains information that is private and confidential and is intended only for the addressee.<br>
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>
Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>
system management and security reasons.<br>
Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office:<br>
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br>
<br>
**********************************************************************<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div>