Sun dbx: How can I increase the size of the stack
From: biskouaz (biskouaz@yahoo.fr)
Date: 04/24/03
- Next message: Craig: "UNIX Socket programming"
- Previous message: Dragan Cvetkovic: "Re: POSIX shm and mmap on Solaris problem -- a bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: biskouaz@yahoo.fr (biskouaz) Date: 24 Apr 2003 06:25:53 -0700
Hi
When asking to dbx to display a huge structured variable,
dbx starts to do the job but then produces an error:
dbx: internal error: stack overflow: expression too large or possible
internal error.
It works with a structure of about 20 kbytes but fail to do it with the
49kbytes
structure that I tried to decode.
The version of workshop that I am forced to use is: workshop_c++-3.0_p2.
Some dbx versions (probably not on SUN) seem to have a "-e" option that
would do the job:
-e num : Chooses a large size for the evaluation stack.
On my dbx version, the -e option does something else:
-e : Echo each command before execution
I know it is possible to add a .dbxrc file with the setting of dbx
environment variable but I did not find any variable that would
increase the stack size.
There is a variable (dbxenv stack_max_size) but it does not do the job
because it is for the 'where' command...
dbxenv stack_max_size <num>
# Set the default size for the `where' command.
# Default: 100
My last option is to try using a more recent version of workshop (6.0
for example) with its associated compiler. But since the compiler
changes, many errors of the huge project code would need to be
corrected... Not really possible and it may not solve the problem...
I thought about the "limit" unix command.
When I type it, I get the following parameters:
cputime unlimited
filesize unlimited
datasize 2097148 kbytes
stacksize 8192 kbytes
coredumpsize unlimited
vmemoryuse unlimited
descriptors 64
As I said, the limit for the structure size dbx is able to
decode seems to be around 20 kbytes. The error produced by dbx is
"stack overflow". This stack does not seem to be the same one
as the one defined in the "limit" command. How a 20 kbytes
structure decoding could use the 8 megabytes apparently
provided?
Does anybody have encounter this problem and has a solution?
Thanks.
Erle
- Next message: Craig: "UNIX Socket programming"
- Previous message: Dragan Cvetkovic: "Re: POSIX shm and mmap on Solaris problem -- a bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|