Operating System - HP-UX
1834935 Members
2392 Online
110071 Solutions
New Discussion

Re: Why I am so easily getting core dump?

 
SOLVED
Go to solution
zhaogui
Super Advisor

Why I am so easily getting core dump?

I noticed that if I run "more .sh_history" I will easily get core dump, and if I run "xomni&", I will also get core file. Why?
here is my finding,
## file /core
/core: core file from 'xomni_manager' - received SIGSEGV

Thanks,
13 REPLIES 13
Steven Sim Kok Leong
Honored Contributor

Re: Why I am so easily getting core dump?

Hi,

Can you show us your kernel parameter values:

# kmtune

What is your maxdsiz?

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: Why I am so easily getting core dump?

Hi,

Also, what are you ulimit settings?

# ulimit

Hope this helps. Regards.

Steven Sim Kok Leong
zhaogui
Super Advisor

Re: Why I am so easily getting core dump?

please see the attachment for kmtune.txt
zhaogui
Super Advisor

Re: Why I am so easily getting core dump?

# ulimit
unlimited
Just curious, have you ever experienced my problem before?
Steven Sim Kok Leong
Honored Contributor

Re: Why I am so easily getting core dump?

Hi,

No, I have not encountered a scenerio whereby more .sh_history generates a core dump.

Have you made any changes before this occurred? Are these the only two instances that core-dumped? Does cat .sh_history also core-dump?

Hope this helps. Regards.

Steven Sim Kok Leong
Alex Glennie
Honored Contributor

Re: Why I am so easily getting core dump?

Perhaps we have 2 separate issues here ?

I'm aware the Xomni gui will often have problems when being displayed on PC X emulation packages - normally these are a direct result of the differences between the number of colours available on the PC and a native hp Xserver desktop.

If Xomni core dumps all the time and you are displaying it on a PC, try changing the number of colors to the PC's desktop to 256 so it resembles a native unix Xserver.

As to the .sh_history ....sorry not heard of anything like that before
zhaogui
Super Advisor

Re: Why I am so easily getting core dump?

For .sh_history, probably it is because there is binary data inside and it exits with memory fault(core dump). But it is ok when runing cat or strings file|more

For xomni, do you mean I have to reduce no of colors from High color(16bit) to 256? Why?
Is there any patch to fix it?
Alex Glennie
Honored Contributor

Re: Why I am so easily getting core dump?

Yes, can you give it a go ..... while you do I'll see if it has been fixed or if there is a work-around. Why ? - probably because the Motif Gui was designed to run on HP's (unix) Xservers not a 3rd party one's ....native unix Xservers only ever have 256 colors !
Alex Glennie
Honored Contributor
Solution

Re: Why I am so easily getting core dump?

Depending on the result of changing the colors on the PC ie if doing so prevents Xomni from core dumping : you may want to try this with more colors set on the PC :

vi $HOME/.Xdefaults
*enableEtchedInMenu: False
wq!

or .... use the option 'xomni -cde' to start your Xomni GUI.

Hope this helps ....



Steven Sim Kok Leong
Honored Contributor

Re: Why I am so easily getting core dump?

Hi Alex,

Can you help me out with my GCC depot swinstall problem as well?

Thanks in advance. Regards.

Steven Sim Kok Leong
Alex Glennie
Honored Contributor

Re: Why I am so easily getting core dump?

Steven,

If you still have problems let me know or drop me an email ..... but I see a rabbit has already popped his head out of a hat ... been away dealing with some UK Response Centre calls the last hour ....
Deepak Extross
Honored Contributor

Re: Why I am so easily getting core dump?

By the way, you may want to do something about your points-allocation track record:

This member has assigned points to 13 of 184 responses to his/her questions.
Steven Sim Kok Leong
Honored Contributor

Re: Why I am so easily getting core dump?

Hi Alex,

Yes, my problem has been solved. It was a silly mistake in /etc/hosts.

Thanks for offering to help. Regards.

Steven Sim Kok Leong