Re: /etc/group limits (REAL limits)

2007-02-07 Thread Sergey Babkin
>From: Eric Anderson <[EMAIL PROTECTED]>

>On one of my boxes where I have a decent amount of (less than 50) users 
>in a few groups, I finally hit the limit.  Not 1024 bytes though (that I 
>know of).  When that happens though, it is sooner than expected, and 
>tools (like 'id') seg fault (and core dump).
>
>I have a sample group, and it appears to be hitting the byte limit.  If 
>I add a single additional character to the group, it will break things. 
> It appears to be a combination of multiple groups.
>
>Can someone with some experience in this area comment?  I can send the 
>group file itself if needed.

The traditional workaround for the 1024 bytes limit
is to have multiple lines for the same group, for 
example:

group1:x:100:user1,user2,user3
group1:x:100:user4,user5,user6

Note that everything except the list of the users
is the same on all the lines. It might work for
you too.

-SB
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/group limits (REAL limits)

2007-02-07 Thread Eric Anderson

On 02/07/07 07:44, Kostik Belousov wrote:

On Wed, Feb 07, 2007 at 12:17:51PM +0300, Maxim Konovalov wrote:

On Tue, 6 Feb 2007, 22:56-0600, Eric Anderson wrote:


On one of my boxes where I have a decent amount of (less than 50)
users in a few groups, I finally hit the limit.  Not 1024 bytes
though (that I know of). When that happens though, it is sooner than
expected, and tools (like 'id') seg fault (and core dump).

I have a sample group, and it appears to be hitting the byte limit.
If I add a single additional character to the group, it will break
things.
It appears to be a combination of multiple groups.

Can someone with some experience in this area comment?  I can send
the group file itself if needed.

This box is 6.2-PRERELEASE from about mid-September.  I have also
seen some issues on amd64, which I went through some debugging with
Konstantin Belousov back in November (cc'ed).

Make sure you have rev. 1.32.8.3 of lib/libc/gen/getgrent.c.


It was very strange thing with buggy code generated by compiler. I tracked it
down to exact assembler instruction missed in Mr. Anderson' instance of
libc.so. After that, conversation stopped.



Sorry about that Kostik, the last message was for me to try a newer 
libc.so.6.  If I recall, I tried that too.  I'm not sure what else you 
wanted me to try.  If you have more ideas, I'm all ears.



Eric

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/group limits (REAL limits)

2007-02-07 Thread Kostik Belousov
On Wed, Feb 07, 2007 at 08:00:07AM -0600, Eric Anderson wrote:
> On 02/07/07 07:44, Kostik Belousov wrote:
> >On Wed, Feb 07, 2007 at 12:17:51PM +0300, Maxim Konovalov wrote:
> >>On Tue, 6 Feb 2007, 22:56-0600, Eric Anderson wrote:
> >>
> >>>On one of my boxes where I have a decent amount of (less than 50)
> >>>users in a few groups, I finally hit the limit.  Not 1024 bytes
> >>>though (that I know of). When that happens though, it is sooner than
> >>>expected, and tools (like 'id') seg fault (and core dump).
> >>>
> >>>I have a sample group, and it appears to be hitting the byte limit.
> >>>If I add a single additional character to the group, it will break
> >>>things.
> >>>It appears to be a combination of multiple groups.
> >>>
> >>>Can someone with some experience in this area comment?  I can send
> >>>the group file itself if needed.
> >>>
> >>>This box is 6.2-PRERELEASE from about mid-September.  I have also
> >>>seen some issues on amd64, which I went through some debugging with
> >>>Konstantin Belousov back in November (cc'ed).
> >>Make sure you have rev. 1.32.8.3 of lib/libc/gen/getgrent.c.
> >
> >It was very strange thing with buggy code generated by compiler. I tracked 
> >it
> >down to exact assembler instruction missed in Mr. Anderson' instance of
> >libc.so. After that, conversation stopped.
> 
> 
> Sorry about that Kostik, the last message was for me to try a newer 
> libc.so.6.  If I recall, I tried that too.  I'm not sure what else you 
> wanted me to try.  If you have more ideas, I'm all ears.
> 

AFAIR, libc.so from install CD worked ? I said you that I suspect your
compiler.

You could try:
-  libc.so.6 from 6.2-RELEASE CD (I suspect it will work);
-  compiler from same CD (e.g., try to recompile libc on clean 6.2 RELEASE
installation).


pgpn3IWFeBZTq.pgp
Description: PGP signature


Re: /etc/group limits (REAL limits)

2007-02-07 Thread Kostik Belousov
On Wed, Feb 07, 2007 at 12:17:51PM +0300, Maxim Konovalov wrote:
> On Tue, 6 Feb 2007, 22:56-0600, Eric Anderson wrote:
> 
> > On one of my boxes where I have a decent amount of (less than 50)
> > users in a few groups, I finally hit the limit.  Not 1024 bytes
> > though (that I know of). When that happens though, it is sooner than
> > expected, and tools (like 'id') seg fault (and core dump).
> >
> > I have a sample group, and it appears to be hitting the byte limit.
> > If I add a single additional character to the group, it will break
> > things.
> > It appears to be a combination of multiple groups.
> >
> > Can someone with some experience in this area comment?  I can send
> > the group file itself if needed.
> >
> > This box is 6.2-PRERELEASE from about mid-September.  I have also
> > seen some issues on amd64, which I went through some debugging with
> > Konstantin Belousov back in November (cc'ed).
> 
> Make sure you have rev. 1.32.8.3 of lib/libc/gen/getgrent.c.

It was very strange thing with buggy code generated by compiler. I tracked it
down to exact assembler instruction missed in Mr. Anderson' instance of
libc.so. After that, conversation stopped.


pgpzCR26NjZ6m.pgp
Description: PGP signature


Re: /etc/group limits (REAL limits)

2007-02-07 Thread Maxim Konovalov
On Tue, 6 Feb 2007, 22:56-0600, Eric Anderson wrote:

> On one of my boxes where I have a decent amount of (less than 50)
> users in a few groups, I finally hit the limit.  Not 1024 bytes
> though (that I know of). When that happens though, it is sooner than
> expected, and tools (like 'id') seg fault (and core dump).
>
> I have a sample group, and it appears to be hitting the byte limit.
> If I add a single additional character to the group, it will break
> things.
> It appears to be a combination of multiple groups.
>
> Can someone with some experience in this area comment?  I can send
> the group file itself if needed.
>
> This box is 6.2-PRERELEASE from about mid-September.  I have also
> seen some issues on amd64, which I went through some debugging with
> Konstantin Belousov back in November (cc'ed).

Make sure you have rev. 1.32.8.3 of lib/libc/gen/getgrent.c.

-- 
Maxim Konovalov
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"