<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Thanks. I found the problem and solved.<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 7:49 PM, <span dir="ltr"><<a href="mailto:discuss-request@mpich.org" target="_blank">discuss-request@mpich.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send discuss mailing list submissions to<br>
<a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:discuss-request@mpich.org">discuss-request@mpich.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:discuss-owner@mpich.org">discuss-owner@mpich.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: buffer overflow (Seo, Sangmin)<br>
2. Re: MPI process killed and SIGUSR1 (Wesley Bland)<br>
3. Problems in MPICH 3.1.3 installation in OSX 10.10 with ifort<br>
compiler and Xcode 6.1 (Alejandro de la Calle)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 27 Oct 2014 12:52:13 +0000<br>
From: "Seo, Sangmin" <<a href="mailto:sseo@anl.gov">sseo@anl.gov</a>><br>
To: "<<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
Subject: Re: [mpich-discuss] buffer overflow<br>
Message-ID: <<a href="mailto:7F837F15-3997-4DD9-9A36-915D94358C95@anl.gov">7F837F15-3997-4DD9-9A36-915D94358C95@anl.gov</a>><br>
Content-Type: text/plain; charset="Windows-1252"<br>
<br>
Hi Amjad,<br>
<br>
As the error message, "25 bytes received but buffer size is 24?, says, your buffer size is smaller than the message size. You need to increase your buffer which is the memory pointed to by the first argument of MPI_Recv.<br>
<br>
Best regards,<br>
Sangmin<br>
<br>
<br>
On Oct 27, 2014, at 12:27 AM, Md. Amjad Hossain <<a href="mailto:mhossai2@kent.edu">mhossai2@kent.edu</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I am sending and receiving a user defined (struct) data type using MPI_Send and MPI_Recv function. I am getting following buffer overflow error.<br>
><br>
> Fatal error in MPI_Recv: Message truncated, error stack:<br>
> MPI_Recv(187).....................: MPI_Recv(buf=0x7fff2248b930, count=1, dtype=USER<struct>, src=0, tag=1, MPI_COMM_WORLD, status=0x7fff2248b970) failed<br>
> MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 1 truncated; 25 bytes received but buffer size is 24<br>
><br>
><br>
> If I just send one byte less, everything is working properly. Could anyone please let me know which buffer it is and how can I increase the buffer size to avoid the error?<br>
><br>
> Regards<br>
> Amjad<br>
> _______________________________________________<br>
> discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 27 Oct 2014 09:50:14 -0500<br>
From: Wesley Bland <<a href="mailto:wbland@anl.gov">wbland@anl.gov</a>><br>
To: "<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
Subject: Re: [mpich-discuss] MPI process killed and SIGUSR1<br>
Message-ID: <<a href="mailto:1468A5AA-0D18-4ED9-9CEF-4D6625D6564C@anl.gov">1468A5AA-0D18-4ED9-9CEF-4D6625D6564C@anl.gov</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Is this still related to your FT problems or is this a separate problem?<br>
<br>
Thanks,<br>
Wesley<br>
<br>
> On Oct 27, 2014, at 6:52 AM, Roy, Hirak <<a href="mailto:Hirak_Roy@mentor.com">Hirak_Roy@mentor.com</a>> wrote:<br>
><br>
> Hi Wesley,<br>
><br>
> Here is my server.c and client.c.<br>
> I have explicitly added ?assert(0);? in client.c.<br>
> However my receive hangs in server and does not complete.<br>
><br>
> Could you please enlighten on this more.<br>
><br>
> Thanks,<br>
> Hirak<br>
><br>
><br>
> #include <sys/types.h><br>
> #include <unistd.h><br>
> #include "mpi.h"<br>
> #include <stdio.h><br>
> #include <assert.h><br>
> #include <stdlib.h><br>
> #include <fcntl.h><br>
><br>
><br>
> int main (int argc, char* argv[])<br>
> {<br>
><br>
> MPI_Init (&argc, &argv);<br>
> MPI_Errhandler_set(MPI_COMM_WORLD,MPI_ERRORS_RETURN);<br>
><br>
> char portname[MPI_MAX_PORT_NAME];<br>
> MPI_Open_port(MPI_INFO_NULL, portname);<br>
> MPI_Publish_name("RandomSession", MPI_INFO_NULL, portname);<br>
> printf ("Successfully published portname : %s\n", portname);<br>
> MPI_Comm newComm ;<br>
> MPI_Comm_accept (portname, MPI_INFO_NULL, 0, MPI_COMM_SELF, &newComm);<br>
> printf ("Successfully connected to client\n");<br>
> MPI_Errhandler_set(newComm, MPI_ERRORS_RETURN);<br>
><br>
> printf ("Waiting on receive\n");<br>
> int val = 0 ;<br>
> MPI_Status status;<br>
> int errcode = MPI_Recv(&val, 1, MPI_INT, 0, 99, newComm, &status);<br>
> int errclass ;<br>
> MPI_Error_class(errcode, &errclass);<br>
> if (errclass == MPI_SUCCESS) {<br>
> printf ("Received a message with tag 99\n");<br>
> MPI_Comm_disconnect (&newComm);<br>
> printf ("Disconnected client\n");<br>
> } else {<br>
> printf ("Receive error\n");<br>
> }<br>
><br>
><br>
> MPI_Unpublish_name("RandomSession", MPI_INFO_NULL, portname);<br>
> MPI_Close_port(portname);<br>
> MPI_Finalize();<br>
><br>
> }<br>
><br>
><br>
> #include <sys/types.h><br>
> #include <unistd.h><br>
> #include "mpi.h"<br>
> #include <stdio.h><br>
> #include <assert.h><br>
> #include <stdlib.h><br>
> #include <fcntl.h><br>
><br>
><br>
> int main (int argc, char* argv[])<br>
> {<br>
> MPI_Init (&argc, &argv);<br>
> MPI_Errhandler_set(MPI_COMM_WORLD,MPI_ERRORS_RETURN);<br>
><br>
> char portname[MPI_MAX_PORT_NAME];<br>
> if (MPI_Lookup_name("RandomSession", MPI_INFO_NULL, portname) == MPI_SUCCESS) {<br>
> printf ("Successfully got portname : %s\n", portname);<br>
> MPI_Comm newComm ;<br>
> MPI_Comm_connect (portname, MPI_INFO_NULL, 0, MPI_COMM_SELF, &newComm);<br>
> printf ("Successfully connected to server\n");<br>
> MPI_Errhandler_set(newComm, MPI_ERRORS_RETURN);<br>
><br>
> assert (0);<br>
> int val = 0 ;<br>
> MPI_Send(&val, 1, MPI_INT, 0, 99, newComm);<br>
> printf ("Send a message with tag 99\n");<br>
> MPI_Comm_disconnect (&newComm);<br>
> printf ("Disconnected client\n");<br>
> }<br>
> MPI_Finalize();<br>
> }<br>
> MPICH Version: 3.0.4<br>
> MPICH Release date: Wed Apr 24 10:08:10 CDT 2013<br>
> MPICH Device: ch3:sock<br>
> MPICH configure: --prefix /home/jlevitt/local/mpich-3.0.4/linux_x86_64 --disable-f77 --disable-fc --disable-f90modules --disable-cxx --enable-fast=nochkmsg --enable-fast=notiming --enable-fast=ndebug --enable-fast=O3 --with-device=ch3:sock CFLAGS=-O3 -fPIC CXXFLAGS=-O3 -fPIC<br>
> MPICH CC: /u/prod/gnu/gcc/20121129/gcc-4.5.0-linux_x86_64/bin/gcc -O3 -fPIC -O3<br>
> MPICH CXX: no -O3 -fPIC<br>
> MPICH F77: no<br>
> MPICH FC: no<br>
> _______________________________________________<br>
> discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a> <<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a>><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.mpich.org/pipermail/discuss/attachments/20141027/84de5126/attachment-0001.html" target="_blank">http://lists.mpich.org/pipermail/discuss/attachments/20141027/84de5126/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 27 Oct 2014 23:49:30 +0000<br>
From: Alejandro de la Calle <<a href="mailto:alejandrodelacallenegro@gmail.com">alejandrodelacallenegro@gmail.com</a>><br>
To: <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
Subject: [mpich-discuss] Problems in MPICH 3.1.3 installation in OSX<br>
10.10 with ifort compiler and Xcode 6.1<br>
Message-ID: <<a href="mailto:24999AA0-4FFA-4798-AD22-4571F0F9884C@gmail.com">24999AA0-4FFA-4798-AD22-4571F0F9884C@gmail.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi there,<br>
<br>
I am trying to build mpich 3.1.3. in a Mac OSX 10.10 Yosemite with Xcode 6.1 and intel compilers icc and ifort version 15.0.0 20140716. I get an error when I am building the installation. The error is the following:<br>
<br>
GEN lib/<a href="http://libpmpi.la" target="_blank">libpmpi.la</a><br>
ifort: command line warning #10006: ignoring unknown option '-force_load,src/mpl/.libs/libmpl.a'<br>
ifort: command line warning #10006: ignoring unknown option '-force_load,/Users/alejandrodelacallenegro/Downloads/mpich-3.1.3/src/openpa/src/.libs/libopa.a'<br>
ifort: command line warning #10006: ignoring unknown option '-force_load,src/mpi/romio/.libs/libpromio.a'<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: object: lib/.libs/libpmpi.a(initthread.o) malformed object (section contents at offset 0 with a size of 1056, overlaps Mach-O headers at offset 0 with a size of 768)<br>
<br>
I do not understand where the error come from, from the compiler or from libtool. I have also attached the outputs of the configuration and the build steps.<br>
<br>
Thanks for your time,<br>
<br>
Alex<br>
-------------- next part --------------<br>
An embedded and charset-unspecified text was scrubbed...<br>
Name: configuration.txt<br>
URL: <<a href="http://lists.mpich.org/pipermail/discuss/attachments/20141027/3e1e9143/attachment.txt" target="_blank">http://lists.mpich.org/pipermail/discuss/attachments/20141027/3e1e9143/attachment.txt</a>><br>
-------------- next part --------------<br>
An embedded and charset-unspecified text was scrubbed...<br>
Name: make.txt<br>
URL: <<a href="http://lists.mpich.org/pipermail/discuss/attachments/20141027/3e1e9143/attachment-0001.txt" target="_blank">http://lists.mpich.org/pipermail/discuss/attachments/20141027/3e1e9143/attachment-0001.txt</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
End of discuss Digest, Vol 24, Issue 32<br>
***************************************<br>
</blockquote></div><br></div></div>