Operating System - HP-UX
1832977 Members
2798 Online
110048 Solutions
New Discussion

core file generated by Medusa

 
SOLVED
Go to solution
Venkatesan_5
Frequent Advisor

core file generated by Medusa

Hi,

I need your help in diagnosing a problem, a core file has been generated by medusa. If I give

# file core
the output is ..
core: core file from 'medusa_job6712' - received SIGSEGV

what does this mean and how to address it..

Thanks in advance.

Venkatesan
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: core file generated by Medusa

Shalom,

The actual core file may be useful to the developer.

Take a quick look at it with strings command.

strings core | more

nice sounding command anyway.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steve Steel
Honored Contributor

Re: core file generated by Medusa

Hi


memory problem

increase maxssiz maxdsiz in kernel


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Venkatesan_5
Frequent Advisor

Re: core file generated by Medusa

Hi Steve,

Thanks for your idea, but I would like to know how do you say that these values has to be increased?, is there any special tools or methods available to diagnose?

regds

Venkatesan.
Muthukumar_5
Honored Contributor

Re: core file generated by Medusa

SIGSEGV will come in application when there is resource crunch on memory. You can get the maxssiz, maxdsiz kernel parameter informations with SAM tool or kmtune -q -l will give that.

--
Muthu
Easy to suggest when don't know about the problem!
Sameer_Nirmal
Honored Contributor
Solution

Re: core file generated by Medusa

Hi Venkatesan,

SIGSEGV is a signal 11 which means Segmentation Violation.

It may appear during a program compilation or while executing it. Common cause of this signal is lack of memory required by the program. The memory required is for program stack , data and text allocation.
These requirements could be know using "size" command.
The respective kernel parameters ( system limits) are maxtsize, maxssize, maxdsize or their 64bit eqivalent under 64 bit enviornment ( maxssize_64bit etc.)
Thus you can check those kernel parameters and tune them if required. It may not be problem with those paramters if the program is not written correctly to use memory space.

You can use a debugger like adb or WDB to debug the program by referncing the core file. The stack trace would be useful to track down the problem.
Muthukumar_5
Honored Contributor

Re: core file generated by Medusa

Monitor the memory information as,

# vmstat
# top
# UNIX95=1 ps -ef -o pid,sz,vsz,comm
# sam -> performance monitor -> system properties -> memory tab

They will give the memory available and usage statistics.

--
Muthu
Easy to suggest when don't know about the problem!
Venkatesan_5
Frequent Advisor

Re: core file generated by Medusa

Hi Sameer,

thank you for your explanation, may I know from where shall I get stack trace program or can I debug thru adb itself? if so how to do it, could you please explain me..


regds

Venkatesan.
Steve Steel
Honored Contributor

Re: core file generated by Medusa

Hi

ftp://eh:spear9@hprc.external.hp.com/memory.htm

Gives all the tools you need


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Muthukumar_5
Honored Contributor

Re: core file generated by Medusa

You can get stack trace as,

# what core
# gdb
gdb>bt

# adb
adb>$c

will give that.

--
Muthu
Easy to suggest when don't know about the problem!