regarding core file generation in solaris:pls suggest some tips



Hi,

I have one application "app.exe", and it has many threads, that will
be running.
From the top command, I could see that the main process "app.exe", is
taking
a lot of CPU usage, and I am not sure which thread is causing this
problem, since
it is not showing the the thread that is hogging the cpu..

After some time, I could see my "app.exe" is crashing.., and I am not
able to see why it is crashed. I cannt start the "app.exe" with gdb as
I have other dependencies.

Also, when the app crashes, there is no core file, and I could see
that core dump settings are proper. Then manually I tried to generate
the core file using " gcore <pid of app.exe>
and, then use the core file to see with gdb.

However, since I am not aware where the app will crash, so, I could
not generate core at the moment of crashing..

Is there any way to :

1) see which thread is taking what percentage of cpu ?
2) core file when it crashes

thanks.
.



Relevant Pages

  • Re: regarding core file generation in solaris:pls suggest some tips
    ... it is not showing the the thread that is hogging the cpu.. ... Also, when the app crashes, there is no core file, and I could see ... that core dump settings are proper. ...
    (comp.unix.solaris)
  • Re: thanks and question
    ... Warcraft, I get random crashes, my specs are: ... about it now, becuase im still on Safe Fail Defualts lol, Video Card, ... Methinks, in your case, I'd run Memtest86+ for a few hours; ... Ran memtest and everything 2 times, checked hard drive, CPU Mobo, case ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
    ... When the system init daemon crashes, ... handler forks a child process, unmasking the signal in that child ... process with no signal handler installed. ... at least write out the core file beforehand. ...
    (Linux-Kernel)
  • Re: D7 program crashes on Win 2003
    ... the calculation of the CPU speed uses divisions and on very ... JVCL Developer ... > But, on win 2003 server, it crashes at startup.... ... executes OK on my xp laptop, ...
    (comp.lang.pascal.delphi.misc)
  • Re: recent -git: BUG in free_thread_xstate
    ... unable to handle kernel paging request at c0804358 ... 't' ('next' from schedule()) is ok in this case. ... So I guess, 'cpu' value is slightly, well, out of reality. ... crashes... ...
    (Linux-Kernel)