upkie / vulp

Robot/simulation switch for the mjbots stack
Apache License 2.0
61 stars 4 forks source link

Spine interface destroys shared memory on exit #88

Closed stephane-caron closed 4 months ago

stephane-caron commented 4 months ago

Bug description

Spine interfaces instantiated from Python processes destroy the shared-memory file upon exit.

Expected behavior

The shared-memory file is managed by the C++ spine process and should not be destroyed by agents.

Reproduction steps

Steps to reproduce the behavior:

  1. Run a simulation spine
  2. Run a Python agent
  3. Terminate the Python agent
  4. Check shared memory files (e.g. /dev/shm on Linux)

System

stephane-caron commented 4 months ago

I believe we are running into https://github.com/python/cpython/issues/82300