Sponsored Content
Full Discussion: Problem with stack overflow
Operating Systems HP-UX Problem with stack overflow Post 302178648 by karthikb23 on Wednesday 26th of March 2008 05:02:53 AM
Old 03-26-2008
Data Problem with stack overflow

Hi,
I get a problem with stack overflow on HP-UX, when running a C program.

Pid 28737 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.


The possible cause i found, was that the definition of a structure had changed.
One object was recompiled with the new definition, but 1, maybe not.
This caused a memory error and the program received 'SIGSEGV' (segmentation error).

But what i feel is that the variable in question, being a local variable, and hence allocated on stack, caused the above message to occur.
It referenced an address beyond stack bounds.
I beleive that maxssiz dint really exceed.

The HP manual says that if such an error occurs, then the only option is to wait and the OS will try to resolve it by itself.

Would this error occur again, if another stack variable too exceeds stack bounds?

Please advice/correct me.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

stack problem

Hi, I'm a complete beginner at all this business so any help is appreciated. I have a script (not written by me) which I need to modify. My problems is.... tail -1c $file .... I understand this will return the final character of the $file variable. I need to make it return the first... (4 Replies)
Discussion started by: mastaCow
4 Replies

2. Programming

memory stack problem

Hi, I am writing a C program under SCO Unix. I have a memory stack problem but do not know how to go about fixing it. I have tried running INSURE but that does not detect any problems. Essentially the problem is that the memory address shifts on return from a routine. I pass a pointer to... (3 Replies)
Discussion started by: jkeagy
3 Replies

3. BSD

stack overflow in function psync_status Abort (core dumped)

I am running Open BSD 3.8 (3.5 upgrade) on a Pent Pro. 200, 64 Megs Ram, Nvedia Vanta TNT 16 Megs, Realtech 8139 Nic. When running ifconfig -a I get this error back. I've run searches on google no deal. I can get Stack overflow or psync, but not both. So I would really like to know how to fix it. ... (0 Replies)
Discussion started by: jmcpreach
0 Replies

4. AIX

IBM xlf "parser stack overflow" error

Hello, Does anybody know how to increase IBM xlf parser stack to get rid of the "parser stack overflow" error? Thanks Ping (1 Reply)
Discussion started by: luop0812
1 Replies

5. Programming

c++ overflow problem

I have come accross a rather strange problem with two buffers that seem to be overriding each other. bool killSession(const Session &session){ //Get user FILE* fp = fopen("conf/sessions.current", "rt"); char line; char user; int x = 0; int leaseTime; printf("key: %s \n" ,... (2 Replies)
Discussion started by: mshindo
2 Replies

6. Ubuntu

Stack overflow i guess while insmod

I have built kernel 2.6.35 on my Ubuntu system with some specific requirement. I also built some app defined module with the same kernel. I booted up the built version and I find it did not work properly as there is some gui and other modules missing problem. But the system booted up and I did... (0 Replies)
Discussion started by: sunilsukumar4u
0 Replies

7. UNIX for Dummies Questions & Answers

perform stack overflow

Help! I have an AIX system that has a power outage. When I logged in as root and got the system up and running it all looked ok. But.....when a user tries to log in they receive the error: The perform stack has overflowed OP=2117 PC=2124 E=46 in emmcshflif icrun is finished How can I fix... (1 Reply)
Discussion started by: dlegnar
1 Replies

8. Hardware

Stack Overflow Questions Tags Users Badges Unanswered Ask Question Ask for the explanation of types

I have read a document which tells me the following 4 things are done by the RAM embedded on disk driver controller. But I don't know what's difference between buffer and cache. Thanks! RAM on disk drive controllers 1 firmware 2 speed matching buffer 3 prefetching buffer 4 cache (1 Reply)
Discussion started by: 915086731
1 Replies
maxssiz(5)							File Formats Manual							maxssiz(5)

NAME
maxssiz, maxssiz_64bit - maximum size (in bytes) of the stack for any user process VALUES
Default Allowed values DESCRIPTION
User programs on HP-UX systems are composed of five discrete segments of virtual memory: text (or code), data, stack, shared, and I/O. Each segment occupies an architecturally defined range of the virtual address space which sets the upper limit to their size. However, text, data, and stack segments may have a smaller maximum enforced via the and tunables. and define the maximum size of the stack segment for 32-bit and 64-bit processes. The stack segment contains the actual program stack and the storage space for registers on a process or thread context switch. Who is Expected to Change This Tunable? Anyone. Restrictions on Changing Changes to this tunable take effect only for processes started after the modification. In addition, a process which modifies its for the stack segment propagates the modified limit to all child processes, thereby exempting them from any future modification of The value speci- fied is expected to be a multiple of the base page size. See the description of getconf(1) for more details. If the value specified is not a multiple of the base page size, it will be rounded down to the nearest multiple of the base page size. When Should the Value of This Tunable Be Raised? should be raised if user processes are generating the console error message: Processes generating this error message will likely terminate with the segmentation violation error and dump core. What Are the Side Effects of Raising the Value? Raising this tunable by definition allows larger stack segments for every process. This means that and function as limitations on the amount of swap space that can be reserved or used by each process. Therefore, using more virtual address space does not translate directly to using more physical address space because virtual pages can be swapped out. If swap space on the machine is near capacity, raising this tunable increases the amount of reservable swap per process. This could exhaust the swap space on the system by allowing a process with a memory leak or a malicious program that uses huge amounts of memory to reserve too much swap space. It is also important to realize that for 32 bit user processes, data and stack are located contiguously. Raising the amount of virtual address space reserved for the stack segment implies lowering the amount of virtual address space for the data segment. In other words, raising may cause user processes which use all (or nearly all) of the previously available data area to fail allocation with the error even with set above the current amount of memory allocated for data by this process. On will cause an increase in the kernel data structures used to represent the larger stack space. This may use enough additional swap space that the user may see performance degradation or application failure due to lack of reservable swap space. One method to minimize impact is to use a script which launches the applications needing maximum stack size. Within the script, raise the value of launch the application, and then lower to its previous value. This will allow the specific application to benefit from the increased stack size but will not cause additional stack growth for applications which do not need it. When Should the Value of This Tunable Be Lowered? This tunable should be lowered if swap space is at a premium on the machine and programs that are using too much swap space are affecting the execution of other critical user processes. What Are the Side Effects of Lowering the Value? Lowering this tunable will limit the amount of memory available for stack usage per process. This could cause processes with large stack requirements to terminate with a error. What Other Tunable Values Should Be Changed at the Same Time? The tunable should be considered because it also limits swap usage by process data segment. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
getconf(1), maxdsiz(5), maxtsiz(5). Tunable Kernel Parameters maxssiz(5)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy