mitmproxy / mitmproxy/mitmproxy

apple m1 cannot allocate write+execute memory for ffi.callback().

Open
#4,605 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug upstream
Dominant language
Python
Stars
45.1k
Forks
4.7k
Avg merge
21h 12m
Merged PRs (30d)
16

Description

Problem Description

A clear and concise description of what the bug is.

Steps to reproduce the behavior:
  1. using m1 mac
  2. pip install mitmproxy,
  3. print mitmproxy. and appear error cannot allocate write+execute memory for ffi.callback()...
System Information

python env 3.9.1
Platform: macOS-11.2.3-arm64-arm-64bit
Mitmproxy: 6.0.2
OpenSSL: OpenSSL 1.1.1i 8 Dec 2020

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported installation and import steps on an Apple M1 Mac with Python 3.9.1, mitmproxy 6.0.2, and macOS 11.2.3. Investigate the ffi.callback() write+execute memory allocation failure; done means mitmproxy imports without that error on the reported platform.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.