Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Aug 2005 00:50:43 -0700
From:      Colin Percival <cperciva@freebsd.org>
To:        Nikolay Kalev <nkalev@gmail.com>
Cc:        freebsd-current@freebsd.org, liamfoy@dragonflybsd.org
Subject:   Coredump in chkgrp (was Re: unknown coredump !)
Message-ID:  <430D7853.8070407@freebsd.org>
In-Reply-To: <430D665B.9030108@gmail.com>
References:  <430C36BD.1020808@gmail.com> <20050824222516.GA1106@wantadilla.lemis.com> <430D665B.9030108@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[Bug report CCed to author of bug]

Nikolay Kalev wrote:
> chkgrp: /etc/group: line 30: missing field(s)
> Segmentation fault (core dumped)
> Exit 3
> 
> so i found the problem in my group file there was a bugy line that i
> added ... i;m not sure if this is normal to coredump when the syntax in
> /etc/group is mistaken ???
> 
> the line was : "user:1001:" and it has to be "user:*:1001:"

This bug was added in revision 1.9 of src/usr.sbin/chkgrp/chkgrp.c.  If
a line of the group file has the wrong number of fields, the pointers
f[0], f[1], f[2], and f[3] might point at deadc0de; prior to this revision,
the number of fields was checked first and processing halted if it was
wrong.

I'm busy for the next few days, but if this is still unfixed on Monday I'll
take care of it.

Colin Percival



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?430D7853.8070407>