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

rlimit cannot be set at runtime on macOS #3

Open
boshmaf opened this issue Jul 24, 2023 · 0 comments · May be fixed by #4
Open

rlimit cannot be set at runtime on macOS #3

boshmaf opened this issue Jul 24, 2023 · 0 comments · May be fixed by #4

Comments

@boshmaf
Copy link

boshmaf commented Jul 24, 2023

When attempting to run eTainter on macOS (currently 13.4.1), it crashes with the following traceback:

Traceback (most recent call last):
  File "/etc/local/eTainter/bin/analyzer.py", line 290, in <module>
    main()
  File "/etc/local/projects/eTainter/bin/analyzer.py", line 254, in main
    resource.setrlimit(rsrc, (mem_limit, mem_limit))  
ValueError: current limit exceeds maximum limit

Actually, this issue is not specific to eTainter but affects Python on macOS as a whole (see [1] and [2]).

I suggest to escape the rlimit modification on non-Linux systems to prevent this kind of issue.

References:
[1] https://bugs.python.org/issue34602
[2] python/cpython#14546

boshmaf added a commit to boshmaf/eTainter that referenced this issue Jul 24, 2023
@boshmaf boshmaf linked a pull request Jul 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant