- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SIGSEGV for stack growth failure
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2004 04:42 PM
тАО09-30-2004 04:42 PM
SIGSEGV for stack growth failure
Pid 13083 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
./migration.sh[147]: 13083 Memory fault(coredump)
Sysdef output is as below:
NAME VALUE BOOT MIN-MAX UNITS FLAGS
acctresume 4 - -100-100 -
acctsuspend 2 - -100-100 -
allocate_fs_swapmap 0 - - -
bufpages 308938 - 0- Pages -
create_fastlinks 0 - - -
dbc_max_pct 15 - - -
dbc_min_pct 2 - - -
default_disk_ir 0 - - -
dskless_node 0 - 0-1 -
eisa_io_estimate 768 - - -
eqmemsize 78 - - -
file_pad 10 - 0- -
fs_async 0 - 0-1 -
hpux_aes_override 0 - - -
maxdsiz 458752 - 0-503866 Pages -
maxdsiz_64bit 4194304 - 1024-1073479679 Pages -
maxfiles 5000 - 30-2048 -
maxfiles_lim 5000 - 30-2048 -
maxssiz 25600 - 0-98048 Pages -
maxssiz_64bit 262144 - 4-262144 Pages -
maxswapchunks 12000 - 1-16384 -
maxtsiz 262144 - 0-503859 Pages -
maxtsiz_64bit 262144 - 1024-1073741823 Pages -
maxuprc 7372 - 3- -
maxvgs 30 - - -
msgmap 32759 - 3- -
nbuf 153816 - 0- -
ncallout 8208 - 6- -
ncdnode 150 - - -
ndilbuffers 30 - 1- -
netisr_priority -1 - -1-127 -
netmemmax 0 - - -
nfile 124938 - 14- -
nflocks 16384 - 2- -
ninode 67584 - 14- -
no_lvm_disks 0 - - -
nproc 8192 - 10- -
npty 2048 - 1- -
nstrpty 2048 - - -
nswapdev 25 - 1-25 -
nswapfs 10 - 1-25 -
public_shlibs 1 - - -
remote_nfs_swap 0 - - -
rtsched_numpri 32 - - -
sema 0 - 0-1 -
semmap 16383 - 4- -
shmem 0 - 0-1 -
shmmni 1024 - 3-1024 -
streampipes 0 - 0- -
swapmem_on 1 - - -
swchunk 2048 - 2048-16384 kBytes -
timeslice 10 - -1-2147483648 Ticks -
unlockable_mem 32968 - 0- Pages -
***********************************************Total RAM : 16GB
Swapinfo (swapinfo -mt) :
dev 32768
reserve -
memory 13125
total 45893
Please let us know the cause of this error.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2004 05:09 PM
тАО09-30-2004 05:09 PM
Re: SIGSEGV for stack growth failure
Most of the time stack usage is attributed to use of large local variables/arrays in functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2004 11:07 PM
тАО09-30-2004 11:07 PM
Re: SIGSEGV for stack growth failure
As told earlier you can increase the maxssiz but if that does not solve the problem you could look into the code for high looping or recursion.
does this code interact with any database?
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2004 02:01 AM
тАО10-01-2004 02:01 AM
Re: SIGSEGV for stack growth failure
ulimit -s
and kernel parameters of
maxssiz 25600 - 0-98048 Pages -
maxssiz_64bit 262144 - 4-262144 Pages -
and swap size will not be a problem there.
Another point is to check core file as,
what core
file core
gdb
gdb> bt
will give informations there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2004 11:41 PM
тАО10-03-2004 11:41 PM
Re: SIGSEGV for stack growth failure
ulimit -s does'nt work on out HP UX 11.11 server, gives the below error
ksh: ulimit: bad option(s)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2004 04:30 AM
тАО10-04-2004 04:30 AM
Re: SIGSEGV for stack growth failure
ulimit -a
It will give every user limitation informations there.
ulimit -Hs --> Hard limit
ulimit -Ss --> Soft limit
I have tried on 11.11 too. No problem there. Try with hard / soft limit(s) there.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2004 12:19 PM
тАО10-04-2004 12:19 PM
Re: SIGSEGV for stack growth failure
'ulimit -s' is limited by maxssiz anyway, so in posix shell it would show you 25600 (25M).
If you have glance you can verify that stack overflow is a problem by selecting a process (press s then type PID of the C program), then press F3 to go to memory regions screen. Then you can watch Stack RSS/VSS value. If it goes close to 25M then you should increase maxssiz.
I would increase maxssiz to maybe 64M (100M at most). If this still doesn't help then you should look at your C program and make some modifications to use malloc() in favour of large local arrays. This would make the program allocate memory from heap instead of stack.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2004 12:47 PM
тАО10-04-2004 12:47 PM
Re: SIGSEGV for stack growth failure
To find out if your program is 64bit, use the file command as in:
file your_program
If the word ELF is not reported back, your program is a simple 32bit program and subject to severe addressing limitations, basically you maximum data area is only 960 megs (or less if maxdsiz is less than 960megs)
Bill Hassell, sysadmin