Closed alejandroclaro closed 2 years ago
Pull request with a proposed fix: fix bad udev_device_get_parent unref
#38
Hi, I reviewed, applied your patch and published it. We're done here, I guess?
Thanks @cheery we will test it again.
@cheery I can confirm it's working now. We have been testing for some days and everything is fine now. Thanks!
Looks like there is an incorrect reference counting management with libudev in line 180 of udev.cc
According to the documentation:
https://manpages.debian.org/testing/libudev-dev/udev_device_get_parent.3.en.html
The function
udev_device_get_parent
do not increment the reference, and the child node have a reference to the returned device. In some version of libudev, this triggers an assertion and the program is aborted:Changing the code around line 180 to this seems to fix the issue: