I tried to run X under valgrind to see if disconnecting a device would provide any clues. Unfortunately, it didn't. I hit a crash when X tries to use snprintf from signal context when mtdev_get returns an error, but that's irrelevant to this bug. I removed the logging line, but then I don't get any valgrind errors.
Basically, I can't reproduce the bug with my hardware by merely adding and removing a device.
I tried to run X under valgrind to see if disconnecting a device would provide any clues. Unfortunately, it didn't. I hit a crash when X tries to use snprintf from signal context when mtdev_get returns an error, but that's irrelevant to this bug. I removed the logging line, but then I don't get any valgrind errors.
Basically, I can't reproduce the bug with my hardware by merely adding and removing a device.