8000 virt plugin: Race on refresh_lists() · Issue #3009 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
virt plugin: Race on refresh_lists() #3009
Open
@rpv-tomsk

Description

@rpv-tomsk

Moved discussion keypoints from #2990:

@formanirh, don't you think there can be race when one thread does
refresh_lists() -> lv_clean_read_state() -> free_block_devices()/free_interface_devices()/ free_domains(state) and another thread is inside of lv_read() and uses these structures?

refresh_lists() is done per instance, but there is another issue then: When one of read threads updates last_refresh then other threads will not be updated. I think last_refresh should be instance variable, not global.

cc @formanirh

Metadata

Metadata

Assignees

Labels

BugA genuine bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0