Crash when reading properties from FileDatabase

Using a FileDatabase simplifies the setup for unit testing device servers.

I noticed that a simple operations of writing and then reading a device property from a FileDatabase results in a segmentation fault.

For example with a FileDatabase database.db:

servername/instance/DEVICE/mydevice: "device/mydevice/test"

and this code:

import os
from tango import Database

DB_NAME : str = "database.db"
DEV_NAME = "device/mydevice/test"

dbPath : str = os.path.dirname(os.path.realpath(__file__)) + os.path.sep + DB_NAME
db = Database(dbPath)
db.put_device_property(DEV_NAME, {"myProperty" : "someValue"})
db.write_filedatabase()
val = db.get_device_property(DEV_NAME, "myProperty")

I can see that the property is written to database.db but the following get_device_property ends the program with a segmentation fault.

I also noticed that other db calls raise exceptions like API not implemented or Unidentified C++ exception.

I am running pytango 10.0.0 on Debian Bookworm.

Edited by Michael Huth