godbus / dbus

Native Go bindings for D-Bus
BSD 2-Clause "Simplified" License
959 stars 222 forks source link

Protect object map from concurrent access #340

Open ubkr opened 1 year ago

ubkr commented 1 year ago

In situations with many concurrent dbus requests and at the same time new objects are registered it is possible to end up in a situation where the object map is write and read accessed from different go routines resulting in a panic.

The patch is working in our setup but I've not run any test other than 'go test'

ubkr commented 1 year ago

@guelfey Hi, would it be possible to move this forward or do you think there is more needed by me?