Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Increasing reference count seems to help. WHY?
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 22 Jan 2020 21:53:37 +0000 (22:53 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 24 Jan 2020 21:04:06 +0000 (22:04 +0100)
Fixed: python-actor-migrate, python-exec-async, python-exec-dvfs, python-exec-remote.

src/bindings/python/simgrid_python.cpp

index 279f72e..1f51fde 100644 (file)
@@ -321,6 +321,8 @@ PYBIND11_MODULE(simgrid, m)
                                             "application, see :ref:`class s4u::Actor <API_s4u_Actor>`")
       .def("create",
            [](py::str name, Host* host, py::object fun, py::args args) {
+             fun.inc_ref();  // FIXME: why is this needed for tests like exec-async, exec-dvfs and exec-remote?
+             args.inc_ref(); // FIXME: why is this needed for tests like actor-migrate?
              return simgrid::s4u::Actor::create(name, host, [fun, args]() {
                GilScopedAcquire py_context;
                try {