dbus crashing with no environment

Daniel P. Berrange dan at berrange.com
Tue Nov 25 08:51:58 PST 2008


On Tue, Nov 25, 2008 at 04:04:51PM +0000, Bastien Nocera wrote:
> On Tue, 2008-11-25 at 15:59 +0000, Daniel P. Berrange wrote:
> > On Tue, Nov 25, 2008 at 03:18:40PM +0000, Bastien Nocera wrote:
> > > Heya,
> > > 
> > > I was trying to see why fprintd was crashing when using the service
> > > activation, and Richard mentioned that I should try clearing the
> > > environment as that's what the activation helper does.
> > > 
> > > I don't actually need any environment in fprintd, so went ahead with it,
> > > and ended up with crashes in dbus itself. fprintd uses dbus-glib, but I
> > > was able to reproduce with the attached DBus-only test case.
> > 
> > This does not appear to be neccessarily dbus's  fault - change your
> > demo program to just be 
> > 
> >   #include <stdlib.h>
> > 
> >   int main (int argc, char **argv)
> >   {
> >         clearenv ();
> >         unsetenv("FOO");
> >         return 0;
> >   }
> > 
> > 
> > And it'll also crash & burn the same way:
> 
> Duh. My mistake for not going deeper into it. Would you mind filing a
> bug against glibc, or shall I do it?

I'll let you :-)

Daniel
-- 
|: http://berrange.com/     -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://freshmeat.net/~danielpb/    -o-   http://gtk-vnc.sourceforge.net :|


More information about the dbus mailing list