Re: 2.6.30: hald crashes on resume from STR apparently on LED device

From: Andrey Borzenkov
Date: Sat Jun 27 2009 - 16:34:22 EST


On Monday 22 of June 2009 17:57:24 Richard Purdie wrote:
> On Sun, 2009-06-21 at 18:17 +0400, Andrey Borzenkov wrote:
> > So what happens is simple. During suspend led device is removed;
> > during resume it is recreated. Apparently removing led device cause
> > hald-addon- leds to exit (thus disconnecting D-Bus connection); and
> > sometimes next "add" event comes too early, before hald had chance
> > to notice missing addon.
>
> Note that its the underlying device that is being removed here and
> since the LED is connected to that its removed as well. The LED
> subsystem hasn't changed in how it works. I don't think that has any
> bearing on your patch though.
>

Yes, looking more closely there is inherent race condition between
tearing down existing helper and processing ADD event for it. Most
likely some timing was changed in current kernel that made it more
easily exposed. If Mandriva had not compiled D-Bus with assertions
enabled, this would simply fail silently without anyone noticing.

Attachment: signature.asc
Description: This is a digitally signed message part.