-
Notifications
You must be signed in to change notification settings - Fork 2.4k
linux: environment variable values grow beyond MAX_ARG_STRLEN, making exec fail #33237
Copy link
Copy link
Open
Labels
Description
Currently py-scipy fails to build in gitlab ci, due the following:
py-pythrangenerates 256 include dirs, which are set as a colon-seperated string in theSPACK_INCLUDE_DIRSenvironment variable;- due to install path padding each path is at least 512 bytes in size
This results in a string of at least 128KB, which is at least MAX_ARG_STRLEN = 32 * PAGE_SIZE = 32 * 4KB = 128KB.
And this makes exec syscalls fail, since they have a limit on the argument length (env variables are just arguments after argv):
resulting in E2BIG or Argument list too long, which is the build error we see.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo