https://bugs.kde.org/show_bug.cgi?id=489222

--- Comment #6 from Jakob Petsovits <jpe...@petsovits.com> ---
(In reply to ezh from comment #4)
> Is this format OK?

Thanks, that's a good trace. Looking at the code, I wonder if in ddcutil's
ddc_close_display() (at ddc/ddc_packet_io.c:373, according to your trace) the
hash table is concurrently being accessed from another thread.

That file has a mutex for its `open_displays` global variable (called
`open_displays_mutex`) but it's not in use for opening and closing displays.
The ddc_open_display() function has a comment "protect with lock?" next to a
similar access of the same variable. Our code is setting the brightness from a
different thread than the one that was used to initialize ddcutil. I could
imagine that powerdevil's brightness setting code is doing something to
`open_displays` at the same time as ddcutil's background display/connection
monitoring code.

Do you have backtraces of any further threads that might also show ddcutil
functions happening simultaneously?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to