Re: Stack overflow problem

Tech-Archive recommends: Speed Up your PC by fixing your registry



Well, the first reaction is "your program has a bug, fix it". In the absence of useful
information, you've basically said "my program doesn't work, what did I do wrong?", which
is not a question that is easily answered.

The most common cause is a subclassed function that erroneously fails to call the
superclass, e.g.,

void CMyClass::SomeFunction(args here)
{
... stuff
SomeFunction(args here);
}

instead of

CSuperclassOfMyClass::SomeFunction(args here);

another cause is overuse of large on-stack data structures, like huge arrays.

Unfortunately, this is a C++/MFC forum; this isn't going to have a high hit rate for
expertise on Intel FORTRAN. I haven't written FORTRAN in...27 years, I think. I read a
FORTRAN program about five years ago. But the newer FORTRAN versions can keep things on
the stack, and FORTRAN is a language that encourages large arrays, so this is almost more
a question for Intel technical support, or some FORTRAN forum.
joe

On Wed, 28 Nov 2007 22:31:08 -0800 (PST), Devendra <dgatkal@xxxxxxxxx> wrote:

Hi All,

I'm going through a stack overflow problem in my project. I tried to
increase the stack size of my application but on my machine it works
fine (stack overflow does not occure) but fails on any other m/c that
does not have Microsoft Visual Studio installed.

I've tried increasing the stack size using /stack: with 1 GB option.
I've also tried EDITBIN utility with /STACK:reserve[,commit]
option.

I've installed required libraries and dll through Vcredist_x64.exe on
client m/c.
I'm using ---> Visual Studio 2005 , Intel Visual Fortran compiler 9.1
and compiling the code for 64bit.

Can anyone please guide me ..

Regards,
Devendra
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Fortran memory allocation (stack/heap) issues
    ... > rather than Fortran, ... dynamic allocation, and relatively little stack allocation. ... value return and arrays by reference. ...
    (comp.lang.fortran)
  • Re: small numerical differences in floating point result between wintel and Sun/SPARC
    ... > happen to have NaN bit patterns when interpreted as floats, ... WRMSR were its x87 FP stack. ... into a floating point mold so that it would be OK for the Fortran ... clause in the standard document seems to require otherwise, ...
    (comp.lang.fortran)
  • Re: amazing discoveries...
    ... but I've seen some BSD code that pushed data ... Replying belatedly to this item (about pushing data onto the stack) I ... Since Fortran is possibly the oldest language this method of call ...
    (comp.lang.asm.x86)
  • Re: recursion, stack, fortran
    ... Fortran programmers have been implementing ... implement a stack in software, but that wasn't usual for the IBM ... Man is a sick fly taking a dizzy ride on it. ... I have programmed in Fortran on an IBM 360/95. ...
    (comp.lang.fortran)