<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hydra supports <code>-configfile {name}</code>​ option, so one could try putting all his commandline arguments in a file and pass that to hydra.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<div>Hui<br>
</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Raffenetti, Ken via discuss <discuss@mpich.org><br>
<b>Sent:</b> Monday, September 18, 2023 4:22 PM<br>
<b>To:</b> discuss@mpich.org <discuss@mpich.org>; Thakur, Rajeev <thakur@anl.gov><br>
<b>Cc:</b> Raffenetti, Ken <raffenet@anl.gov>; kumar.tarun@siemens.com <kumar.tarun@siemens.com><br>
<b>Subject:</b> Re: [mpich-discuss] Core dump in parse_args</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Lucida Grande"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
span.x_EmailStyle19
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">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.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Ken</p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt; color:black">From:
</span></b><span style="font-size:12.0pt; color:black">"kumar.tarun--- via discuss" <discuss@mpich.org><br>
<b>Reply-To: </b>"discuss@mpich.org" <discuss@mpich.org><br>
<b>Date: </b>Friday, September 15, 2023 at 4:57 PM<br>
<b>To: </b>"Thakur, Rajeev" <thakur@anl.gov>, "discuss@mpich.org" <discuss@mpich.org><br>
<b>Cc: </b>"kumar.tarun@siemens.com" <kumar.tarun@siemens.com><br>
<b>Subject: </b>Re: [mpich-discuss] Core dump in parse_args</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in"><span style=""> </span></p>
</div>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Thanks Rajeev for your reply.
</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><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?</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif"> </span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Regards<br>
Tarun</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-left:.5in"><b><span style="">From:</span></b><span style=""> Thakur, Rajeev <thakur@anl.gov>
<br>
<b>Sent:</b> Friday, September 15, 2023 2:40 PM<br>
<b>To:</b> discuss@mpich.org<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</span></p>
</div>
</div>
<p class="x_MsoNormal" style="margin-left:.5in"> </p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-family:"Lucida Grande",sans-serif">How many arguments?</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-family:"Lucida Grande",sans-serif"> </span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-family:"Lucida Grande",sans-serif">Rajeev</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-family:"Lucida Grande",sans-serif"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt; color:black">From:
</span></b><span style="font-size:12.0pt; color:black">"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</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in"><span style=""> </span></p>
</div>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Hi,</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><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:</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif"> </span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">#0  0x0000000000408ec3 in parse_args ()</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">#1  0x0000000000409f26 in HYD_uii_mpx_get_parameters ()</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">#2  0x000000000040397a in main ()</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif"> </span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><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?</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif"> </span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Regards</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Tarun</span></p>
<p class="x_MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt; font-family:"Arial",sans-serif"> </span></p>
</div>
</div>
</body>
</html>