This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fcore status


Phil,

I have checked in some part of my code. Now, it can dump PT_NOTE (but
only with prpsinfo struct). After I dumped one core file, I read it by
readelf and get some warning info at the end of the output:

the section header info:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] note              PROGBITS         0000000000000000  00000318
       0000000000000098  0000000000000000   A       0     0     1
......

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  NOTE          0x0000000000000000 0x0000000000000000 0x0000000000000000
                0x0000000000000098 0x0000000000000000         0
  LOAD          0x00000000000003b0 0x0000000000400000 0x0000000000000000
                0x0000000000000000 0x0000000000001000  R E    1

But at the end of output from readelf, there are some warning infor:

Notes at offset 0x00000000 with length 0x00000098:
  Owner         Data size       Description
readelf: Warning: corrupt note found at offset 0 into core notes
readelf: Warning:  type: 0, namesize: 464c457f, descsize: 00010102

The above "type", namesize and descsize are not equal to that I record
in prpsinfo struct! Although there are some warning info, I checked them
in in order that we both can start working on it. right? :-)

I will trace down the bug. If I could get some comments from you about
this, it will be appreciated very much.

2006-10-19  Yong Zheng  <zhengyo@cn.ibm.com>

	* frysk-core/frysk/util/FCore.java (fillENoteSection): New
	function to construct PT_NOTE section).
	(constructSectionData): New function to construct PT_NOTE data.
	(fillENotePrpsinfo): New function to fill elf_prpsinfo info.
	* frysk-imports/lib/elf/ElfNhdr.java: New file.
	* frysk-imports/lib/elf/ELfNhdrType.h: Ditto.
	* frysk-imports/lib/elf/ELfPrpsinfo.java: Ditto.
	* frysk-imports/lib/elf/cni/ELfNhdr.cxx: Ditto.
	* frysk-imports/lib/elf/cni/ELfPrpsinfo.cxx: Ditto.


Best regards
Yong Zheng


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]