public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/2036] New: Java fails to run on systems with 64K page size with nptl
@ 2005-12-12 23:05 sjmunroe at us dot ibm dot com
  2005-12-12 23:14 ` [Bug nptl/2036] " sjmunroe at us dot ibm dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2005-12-12 23:05 UTC (permalink / raw)
  To: glibc-bugs

This problem was raised for the IBM Java-1.4.1 SDK but applies to any program
using nptl where the system page size is larger then PTHREAD_STACK_MIN. This can
happen on powerpc starting with the POWER5+ systems whihc support 64K pages in
hardware.

It does not fail on linuxthreads.

In this case the pthread_create fails because the default value of pthread_attr
for stack_size was set from PTHREAD_STACK_MIN which is a compile time constant.
In this case it was much smaller then the actual page size. 

The other problem is that the test in allocatestack.c that verifies the minimum
allocation for stack space includes the guard page plus 2 additonal pages. This
is ok where the pagesize is less then the PTHREAD_STACK_MIN but gets rediculous
with large pages sizes.

-- 
           Summary: Java fails to run on systems with 64K page size with
                    nptl
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: sjmunroe at us dot ibm dot com
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2036

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug nptl/2036] Java fails to run on systems with 64K page size with nptl
  2005-12-12 23:05 [Bug nptl/2036] New: Java fails to run on systems with 64K page size with nptl sjmunroe at us dot ibm dot com
@ 2005-12-12 23:14 ` sjmunroe at us dot ibm dot com
  2005-12-12 23:26 ` sjmunroe at us dot ibm dot com
  2005-12-30 21:06 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2005-12-12 23:14 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2005-12-12 23:14 -------
This topic has been discussed on libc-hackers:

http://sources.redhat.com/ml/libc-hacker/2005-09/msg00030.html
http://sources.redhat.com/ml/libc-hacker/2005-10/msg00001.html
http://sources.redhat.com/ml/libc-hacker/2005-10/msg00016.html
http://sources.redhat.com/ml/libc-hacker/2005-10/msg00020.html
http://sources.redhat.com/ml/libc-hacker/2005-10/msg00028.html
http://sources.redhat.com/ml/libc-hacker/2005-11/msg00000.html

I provided a proposed fix in:

http://sources.redhat.com/ml/libc-hacker/2005-12/msg00001.html

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2036

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug nptl/2036] Java fails to run on systems with 64K page size with nptl
  2005-12-12 23:05 [Bug nptl/2036] New: Java fails to run on systems with 64K page size with nptl sjmunroe at us dot ibm dot com
  2005-12-12 23:14 ` [Bug nptl/2036] " sjmunroe at us dot ibm dot com
@ 2005-12-12 23:26 ` sjmunroe at us dot ibm dot com
  2005-12-30 21:06 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2005-12-12 23:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2005-12-12 23:25 -------
Created an attachment (id=800)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=800&action=view)
Large page test case for pthread_create

This is a version of the existing test that adds explicit tests for the
pthread_attr_setstacksize = PTHREAD_STACK_MIN and (2 * sysconf(_SC_PAGESIZE)
cases.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2036

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug nptl/2036] Java fails to run on systems with 64K page size with nptl
  2005-12-12 23:05 [Bug nptl/2036] New: Java fails to run on systems with 64K page size with nptl sjmunroe at us dot ibm dot com
  2005-12-12 23:14 ` [Bug nptl/2036] " sjmunroe at us dot ibm dot com
  2005-12-12 23:26 ` sjmunroe at us dot ibm dot com
@ 2005-12-30 21:06 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2005-12-30 21:06 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2005-12-30 21:06 -------
What could be fixed is fixed.  The rest is a problem of the ABI.  The minimum
stack size should have been selected more carefully.  There is nothing which can
be done.  If the stack is too small, it is too small.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=2036

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-30 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12 23:05 [Bug nptl/2036] New: Java fails to run on systems with 64K page size with nptl sjmunroe at us dot ibm dot com
2005-12-12 23:14 ` [Bug nptl/2036] " sjmunroe at us dot ibm dot com
2005-12-12 23:26 ` sjmunroe at us dot ibm dot com
2005-12-30 21:06 ` drepper at redhat dot com

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 read-only IMAP folder(s) and NNTP newsgroup(s).