1834605 Members
4718 Online
110069 Solutions
New Discussion

HP 11.11 SIGSEGV problem

 
new5244
New Member

HP 11.11 SIGSEGV problem

Hi,

I planed to port linux open source project (http://opensource.nailabs.com/lomac/) to HPUX 11.11.

When I test sample DLKM program, I got some problem.

DLKM program is intercept chmod system call and show it's parameters.

When I load DLKM into kernel and running some comand, I got "SIGSEGV for stack growth failure" message.

What should i do ?



This is console messages.
---------------------------

Generating module: test...
Requesting loadable module update...
Specified module(s) below is(are) activated successfully.
test

kmadmin -L test
kmadmin: Module test loaded, ID = 2
kmadmin -s
Name ID Status Type
==========================================================
krm 1 UNLOADED WSIO
test 2 LOADED WSIO

#
#
#
# passwd testuser
Changing password for testuser
New password:
Re-enter new password:

Pid 29704 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap sapce,
or stack size exceeded maxssiz.
Passwd successfully changed
#




This is system log messages
------------------------------------

HP DLKM test start
chmod(), ret = 14
4 REPLIES 4
John Poff
Honored Contributor

Re: HP 11.11 SIGSEGV problem

Hi,

You either need more stack space [increase your maxssiz kernel parameter], or you need more swap space and/or more memory, or else your application program has a bug in it.

I've seen this happen before with a C program that had a bug in it, and I believe it was doing a malloc inside of a loop without ever releasing the memory.

JP
T G Manikandan
Honored Contributor

Re: HP 11.11 SIGSEGV problem

check up your swap and memory usage using

#swapinfo -ta

If you are running with high load on memory you can check the individual process memory usage using
#UNIX95= ps -e -o ruser,pid,vsz=Kbytes|more

If you are running up with less memory usage then you would need to tune in the kernel parameters

maxssiz --->( for 32 bit application)
maxssiz--->64 bit applications

new5244
New Member

Re: HP 11.11 SIGSEGV problem

Thanks.

I increase kernel parameter maxssize and maxssize_64.
but stil same.

and my DLKM doesn't use dynamic memory.

I attach test DLKM source code.

help me!!!
Bill McNAMARA_1
Honored Contributor

Re: HP 11.11 SIGSEGV problem

you should post this at http://www.hp.com/go/developers (http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html)

using the search from there you'll get pretty relevant hits I'm sure.

Later,
Bill
It works for me (tm)