[ET Trac] #2908: Cactus: Fixed arg list too long error.

Max Morris trac-noreply at einsteintoolkit.org
Wed Dec 17 17:14:48 CST 2025


#2908: Cactus: Fixed arg list too long error.

 Reporter: Max Morris
   Status: submitted
Milestone: 
  Version: 
     Type: bug
 Priority: major
Component: 

[https://bitbucket.org/cactuscode/cactus/pull-requests/175](https://bitbucket.org/cactuscode/cactus/pull-requests/175)

There is a check in `lib/make/make.thornlib` to ensure that `sh` is not passed an argument string which is too long. However, this check is not robust enough because it counts words instead of characters/bytes and compares against arbitrary magic numbers rather than checking the max argument string length of the system. I am working on a thorn which fails to build as a direct result of the faulty check.

This PR replaces the existing check with a more robust one based on `$ getconf ARG_MAX`, with reasonable fallback behavior if the system shell somehow doesn’t support this command.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2908/cactus-fixed-arg-list-too-long-error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20251217/16818668/attachment.htm>


More information about the Trac mailing list