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

Segmentation fault in certain cases when using ray with rllab. #497

Closed
robertnishihara opened this issue Apr 29, 2017 · 2 comments
Closed

Comments

@robertnishihara
Copy link
Collaborator

The following code segfaults (you have to install rllab first).

import ray
import rllab.misc.ext

ray.init()

@ray.actor
class Foo(object):
    def __init__(self):
        super().__init__()

Foo()
@robertnishihara
Copy link
Collaborator Author

The problem is with the line

sys.setrecursionlimit(50000)

in rllab/rllab/misc/ext.py (see https://github.com/openai/rllab/blob/master/rllab/misc/ext.py).

If you comment out the line import rllab.misc.ext in the example, the example doesn't segfault and instead raises an exception

PicklingError: Could not pickle object as excessively deep recursion required.

The exception is raised for reasons discussed in #449. However, since rllab raises the recursion limit, something presumably overflows.

@robertnishihara
Copy link
Collaborator Author

Closing because this is not really a problem with Ray.

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

No branches or pull requests

1 participant