I would suggest to look at the set_shell_startup configuration option:
https://modules.readthedocs.io/en/latest/module.html#envvar-MODULES_SET_SHELL_STARTUP
When enabled, ENV and BASH_ENV variables are set to call Modules
initialization script on shell startup.
If the Modules initialization process relies on bash execution, it may
create such infinite bash spawn loop.
If this is what is causing your issue, you have 2 choices:
* disable set_shell_startup
* update Modules initialization process not to rely on bash execution
Best regards,
Xavier
Le mer. 12 févr. 2025 à 16:53, Paul Markfort <pau...@gm...> a écrit :
>
> Do you know what instructions are calling bash in a loop?
> Does it show any repeating output in the recursive state ?
>
> Is it possible that the newer modules has added a module instruction (alias or function) that is the same name as a script or command you normally call in your initialization scripts? ( ml comes to mind, but there are likely others).
>
> There are these bash functions (there may be more):
> _installed_modules ()
> _module_raw ()
> _modules ()
> module ()
>
> These are these bash completion functions that are added:
> _module_comgen_words_and_files()
> _module_avail()
> _module_savelist()
> _module_stashlist()
> _module_not_yet_loaded()
> _module_long_arg_list()
> _module()
>
>
> Also, are you using the environment quarantine feature (which was not available in 4)?
>
>
>
> On 2025-02-12 8:32 AM, Scott Hampton via Modules-interest wrote:
> > We're currently running Modules 4.x because on any 5.x version we try, jobs
> > submitted to Grid Engine (GE) cause a recursive bash loop:
> >
> > /bin/bash: warning: shell level (1000) too high, resetting to 1
> >
> > Eventually, GE gives up and puts the node in an error state, but it also
> > reschedules the job such that if left unchecked, our entire cluster ends up
> > disabled.
> >
> > I feel like this is a GE issue or likely something specific to our site
> > setup, but since we haven't had any luck figuring it out I thought I would
> > ask here to see if anyone might have any ideas.
> >
> >
> >
> > _______________________________________________
> > Modules-interest mailing list
> > Mod...@li...
> > https://lists.sourceforge.net/lists/listinfo/modules-interest
> >
>
> --
> --------------------------------------------------------
> The views and opinions expressed above are strictly
> those of the author(s). The content of this message has
> not been reviewed nor approved by any entity whatsoever.
> --------------------------------------------------------
> Paul FM Info: http://paulfm.com/~paulfm/
> --------------------------------------------------------
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|