odd issue when running dbus-launch [cause found, but no fix found yet]

Vulpes Velox v.velox at vvelox.net
Sun Dec 17 20:03:10 PST 2006


On Sun, 17 Dec 2006 21:30:29 -0600
Vulpes Velox <v.velox at vvelox.net> wrote:

> On Mon, 18 Dec 2006 01:35:39 +0100
> Thiago Macieira <thiago at kde.org> wrote:
> 
> > Vulpes Velox wrote:
> > >> I still don't think this is caused by D-Bus. Can you run the
> > >> attached program?
> > >
> > >1001
> > >1001
> > >0
> > >3051
> > >5000
> > >3050
> > >5001
> > >3003
> > >6000
> > >6001
> > >6003
> > >
> > >Was what I was getting originally. I then started adding the user
> > >to more and more groups... eventually I ran into a problem at 16.
> > >
> > >getgrouplist: No such file or directory
> > >
> > >I got that after 16.
> > >
> > >
> > >
> > >Quick question. Would it not be best to have this on list for any
> > >one else who is watching and curious?
> > 
> > Yes. I don't know why you replied off it. I sent the program to
> > the list.
> > 
> > Can you put a breakpoint in the fill_user_info function around the
> > calls to getgrouplist and tell us what it is doing wrong? I can't
> > spot the problem...
> 
> Found the issue.
> 
> 
> Int ng is smaller than the number of groups a user is in. If I
> increase it the problem goes away.

It is not the best solution by the farthest, but it is slightly fixed
by including sys/syslimits.h and setting ng to NGROUPS_MAX.

This still sets a max upper limit though, but atleast sets it to what
the system assumes it to be.


More information about the dbus mailing list