rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Vincent Broman <broman@nosc.mil>
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: "rc" shell maintainer?
Date: Fri, 6 Feb 1998 17:54:55 -0500	[thread overview]
Message-ID: <19980206225455.3081.qmail@np.nosc.mil> (raw)
In-Reply-To: <Ml0AANpP2zTdVAwA@nan.cygnus.co.uk> (message from Tim Goodwin on Fri, 6 Feb 1998 18:00:37 +0000)

-----BEGIN PGP SIGNED MESSAGE-----

tgoodwin@cygnus.co.uk replied to me:
>> I tried out rc-1.5b2 on my SunOS 4.1.3 (with most Sun patches) machine
>> and gcc-2.7.2, and I got a core dump during trip.  Any suggestions?
>
>This change looks wrong to me.
>
>> -		ngroups = getgroups(0, (gid_t *)0);
>> +		ngroups = getgroups(0, (GETGROUPS_T *)0);

The reason for GETGROUPS_T (which POSIX requires to be gid_t)
is that some systems, like sunos413, fail to conform to posix
by using int's instead of gid_t's for the arrays of groups.
This change is for pedantic consistency, NULL being all zeroes
for all the hardware I ever deal with.

About the core dump...
It looks like the binary built on 413 runs fine on 414 but dumps core
on a 413 machine.  The same thing occurs with a statically linked binary.
Also the same with a binary built on 414.  So the problem is in
my malloc library, I think.  It isn't the realloc(NULL,n) bug.
Suggestions?

Vincent Broman                 broman@nosc.mil                 +1 619 553 1641

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNNuUfWCU4mTNq7IdAQHIagQAhgk52/AdER9BClyhMxKLdwtF5HmZv7wn
zsgzVs9Wrca+iu9pxSI8x2i7fVZ1I0uGhGQ2tEtUyLvRIIOWxmTg2C2NtcJySwLs
nPB0JxpzPOGwc21WBevjvoY36hwiRSYI2gc0Jk6HE51BZlyqJ4pYlPRtQ296/X7L
qQVEOBr0cfE=
=2CWB
-----END PGP SIGNATURE-----


  reply	other threads:[~1998-02-07  4:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-04 21:23 Vincent Broman
1998-02-05  1:17 ` Tom Culliton
1998-02-05 11:46 ` Tim Goodwin
1998-02-05 21:48   ` Vincent Broman
1998-02-06 18:00     ` Tim Goodwin
1998-02-06 22:54       ` Vincent Broman [this message]
1998-02-09 20:31       ` Vincent Broman
1998-02-09 23:45       ` Vincent Broman
1998-02-10 23:26         ` Tom Culliton
1998-02-11 10:45           ` Tim Goodwin
1998-02-11 22:23             ` Tom Culliton
1998-02-12 10:23               ` Tim Goodwin
1998-02-11 21:55           ` Vincent Broman
1998-02-05  5:01 smarry
1998-02-05 15:25 ` Tom Culliton
1998-02-06 17:45 ` Tim Goodwin
1998-02-05 19:59 smarry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19980206225455.3081.qmail@np.nosc.mil \
    --to=broman@nosc.mil \
    --cc=rc@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).