ray-project / ray-legacy

An experimental distributed execution engine
BSD 3-Clause "New" or "Revised" License
21 stars 18 forks source link

Handle recursive objects or throw an exception. #412

Closed robertnishihara closed 8 years ago

robertnishihara commented 8 years ago

The following leads to an infinite loop (and hence a segfault).

import ray
ray.init(start_ray_local=True, num_workers=0)

l = []
l.append(l)
ray.put(l)  # This causes a segmentation fault.

The way we serialize objects currently does not allow for recursive objects.

robertnishihara commented 8 years ago

This is addressed by #440.