Skip to content

rlimit cannot be set at runtime on macOS #3

@boshmaf

Description

@boshmaf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions