Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix infinite recursion when PEX_PYTHON points at a symlink #182

Closed
wants to merge 1 commit into from

Conversation

landism
Copy link
Contributor

@landism landism commented Nov 19, 2015

When PEX_PYTHON is in ~/.pexrc and set to a symlink, pex_bootstrapper repeatedly compares the symlink to the real path, determines they're not the same, and continues recursing. This goes on for hundreds of iterations until (it seems) something gets shoved out of the max env var length and the whole thing blows up because it can't find "locale".

@landism landism force-pushed the mlandis/pex_python_symlinks branch 2 times, most recently from 0549e4b to 2beb556 Compare November 19, 2015 15:17
@landism landism force-pushed the mlandis/pex_python_symlinks branch from 2beb556 to 1aeb863 Compare November 19, 2015 19:09
@kwlzn
Copy link
Contributor

kwlzn commented Nov 19, 2015

merged @ a3b0a6a using the rbt workflow. closing.

@kwlzn kwlzn closed this Nov 19, 2015
kwlzn pushed a commit to pantsbuild/pants that referenced this pull request Dec 2, 2015
Changelog:
```
* Fix infinite recursion when ``PEX_PYTHON`` points at a symlink.
  #182 pex-tool/pex#182

* Add ``/etc/pexrc`` to the list of pexrc locations to check.
  #183 pex-tool/pex#183

* Improve error messaging for platform constrained Untranslateable errors.
  #179 pex-tool/pex#179
```

Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/94480030

Bugs closed: 2654

Reviewed at https://rbcommons.com/s/twitter/r/3200/
peiyuwang pushed a commit to twitter/pants that referenced this pull request Dec 4, 2015
Changelog:
```
* Fix infinite recursion when ``PEX_PYTHON`` points at a symlink.
  pantsbuild#182 pex-tool/pex#182

* Add ``/etc/pexrc`` to the list of pexrc locations to check.
  pantsbuild#183 pex-tool/pex#183

* Improve error messaging for platform constrained Untranslateable errors.
  pantsbuild#179 pex-tool/pex#179
```

Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/94480030

Bugs closed: 2654

Reviewed at https://rbcommons.com/s/twitter/r/3200/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants