-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[comp.os.linux.development.apps is a more appropriate place than
comp.lang.c. Followups set.]
Is there any tools like "stubedit" can let me enlarge the stack size
under linux ?
No. The stack size is not set in the ELF binary. It's a settable
user resource limit; see RLIMIT_STACK in setrlimit(2).
Have you run out of stack space? Unless you set some really tiny
limits, it should be able to grow *very* large.
On my system, it's set to 8 KiB:
$ ulimit -s
8192
Change it with the ulimit bash builtin, or setrlimit(), or at login
with PAM (pam_limits.so).
And I was quite wondering what's the default stack size of the program
compiled with gcc without any parameter ?
See above: there is *no such thing* as a "default stack size" of a
binary. GNU/Linux is not DOS (i.e. broken).
Regards,
Roger
- --
Roger Leigh
Printing on GNU/Linux?
http://gimp-print.sourceforge.net/
Debian GNU/Linux
http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <
http://mailcrypt.sourceforge.net/>
iD8DBQFCuISVVcFcaSW/uEgRAh2QAJ9aB6w0TGRHpfOMe7S+OlWFTkm4lgCfbYnT
bviq/0jiUbdaiBAw57h5t98=
=rlam
-----END PGP SIGNATURE-----