Re: Stack size, and warnings, PS



Dieter Britz wrote:

1. My recursive program now runs, but when I increase the size
of the job, I get an "IOT trap", which I am told is likely
to be stack overflow. I am using the Intel 90/95 compiler,
and I work under Suse Linux 10.1. I think I need to write
something into the .bashrc file; what should this be, please?

2. The routine calls itself many times, with array sections
as arguments, and I get a lot of warnings that a temporary
array was allocated. I tried to suppress these with the -w
option, but they don't go away. Why not, and how do I stop
them?

I should mention that I tried running the program on another
machine, also Linux (Fedora) and a different compiler (Portland
Group). Same thing - almost - it gets a segmentation error,
but in another place. I have the program output debugging
prints, and they go a bit further on this other machine.
This tells me that it might really not be a bug in the program
but a stack problem. I mention this in case someone wonders.
--
Dieter Britz, Kemisk Institut, Aarhus Universitet
.



Relevant Pages

  • Re: Stack size, and warnings
    ... to be stack overflow. ... I am using the Intel 90/95 compiler, ... The routine calls itself many times, with array sections ... and I get a lot of warnings that a temporary ...
    (comp.lang.fortran)
  • Re: help, a wired problem?
    ... that syntax that has anything to do with your problem. ... What you have is what f90 calls an automatic array. ... which can indeed cause stack overflow when the arrays are large. ... Depending on the compiler and operating system, ...
    (comp.lang.fortran)
  • Re: Strange "Stack Overflow" message occurring with use of vector
    ... with a dynamic array). ... recursion can be expected to run many times in my ... binary chains stored consecutively in the vector at each iteration), ... the code breaks with a "Stack Overflow" error message. ...
    (microsoft.public.vc.language)
  • Strange "Stack Overflow" message occurring with use of vector
    ... this is the first time I've posted to it, ... with a dynamic array). ... binary chains stored consecutively in the vector at each iteration), ... the code breaks with a "Stack Overflow" error message. ...
    (microsoft.public.vc.language)
  • Re: Release version crashes - again
    ... If not, continue shrinking the conditioned out code, and try ... Stack overflow (debug always allocated large stack size by the ... Timing issues (the debug version slows down the code and somehow ... Code/variable being optimized out by the compiler in ...
    (microsoft.public.windowsce.embedded.vc)