indygreg / indygreg/PyOxidizer

mach not yet supported (pyoxidizer analyze)

Open
#661 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

I have a binary built by pyoxidizer ([Mercurial](https://foss.heptapod.net/mercurial/mercurial-devel/-/tree/branch/default/rust/hgcli)). It's failing to invoke `readline.get_completer` and I'd like to inspect why. I thought `pyoxidizer analyze` might tell me more about what files are in the executable, but when I run it on the binary, I get this error:

```
$ pyoxidizer analyze /usr/local/bin/hg
thread 'main' panicked at 'mach not yet supported', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tugger-binary-analysis-0.6.0/src/audit.rs:34:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

PyOxidizer is installed using `pipx install pyoxidizer` on macOS 13.0.1 on Apple Silicon.

```
$ pyoxidizer -V
PyOxidizer 0.23.0
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the `pyoxidizer analyze` command and the `tugger-binary-analysis-0.6.0/src/audit.rs:34:13` panic reported in the issue. Investigate how Mach-O binaries on macOS and Apple Silicon are handled, then verify that analyzing `/usr/local/bin/hg` no longer panics and provides the requested executable inspection.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.