question re: questions
H. J. Lu
hjl@lucon.org
Fri Jul 5 11:02:00 GMT 2002
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.
More information about the Libc-alpha
mailing list