<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Grande";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Arial",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thanks for that.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Tarun<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="mso-ligatures:none">From:</span></b><span style="mso-ligatures:none"> Raffenetti, Ken <raffenet@anl.gov>
<br>
<b>Sent:</b> Monday, September 18, 2023 2:44 PM<br>
<b>To:</b> discuss@mpich.org; Thakur, Rajeev <thakur@anl.gov><br>
<b>Cc:</b> Kumar, Tarun (DI SW ICS DVT RD QSCE) <kumar.tarun@siemens.com><br>
<b>Subject:</b> Re: [mpich-discuss] Core dump in parse_args<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Tarun,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We did find that there is a hardcoded limit of ~1000 command line arguments. If you want a temporary workaround, you can increase the value of this define in the MPICH source to something larger:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#define HYD_NUM_TMP_STRINGS 1000<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I created <a href="https://github.com/pmodels/mpich/issues/6681">
https://github.com/pmodels/mpich/issues/6681</a> to track progress on a more robust fix.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ken<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black;mso-ligatures:none">From:
</span></b><span style="font-size:12.0pt;color:black;mso-ligatures:none">"Raffenetti, Ken via discuss" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Reply-To: </b>"<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Date: </b>Monday, September 18, 2023 at 4:23 PM<br>
<b>To: </b>"<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>>, "Thakur, Rajeev" <<a href="mailto:thakur@anl.gov">thakur@anl.gov</a>><br>
<b>Cc: </b>"Raffenetti, Ken" <<a href="mailto:raffenet@anl.gov">raffenet@anl.gov</a>>, "<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>" <<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>><br>
<b>Subject: </b>Re: [mpich-discuss] Core dump in parse_args<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:.5in">I’m not aware of a hard-coded limit, but I am able to reproduce a segfault reliably by passing 1000 arguments a toy executable. Will update with more info when we have it.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Ken<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span style="font-size:12.0pt;color:black;mso-ligatures:none">From:
</span></b><span style="font-size:12.0pt;color:black;mso-ligatures:none">"kumar.tarun--- via discuss" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Reply-To: </b>"<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Date: </b>Friday, September 15, 2023 at 4:57 PM<br>
<b>To: </b>"Thakur, Rajeev" <<a href="mailto:thakur@anl.gov">thakur@anl.gov</a>>, "<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Cc: </b>"<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>" <<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>><br>
<b>Subject: </b>Re: [mpich-discuss] Core dump in parse_args<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:1.0in"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thanks Rajeev for your reply.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I don’t have the exact number as of now. It’s definitely more than 1000. Is there a hard coded limit?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Regards<br>
Tarun<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span style="mso-ligatures:none">From:</span></b><span style="mso-ligatures:none"> Thakur, Rajeev <<a href="mailto:thakur@anl.gov">thakur@anl.gov</a>>
<br>
<b>Sent:</b> Friday, September 15, 2023 2:40 PM<br>
<b>To:</b> <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
<b>Cc:</b> Kumar, Tarun (DI SW ICS DVT RD QSCE) <<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>><br>
<b>Subject:</b> Re: [mpich-discuss] Core dump in parse_args<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Lucida Grande"">How many arguments?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Lucida Grande""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Lucida Grande"">Rajeev<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Lucida Grande""><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span style="font-size:12.0pt;color:black;mso-ligatures:none">From:
</span></b><span style="font-size:12.0pt;color:black;mso-ligatures:none">"kumar.tarun--- via discuss" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Reply-To: </b>"<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Date: </b>Friday, September 15, 2023 at 4:22 PM<br>
<b>To: </b>"<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
<b>Cc: </b>"<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>" <<a href="mailto:kumar.tarun@siemens.com">kumar.tarun@siemens.com</a>><br>
<b>Subject: </b>[mpich-discuss] Core dump in parse_args<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:1.0in"><span style="mso-ligatures:none"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> I recently encountered this crash where mpiexec when executed from a bash script and with a large number of arguments crashes. The core dump is
as follows:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">#0 0x0000000000408ec3 in parse_args ()<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">#1 0x0000000000409f26 in HYD_uii_mpx_get_parameters ()<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">#2 0x000000000040397a in main ()<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">If I reduce the number of arguments then I don’t see the crash. Is it a known issue?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Regards<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Tarun<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</div>
</body>
</html>