|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi
I am having some kind of error on a solaris 2.8 machine running some obscure application which is creating a core file everytime i start up the application. I want to view wats in the core file. Does anyone have an idea of how to view a core file? Thx in advance. |
|
#2
|
|||
|
|||
|
not really easy, if the prog is not stripped, you can use adb a
long, long way ![]() a first step maybe: man truss |
|
#3
|
|||
|
|||
|
guggach is right - most production applications have been stripped.
Code:
truss mybadapp arg1 arg2 will display the system calls for you. But if you are getting a bus error or segmentation fault you are probably using a modern shared library which has calls that don't work the way they used to work. Try Code:
ldd mybadapp to see what libraries it expects to find. |
|
#4
|
|||
|
|||
|
Try -
$ strings core | pg will give you pages of output |
|
#5
|
|||
|
|||
|
NPRao
strings ???? just prints human readable strings, so in this case, useless. an other way to play with core is: od -c core hahahahaha ![]() ![]() ![]() |
|
#6
|
|||
|
|||
|
1) you need the source code and a compiler
2) compile using the '-g' option 3) get an appropriated debugger-tool 4) learn about using it 5) run the prog in debugger, set flags, stops .... easy! |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How do i view a core file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|