Operating System - HP-UX
1846733 Members
4045 Online
110256 Solutions
New Discussion

Huge stack growth & How to examine stack

 
SOLVED
Go to solution
Andrea Pagani
Occasional Contributor

Huge stack growth & How to examine stack

Hi,
I'm using HP-UX 11.00 and I've a process built with aCC 3.13 which is experiencing a problem with large process size: in fact, I've identified that the stack segment grows by hundreds of MB, for no apparent reason and it seems that this allocation is temporary (in the sense that, attaching the process with GDB, I couldn't see this allocation in the stack trace, while viewing memory regions with glance I could see a huge VSS with a small RSS)
I've tried to find out in my code some erroneous allocations of memory, but didn't find anything. Now I'd like to examine the stack; more precisely I'd like to dump all the stack memory regions.
Has anyone a suggestion? Is there any tool, other than debugger, to examine in more detail every call made by the process (the memory growths in a undeterministic way, so I can't debug the process step by step guesssing to catch the moment it growths)?

Andre
2 REPLIES 2
Olav Baadsvik
Esteemed Contributor
Solution

Re: Huge stack growth & How to examine stack


Hi,

I advise you to install patch PHSS_27469
(libcl) which has a fix for abnormal stack
growth.
If your application is not built with shared
libraries you will have to recompile it.


By the way, your aCC version 3.13 is rather
old.

Olav
Andrea Pagani
Occasional Contributor

Re: Huge stack growth & How to examine stack

Thank you very much Olav, I applied and tested the patch you suggested and I had positive feedback.
Regarding aCC compiler version, then, I know it's an old revision but I've constraints that keep me tied to it.

Andrea