delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/09/27/11:41:17

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Subject: Re: Many pthread failures in the test suite, one setgroup failure
From: Robert Collins <rbcollins AT cygwin DOT com>
To: Robert Collins <rbcollins AT cygwin DOT com>
Cc: egor duda <cygwin-developers AT cygwin DOT com>
In-Reply-To: <1033140780.9593.0.camel@lifelesswks>
References: <20020925141653 DOT GA6134 AT redhat DOT com>
<1033139976 DOT 22908 DOT 333 DOT camel AT lifelesswks>
<163544913434 DOT 20020927192540 AT logos-m DOT ru>
<1033140780 DOT 9593 DOT 0 DOT camel AT lifelesswks>
Date: 28 Sep 2002 01:41:46 +1000
Message-Id: <1033141306.9593.8.camel@lifelesswks>
Mime-Version: 1.0

--=-M4nKYvTWOmNcZECPC4jb
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2002-09-28 at 01:33, Robert Collins wrote:
> On Sat, 2002-09-28 at 01:25, egor duda wrote:

> > just check what pthread_create() returns when given NULL in attr
> > (second) parameter. It's a simple 2-line test program. My reading of
> > the code + running under gdb shows that it returns EAGAIN.
>=20
> I have checked, and it works.

Oh, a little less briskly:

pthread_create calls pthread::create without check parameters.

pthread::create calls precreate(newattr) without checking for null or
non null.

precreate(newattr)  checks for NULL, and if nonnull copies the
attributes, if null uses the default values.

BUT: I think I've just caught the cause.

I (stupidly) made pthread::create a void function.

so pthread_create looks like:
int pthread_create (..)
{ =20
   return lastvalueonstack;
}

oops. Fixing now.

Rob
--=20
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---

--=-M4nKYvTWOmNcZECPC4jb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA9lHw6I5+kQ8LJcoIRAjRxAJ93McSJ983JgJGJ6gCaznlnE8ZuOACfUTD1
j41GGS9rbg67goi2EUQhpxk=
=YccV
-----END PGP SIGNATURE-----

--=-M4nKYvTWOmNcZECPC4jb--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019