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

Compressed executables are killed by macOS zsh #786

Closed
ttc0419 opened this issue Feb 12, 2024 · 1 comment
Closed

Compressed executables are killed by macOS zsh #786

ttc0419 opened this issue Feb 12, 2024 · 1 comment
Labels
duplicate The issue is a duplicate. os:macOS

Comments

@ttc0419
Copy link

ttc0419 commented Feb 12, 2024

What's the problem (or question)?

Compressed executables are killed by macOS zsh.

What should have happened?

Executables should work as intended

Do you have an idea for a solution?

Nope

How can we reproduce the issue?

  1. Create a basic hello world C program
#include <stdio.h>

int main(void)
{
    puts("Hello world!");
    return 0;
}
  1. clang hello.c
  2. upx a.out
  3. Run the executable
[u@mbp d](master)% ./a.out 
zsh: killed     ./a.out

Please tell us details about your environment.

  • UPX version used (upx --version):
upx 4.1.0
UCL data compression library 1.03
zlib data compression library 1.2.13.1-motley
LZMA SDK version 4.43
doctest C++ testing framework version 2.4.11
Copyright (C) 1996-2023 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2023 Laszlo Molnar
Copyright (C) 2000-2023 John F. Reiser
Copyright (C) 2002-2023 Jens Medoch
Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
Copyright (C) 1999-2006 Igor Pavlov
Copyright (C) 2016-2023 Viktor Kirilov
UPX comes with ABSOLUTELY NO WARRANTY; for details type 'upx -L'.
  • Host and Target CPU architecture and Operating System version:
Darwin 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:30 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T8122 arm64
@markus-oberhumer
Copy link
Collaborator

Unfortunately UPX compressed binaries currently do not work on macOS 13 or later, thanks to undocumented changes by Apple.

Closing as duplicate of #612

@markus-oberhumer markus-oberhumer closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
@markus-oberhumer markus-oberhumer added the duplicate The issue is a duplicate. label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue is a duplicate. os:macOS
Projects
None yet
Development

No branches or pull requests

2 participants