Bug 240552 - fcore dies with stack trace
Summary: fcore dies with stack trace
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: frysk
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Muldoon
QA Contact: Len DiMaggio
URL:
Whiteboard: bzcl34nup
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-18 13:03 UTC by Daniel Berrangé
Modified: 2008-04-07 18:08 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-04-07 18:08:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 4313 0 None None None Never

Description Daniel Berrangé 2007-05-18 13:03:44 UTC
Description of problem:
Try to take a core dump of any process & fcore will exit with a stack trace

Version-Release number of selected component (if applicable):
frysk-0.0.1.2007.03.13.rh1-1.fc7

How reproducible:
Always

Steps to Reproduce:
1. fcore `pgrep xfs`
2.
3.
  
Actual results:
Exception in thread "main" inua.eio.BufferUnderflowException
   at inua.eio.ByteBuffer.get(fcore)
   at frysk.util.CoredumpAction$CoreMapsBuilder.buildMap(fcore)
   at frysk.sys.proc.MapsBuilder.construct(fcore)
   at frysk.sys.proc.MapsBuilder.construct(fcore)
   at frysk.util.CoredumpAction.write_elf_file(fcore)
   at frysk.util.CoredumpAction.allExistingTasksCompleted(fcore)
   at frysk.proc.ProcBlockAction.checkFinish(fcore)
   at frysk.proc.ProcBlockAction.access$3(fcore)
   at frysk.proc.ProcBlockAction$1.execute(fcore)
   at frysk.event.EventLoop.runEventLoop(fcore)
   at frysk.event.EventLoop.run(fcore)
   at fcore.main(fcore)

And a zero length core file

Expected results:
A complete core file

Additional info:

Comment 1 Phil Muldoon 2007-05-18 13:21:58 UTC
Hi, and thanks for the bug report.

This is likely a another manifestation of:

http://sourceware.org/bugzilla/show_bug.cgi?id=4313

Where the address-space mapped in for 64 bit process in Frysk was short of the
full address-space of a process. On X86_64, the vDSO, which is a required and
non-elided segment for corefiles, is mapped right at the very end of the address
space. Due to this short mapping, buffer underflows were occurring on x86_64
corefiles.

This has been fixed upstream; I'll take another look at x86_64 to make sure
there is no regression. If not, this bug will be picked up on the next FC6 Frysk
refresh.

Comment 2 Bug Zapper 2008-04-04 00:46:39 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.


Note You need to log in before you can comment on or make changes to this bug.