Open Bug 1605968 Opened 6 years ago Updated 5 years ago

|./mach test python| aborts on macOS 10.15: "zsh: abort ./mach test python"

Categories

(Firefox Build System :: Mach Core, defect, P3)

Unspecified
macOS
defect

Tracking

(firefox73 affected)

Tracking Status
firefox73 --- affected

People

(Reporter: cpeterson, Unassigned)

Details

(Keywords: in-triage)

I am running macOS 10.15.2 and zsh. I can run other tests using mach (such as ./mach test xpcshell), but trying to run ./mach test python or ./mach python-test aborts without running any Python tests:

firefox % ./mach test python
zsh: abort      ./mach test python
firefox % ./mach --verbose test python
zsh: abort      ./mach --verbose test python

I tried stepping through mach with ./mach --debug-command test python in the Python debugger. I've never used the Python debugger before, but it seems to be aborting when trying to install some pip package here:

https://searchfox.org/mozilla-central/rev/c79fc6e32a5b561205a71fcfef9112d34b4037ae/python/mozbuild/mozbuild/base.py#832

I see there a Homebrew issue called "pip3 aborts immediately on Catalina Release version" that might be related (though I can run pip3 commands like pip3 list without problems):

https://github.com/Homebrew/homebrew-core/issues/44996

Keywords: in-triage
Priority: -- → P3
Assignee: nobody → cmanchester

I tried several different ways to reproduce this on the latest macOS 10.15 with zsh (including installing the bogus package mentioned in that github issue), but I wasn't able to. Can you post the list of installed packages you have locally?

Here are the Python packages I have installed. Just let me know if you'd like me to uninstall any (or all) of them to debug this issue.

% brew list -1 --versions | grep python
python 3.7.6_1
python@2 2.7.17_1

% pip3 list
Package Version


mercurial 5.2.2
MozPhab 0.1.71
pip 19.3.1
setuptools 42.0.2
wheel 0.33.6

% ls -1 /usr/local/lib/python3.7/site-packages/
MozPhab-0.1.71.dist-info/
pycache/
easy_install.py
hgdemandimport/
hgext/
hgext3rd/
mercurial/
mercurial-5.2.2-py3.7.egg-info@
mozphab/
pip/
pip-19.3.1-py3.7.egg-info/
pkg_resources/
setuptools/
setuptools-42.0.2-py3.7.egg-info/
sitecustomize.py
wheel/
wheel-0.31.1-py3.7.egg-info/
wheel-0.32.2-py3.7.egg-info/
wheel-0.32.3-py3.7.egg-info/
wheel-0.33.0-py3.7.egg-info/
wheel-0.33.1-py3.7.egg-info/
wheel-0.33.4-py3.7.egg-info/
wheel-0.33.6-py3.7.egg-info/

I attempted to make my local set of installed packages as close to comment 2, but I wasn't ever able to reproduce this.

Assignee: cmanchester → nobody

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Mach Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.