Sun dbx: How can I increase the size of the stack

From: biskouaz (biskouaz@yahoo.fr)
Date: 04/24/03


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



Relevant Pages

  • Sun dbx: How can I increase the size of the stack
    ... When asking to dbx to display a huge structured variable, ... It works with a structure of about 20 kbytes but fail to do it with the ... Chooses a large size for the evaluation stack. ... because it is for the 'where' command... ...
    (comp.unix.solaris)
  • getting stack trace from core
    ... lwps when the process crashed. ... Is there any command which AIX433 ... provides,which I can use to get the stack trace(mere addresses ... dbx also requires the executable to be present. ...
    (comp.unix.aix)
  • gdb and dbx question
    ... Both dbx and gdb seems to report incorrect stack ... In dbx report, one function takes NULL as arg, which according ...
    (comp.lang.c)
  • Re: Crash in XtOpenDisplay
    ... GetDatabase ... function on the call stack, and check whether they make sense. ... I don't know how one does that with dbx, ... Especially if it's at 0 or 1 in the stack trace. ...
    (comp.windows.x.intrinsics)
  • Sun dbx: How can I increase the size of the stack?
    ... When asking to dbx to display a huge structured variable, ... It works with a structure of about 20 kbytes but fail to do it with the ... Chooses a large size for the evaluation stack. ... because it is for the 'where' command... ...
    (comp.unix.solaris)