1833647 Members
5074 Online
110062 Solutions
New Discussion

Re: maxdsize and aCC

 
Nitin kashyap
Occasional Advisor

maxdsize and aCC

was not able to reply to the earlier thread, so posted a new one.
In continuation with that maxdsize and aCC problem, the log of mk_kernel is:

Compiling /stand/build/conf.c...
Loading the kernel...
Pid 28004 killed due to text modification or page I/O error
/sbin/sh: 28004 Bus error(coredump)
*** Error exit code 138

Stop.
config: make did an exit(1)
13 REPLIES 13
Ravi_8
Honored Contributor

Re: maxdsize and aCC


Hi,

Error exit code 138 :

stack overflow:
A floating-point expression caused a stack overflow on the 8087/287/387 coprocessor or the emulator. Stack-overflow floating-point exceptions are trapped up to a limit of seven levels in addition to the eight levels usually supported by the 8087/287/387 coprocessor. This error terminates the program with exit code 138.


Better log a call with HP.
never give up
Elmar P. Kolkman
Honored Contributor

Re: maxdsize and aCC

It seems Ravi posted in the wrong thread ;-)

Sending this to HP seems a good idea. Or try to generate your kernel with your previous version (vmunix.prev), since you were able to generate a kernel in that version.

Also: did you change kernel parameters using an editor or did you use SAM? It might be a parameter is outside the boudaries now, which means it cannot be compiled... But that is not possible if the parameter is changed with SAM.
Every problem has at least one solution. Only some solutions are harder to find.
Nitin kashyap
Occasional Advisor

Re: maxdsize and aCC

ok shall try that...
I made teh config changes through SAM, aswell as gave the command to make the kernel through the same.

Only later did i try to give the mk_kernel command from the command line too.
Jakes Louw
Trusted Contributor

Re: maxdsize and aCC

Hi

What are the values for maxssiz, maxtsiz, and maxdsiz?
Trying is the first step to failure - Homer Simpson
Ravi_8
Honored Contributor

Re: maxdsize and aCC

Hi, Nitin

is your machine running 32 bit or 64 bit

#getconf KERNEL_BITS

post the o/p
never give up
Nitin kashyap
Occasional Advisor

Re: maxdsize and aCC

its running 32 bit.. and the values are:

maxdsize: 0x4000000
maxswapchunks: 256
memswap_on: 1
swchunk: 2048
maxssize: 0x800000
maxtsize: 0x4000000

Do i have to close all the processes running on teh machine before attempting to build it??
Jakes Louw
Trusted Contributor

Re: maxdsize and aCC

Firstly:

Take maxdsiz back to default = 256 MB (x10000000)
Take maxssiz up to double default = 16 MB (x1000000)
and take maxtsiz back to default = 256 MB (x10000000)

HOWEVER: only make these changes if you have sufficient free swap (you shouldn't be using more than 50% swap now on average), or else if you are able to add swap, as these changes force an increase in swap usage due to swap space reservation based on the stack segment setting.
Trying is the first step to failure - Homer Simpson
Elmar P. Kolkman
Honored Contributor

Re: maxdsize and aCC

Have you checked memory usage around a compile? Failing memory allocations that are not checked might cause errors like this.
Every problem has at least one solution. Only some solutions are harder to find.
Jakes Louw
Trusted Contributor

Re: maxdsize and aCC

Failing malloc calls are usually due to 3 things:

1) Insufficient memory
2) Incorrect stack segment settings
3) Insufficient swap

All the indications here are that this is a process stack problem.

What is the history of this server? Is this a new install? Was it rebuilt? What was the last change prior to the problem? Did the server boot with all its main memory?
Trying is the first step to failure - Homer Simpson
Ravi_8
Honored Contributor

Re: maxdsize and aCC

Hi Nitin

problem looks interesting,

can you do this

#kmtune|grep maxdsiz

#kmtune -s maxdsiz=
#mk_kernel

post the o/p
never give up
Nitin kashyap
Occasional Advisor

Re: maxdsize and aCC

Ravi,
here is teh output

Value of TERM has been set to "ansi".
WARNING: YOU ARE SUPERUSER !!\n
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# kmtune|grep maxdsiz
maxdsiz 0x04000000
maxdsiz_64bit 0x0000000040000000
-bash-2.05b# kmtune -s maxdsiz=0x10000000
-bash-2.05b# mk_kernel
Compiling /stand/build/conf.c...
Loading the kernel...
Pid 7069 killed due to text modification or page I/O error
/sbin/sh: 7069 Bus error(coredump)
*** Error exit code 138

Stop.
config: make did an exit(1)
Ravi_8
Honored Contributor

Re: maxdsize and aCC

Hi,

could u copy /stand/system.prev to /stand/system and
#mk_kernel
never give up
Nitin kashyap
Occasional Advisor

Re: maxdsize and aCC

I would not like to do that lats step, because system.prev is dated 19th september, and after that we have made amny critical updates, including upgrade from aCC3.33 to acc 3.52

Further after the unsuccesful modification of the parameters through SAM, aswell as command line modifications through
kmtune -s =
i tried a reboot.
Now there rae new inconsistancies, while on the command line through
kmtune |grep i see the new modified values viz..
maxdsiz 0x40000000
maxssiz 0x1000000
maxswapchunks 768

sam still shows them at the old values viz..
maxdsiz 0x04000000
maxssiz 0x0800000
maxswapchunks 256

And the problems with aCC of saying "cannnot locate where... check your kernel parameters" continue.. :(