Thanks. Good to know. I will explore further.

 

Regards

Tarun

 

From: Zhou, Hui <zhouh@anl.gov>
Sent: Monday, September 18, 2023 2:34 PM
To: discuss@mpich.org; Thakur, Rajeev <thakur@anl.gov>
Cc: Raffenetti, Ken <raffenet@anl.gov>; Kumar, Tarun (DI SW ICS DVT RD QSCE) <kumar.tarun@siemens.com>
Subject: Re: [mpich-discuss] Core dump in parse_args

 

Hydra supports -configfile {name}​ option, so one could try putting all his commandline arguments in a file and pass that to hydra.

 

Hui

 


From: Raffenetti, Ken via discuss <discuss@mpich.org>
Sent: Monday, September 18, 2023 4:22 PM
To: discuss@mpich.org <discuss@mpich.org>; Thakur, Rajeev <thakur@anl.gov>
Cc: Raffenetti, Ken <raffenet@anl.gov>; kumar.tarun@siemens.com <kumar.tarun@siemens.com>
Subject: Re: [mpich-discuss] Core dump in parse_args

 

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.

 

Ken

 

From: "kumar.tarun--- via discuss" <discuss@mpich.org>
Reply-To: "discuss@mpich.org" <discuss@mpich.org>
Date: Friday, September 15, 2023 at 4:57 PM
To: "Thakur, Rajeev" <thakur@anl.gov>, "discuss@mpich.org" <discuss@mpich.org>
Cc: "kumar.tarun@siemens.com" <kumar.tarun@siemens.com>
Subject: Re: [mpich-discuss] Core dump in parse_args

 

Thanks Rajeev for your reply.

I don’t have the exact number as of now. It’s definitely more than 1000. Is there a hard coded limit?

 

Regards
Tarun

 

From: Thakur, Rajeev <thakur@anl.gov>
Sent: Friday, September 15, 2023 2:40 PM
To: discuss@mpich.org
Cc: Kumar, Tarun (DI SW ICS DVT RD QSCE) <kumar.tarun@siemens.com>
Subject: Re: [mpich-discuss] Core dump in parse_args

 

How many arguments?

 

Rajeev

 

From: "kumar.tarun--- via discuss" <discuss@mpich.org>
Reply-To: "discuss@mpich.org" <discuss@mpich.org>
Date: Friday, September 15, 2023 at 4:22 PM
To: "discuss@mpich.org" <discuss@mpich.org>
Cc: "kumar.tarun@siemens.com" <kumar.tarun@siemens.com>
Subject: [mpich-discuss] Core dump in parse_args

 

Hi,

     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:

 

#0  0x0000000000408ec3 in parse_args ()

#1  0x0000000000409f26 in HYD_uii_mpx_get_parameters ()

#2  0x000000000040397a in main ()

 

If I reduce the number of arguments then I don’t see the crash. Is it a known issue?

 

Regards

Tarun