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

Segfault under Python 3.13 with --mix-str #2095

Open
joonis opened this issue Mar 25, 2025 · 2 comments
Open

Segfault under Python 3.13 with --mix-str #2095

joonis opened this issue Mar 25, 2025 · 2 comments
Labels

Comments

@joonis
Copy link
Contributor

joonis commented Mar 25, 2025

Stripped down example script::

def foo(x):
    x = x + 'some longer string'

foo('a')

Obfuscated with Pyarmor 9.1.2 under Linux / Python 3.13:

> pyarmor cfg wrap_mode=2 clear_frame_locals=1
> pyarmor gen -i --mix-str -O ./dist ./myscript.py

The execution of the obfuscated script results in a segmentation fault. It does not occur without --mix-str or when adding a short string.

@joonis joonis added the bug label Mar 25, 2025
@jondy
Copy link
Contributor

jondy commented Mar 25, 2025

Reproduced, I'll check it.

@jondy
Copy link
Contributor

jondy commented Mar 26, 2025

The new instr LOAD_FAST_LOAD_FAST results in this issue

It will be fixed in next release, got pre release from

https://pyarmor.dashingsoft.com/downloads/temp/pyarmor-9.1.3.tar.gz

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants