Alan Hargreaves' Blog

The ramblings of an Australian SaND TSC* Principal Field Technologist

Capturing the entire text segment in a corefile

Eric Schrock talks about corefiles in his blog. A few months back I wrote infodoc 72790 on how to use coreadm to capture the whole text segment within a corefile.

Usually when you get a core dump and you ask Sun to have a look at it, we will ask for a whole host of other things (e.g. all libraries that it liks with and the binary). Capturing teh text segment actually grabs all of this so we don’t need to ask for it; it is simply available.

This functionality is only available in Solaris 10 and is certainly going to make looking at corefiles substantially simpler.

Advertisements

Written by Alan

June 22, 2004 at 3:30 pm

Posted in Solaris Express

3 Responses

Subscribe to comments with RSS.

  1. It’s worth noting that nothing has to be done to configure coreadm(1m) to capture the text segment: that’s the default.

    Adam Leventhal

    June 23, 2004 at 12:20 am

  2. Does it also cature the symbol table?
    The text helps you inspect the machine code,
    but without knowing what function you’re in, does
    it help?

    Anonymous

    June 23, 2004 at 8:14 am

  3. It doesn’t capture the static symbol table by default (you can configure coreadm(1m) to include that in core files optionally), but it does include the dynamic symbol table by default. This actually happens for free since the dynamic symbol table is included in the text segment. The dynamic symbol table will include any functions that may be interposed upon.

    Adam Leventhal

    June 23, 2004 at 10:09 am


Comments are closed.

%d bloggers like this: