Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Stack limit
@ 2000-01-26  5:00 Naohiko Shimizu
  0 siblings, 0 replies; only message in thread
From: Naohiko Shimizu @ 2000-01-26  5:00 UTC (permalink / raw)


The stack limit is set in the
/usr/src/linux/include/asm-alpha/resources.h

I found that the definition was corrected in some architectures.
But for alpha the limit is set wrong.
Where sould I contact to correct the file?

I will show the grep result of _STK_LIM in the 2.2.14 source.

asm-alpha/resource.h:    {_STK_LIM, _STK_LIM},                  /* RLIMIT_STACK */      \
asm-arm/resource.h:     { _STK_LIM, _STK_LIM },                         \
asm-i386/resource.h:    { _STK_LIM, LONG_MAX },                         \
asm-m68k/resource.h:  {_STK_LIM, LONG_MAX}, \
asm-mips/resource.h:    {_STK_LIM, _STK_LIM},                           \
asm-ppc/resource.h:    {_STK_LIM, LONG_MAX},                    /* RLIMIT_STACK */      \
asm-s390/resource.h:    { _STK_LIM, LONG_MAX },                         \
asm-sparc/resource.h:    {LONG_MAX, LONG_MAX}, {_STK_LIM, LONG_MAX},           \
asm-sparc64/resource.h:    {LONG_MAX, LONG_MAX}, {_STK_LIM, LONG_MAX},         \
asm/resource.h:    {_STK_LIM, _STK_LIM},                        /* RLIMIT_STACK */      \


The RLMIIT_STACK sould _STK_LIM, LONG_MAX but in some architectures




The RLMIIT_STACK sould _STK_LIM, LONG_MAX but in some architectures
it is _STK_LIM,_STK_LIM.
It forces users not to use more than 8MB of stack area.

Thank you in advance,

Naohiko Shimizu
Dept. Communication Engr./Univ. TOKAI.
1117 Kitakaname Hiratsuka 259-12 Japan
TEL.+81-463-58-1211(ext. 4084) FAX.+81-463-58-8320
<URL http://shimizu-lab.et.u-tokai.ac.jp/>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-26  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-26  5:00 Stack limit Naohiko Shimizu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox