[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-commits] gcl/pargcl configure configure.ac src/Makefile....
From: |
Gene Cooperman |
Subject: |
[Gcl-commits] gcl/pargcl configure configure.ac src/Makefile.... |
Date: |
Fri, 16 Dec 2005 17:50:57 +0000 |
CVSROOT: /cvsroot/gcl
Module name: gcl
Branch:
Changes by: Gene Cooperman <address@hidden> 05/12/16 17:50:57
Modified files:
pargcl : configure configure.ac
pargcl/src : Makefile.in slave-listener.lsp
pargcl/src/mpinu: mpi.c
Log message:
I finally found a _bad_ bug. In GCL o/main.c, we call setrlimit on
RLIM_STACK. Under Linux, this triggers a bug in the interaction of
glibc
and the Linux kernel. I am including a tarball to demonstrate this bug,
and will report the bug to the glibc people once I have confirmed all
the
details. The tarball is at the private URL:
http://www.ccs.neu.edu/home/gene/tmp/BUG-glibc.tar.gz
GCL in o/main.c sets the stack to an unreasonably large value,
and setrlimit silently accepts this. When pthread_create is later
called
from a _child_ process, it fails with "NOT ENOUGH MEMORY". This only
happens if it is called from a child process. Apparently, the remote
slave process of ParGCL counts as a child process for this purpose.
This bug could also affect other GCL applications using the foreign
function interface that do the unusual things that ParGCL does.
I'll talk to Camm Maguire about this issue in GCL's o/main.c shortly.
For now, I've added a patch in ParGCL that lowers the setrlimit for
RLIM_STACK to something reasonable (1 GB) if it is currently
unreasonably high.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gcl/gcl/pargcl/configure.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gcl/gcl/pargcl/configure.ac.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gcl/gcl/pargcl/src/Makefile.in.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gcl/gcl/pargcl/src/slave-listener.lsp.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gcl/gcl/pargcl/src/mpinu/mpi.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gcl-commits] gcl/pargcl configure configure.ac src/Makefile....,
Gene Cooperman <=