最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pyenv generates huge PYENV_HOOK_PATHPATH and passes it to execve as **env returning Arg list too long - Stack Overflow

programmeradmin4浏览0评论

Using pyenv to build old Android source using Python 2.7 on Ubuntu 24.04, pyenv results in: /home/user/.pyenv/libexec/pyenv: line 138: /home/user/.pyenv/libexec/pyenv-exec: Argument list too long (errno E2BIG)

Tracking the error down to a call into bash::execute_cmd.c::shell_execve(char *command, char **args, char **env), pyenv has created and passed both PYENV_HOOK_PATH (10455 bytes) and PATH (131147 bytes) equal to a huge env arguments that exceeds the system maximum size. I am unsure if the failure is a single item or the collection of args/env.

$ pyenv --version pyenv 2.5.3

I modified the bash shell on my system to dump the size and contents of all execve args and env parameters in order to see what pyenv was doing at the time of failure.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论