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

Frederic Crozat fcrozat at mandriva.com
Mon Jun 29 01:01:57 PDT 2009


Le dimanche 28 juin 2009 à 00:34 +0400, Andrey Borzenkov a écrit :
> 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.

Hmm, Assertions in Mandriva dbus package are disabled...

-- 
Frederic Crozat <fcrozat at mandriva.com>
Mandriva



More information about the hal mailing list