Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Segmentation fault(coredump) AIX

Status
Not open for further replies.

june54

Technical User
Jun 4, 2003
160
US
Hello

When I run " functions from the command line I get Segmentation fault(coredump) What is causing this ...

Thanks
 
Hi June54

there are tow ways to find out what makes the core dump as far as i knew.

1. # ls -l core

-rw-r--r-- 1 wzcj staff 552518815 Jan 16 10:18 core

2. #strings core |grep _=

_=/u2/wzcj/app/rtjf/bin/rprice_ticket

or

# lquerypv -h core 6b0 64

000006B0 7FFFFFFF FFFFFFFF 7FFFFFFF FFFFFFFF |................|

000006C0 00000000 000007D0 7FFFFFFF FFFFFFFF |................|

000006D0 00120000 418B6FC8 00000000 00000008 |....A.o.........|

000006E0 72707269 63655F74 69636B65 74000000 |rprice_ticket...|

000006F0 00000000 00000000 00000000 00000000 |................|

00000700 00000000 00000000 00000000 00000C1C |................|

00000710 00000000 00000039 00000000 00000C65 |.......9.......e|
 
what version of AIX do you use?

rs6000er solution will work on older AIX versions but as ever newer and better methods are available.

find the core with:-

find / -name core -print

find the offending command with:-

cd to dir of core & use

file core

this will tell you what caused the core

debug the core file with:-

dbx command_that_caused_core core

once in dbx enter where to find the cause

see man dbx or google for more info



Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top