This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2243
  [tracker] fcore: standalone program for extracing a core file Last modified: 2008-01-28 02:22
     Query page      Enter new bug
Bug#: 2243   Hardware:   Reporter: Andrew Cagney <cagney@redhat.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: NEW   Priority:  
Resolution:   Severity:  
Assigned To: Phil Muldoon <pmuldoon@redhat.com>   Target Milestone:  
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2243 depends on: 3330 3370 3371 3373 3374 3388 3408 3481 3647 3650 3651 3667 3697 3703 3727 3752 3841 4004 4316 4679 4967 5095 5177 5211 5683 5773 5820 5967 Show dependency tree
Show dependency graph
Bug 2243 blocks: 1601

Additional Comments:


Leave as NEW 
Mark bug as waiting for feedback
Mark bug as suspended
Accept bug (change status to ASSIGNED)
Resolve bug, changing resolution to
Resolve bug, mark it as duplicate of bug #
Reassign bug to
Reassign bug to owner of selected component

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-01-31 17:39
fcore <pid>
Would like, all the other variants, extract a core file from a running process.

------- Additional Comment #1 From Wu Zhou 2006-09-28 15:48 -------
just like gcore does, right?  That is interesting.

------- Additional Comment #2 From Wu Zhou 2006-09-28 15:55 -------
*** Bug 3075 has been marked as a duplicate of this bug. ***

------- Additional Comment #3 From Phil Muldoon 2006-10-13 02:33 -------
2006-10-11  Phil Muldoon  <pmuldoon@redhat.com>
	
	* cni/Elf.cxx: (elf_begin): Check args to allow writing to
	elf files.
	(elf_get_last_error_msg): New.
	(elf_get_last_error_no): New.
	(elf_updatehdr): New.
	(elf_init_core_header): New. Temporary.
	(elf_updatephdr): New.
	
	* Elf.java (Elf): Add a boolean constructor switch
	for write/read.
	(updateEHeader): New. Write Elf header back to native
	structure.
	(initializeCoreHeader): Temporary. Convienience function.
	(updatePHeader): New. Write the program segment back to native
	structure.
	(getLastErrorMsg): New. Get the error message corresponding to
	entry below.
	(getLastErrorNo): New. Get the error number set if the last
	elf function failed.

2006-10-12  Phil Muldoon  <pmuldoon@redhat.com>
	
	* FCore.java: Added. Initial, experimental and incomplete utility to
	dump process core in frysk.

------- Additional Comment #4 From Phil Muldoon 2006-10-15 22:00 -------
2006-10-15  Phil Muldoon  <pmuldoon@redhat.com>
    
    * frysk/util/FCore.java (write_elf_file): Rewritten with these changes:
    - Build elf header manually with full complement of data.
    - Build string table section/section header and update to disk.
    - (Still) Ugly arch test hack.
    * frysk/util/FCore.java (FCore.MapsCounter): Renamed.
    * frysk/util/FCore.java (FCore.CoreMapsBuilder): Renamed.
    (buildMap):Rewritten with these changes:
    - build section headers
    - define section headers in concert with program headers.
    - build section from header, create contextual Elf_Data class, and
    byte copy maps data.



2006-10-15  Phil Muldoon  <pmuldoon@redhat.com>
    
    * Elf.java (getElfVersion): New function.
    (initializeCoreHeader): Remove. Deprecated.
    * ElfData.java (setBuffer): New function. Set elf buffer.
    (setType): New.
    (setSize): New.
    (setOffset): New.
    * ElfEHeader.java: Added Data, Class and Type constants.
    * ElfPHeader.java : Added Type constants.
    * ElfSection (update):  New Function. Update class
    back to native elf header.
    * ElfSectionHeader.java: Changed constructor access to public.
    * ElfSectionHeaderTypes.java : New.
    
    * cni/Elf.cxx (elf_init_core_header): Removed. Deprecated.
    * cni/ElfData.cxx (elf_data_set_buff): New function.
    (elf_data_set_type): Ditto.
    (elf_data_set_version): Ditto.
    (elf_data_set_size): Ditto.
    (elf_data_set_off): Ditto.
    (elf_data_set_align): Ditto.
    * cni/ElfSection.cxx:
    (ElfSection): Check if ehdr->e_shstrndx exists before
    attempting to calculate name from string table.
    (elf_updateshdr): New.

------- Additional Comment #5 From Andrew Cagney 2006-10-18 18:26 -------
Leave in new/assigned state until the command is mostly there, after that bug
can be SUSPENDED and additional problems hung off of this bug.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In