This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: question re: questions
On Fri, Jul 05, 2002 at 12:06:01PM +0200, Wolfram Gloger wrote:
> Hello,
>
> > If you can provide a small testcase, I will be very interested in it.
>
> Thomas did provide a testcase:
>
> http://sources.redhat.com/ml/libc-alpha/2000-12/msg00100.html
>
There are 2 problems with the testcae. First of all, the testcase is
bogus. If it doesn't check all pthread function return value. If
you do, you will find pthread_attr_setstack () returns EINVAL. The
problems are malloc may not return the proper aligned memory for
pthread stack. Also you can't add STACKSIZE to stack memory. See
http://www.opengroup.org/onlinepubs/007904975/functions/pthread_attr_getstack.html
The second problem is the testcase reuses the stack memory. It seems
to really confuse the glibc. I will see if I can create a different
testcase.
H.J.