Mmmmm, one of our favorite future RFEs.  We currently don't store enough
information in the corefile to extract this information after the fact.
If you look at the implementation of pfiles(1), you'll see that it gets
most of its information from running the Agent LWP within the process.
Once the kernel state is torn down, we can no longer get this
information.

If you're using libc stdio, you may be able to find the associated FILE
pointers out of libc, but I'm not sure there's an effective way to do
this.

- Eric

On Tue, Jun 14, 2005 at 11:19:08AM -0700, Stefan Parvu wrote:
> Hey,
> 
> Is it possible to extract from a core dump (of a JVM) a list of all file 
> descriptors which were in use ? 
> 
> I'm looking to debug an application (Java based) and sometimes the JVM is 
> dying with a core dump. I would like to understand what was happening during 
> that time and read the information via mdb to get what files were open during 
> the crash.
> 
> Any ideas ? 
> Or this info is available only when you have a kernel dump of the entire 
> system ?
> 
> Thanks
> stefan
> This message posted from opensolaris.org
> _______________________________________________
> mdb-discuss mailing list
> mdb-discuss at opensolaris.org

--
Eric Schrock, Solaris Kernel Development.

Reply via email to