public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Phil Muldoon <pmuldoon@redhat.com>
To: Frysk Hackers <frysk@sourceware.org>
Subject: fhpd user interaction (and corefiles)
Date: Fri, 02 Nov 2007 10:03:00 -0000	[thread overview]
Message-ID: <472AF5FE.2010900@redhat.com> (raw)

In fhpd, there are several scenarios where guessing a user's intentions 
with the data available becomes difficult. Right now the core file code 
makes the decision for you. This is wrong and I would like to change 
that. Consider the scenarios below.

No executable specified:

- The user specifies a corefile, but no executable. The code finds a 
named executable as described in the corefile in 'pwd', does it use it? 
Yes in the current code.
- The user specifies a corefile, but no executable. The code does not 
find a named executable as described in the corefile in 'pwd', but does 
in /usr/bin or /bin, does it use it? Yes in the current code.
- The user specifies a corefile, but no executable. The code does not 
find a named executable in either of the top two scenarios, and just 
builds basic metadata. Yes in the current code.

Executable specified:

- The user specifies a corefile, and an executable, but the executable 
name does not match the name that the corefile has on record, does it 
use this executable, warn the user, or abort? No, it blindly uses the 
executable.
- The user specifies a corefile, and an executable. Both match and the 
corefile code builds rich metadata. Yes in the current code.
- The user specifies a corefile, and an executable. Both match, but 
there are permission issues. How should the core continue here? Right 
now it ignores the executable and builds basic metadata.

One of the sticking points is the dead/LinuxHost.java code does not let 
the hpd/CoreCommand.java know what it is doing. In fact, unless it 
throws an exception in building the corefile metadata ,it does not 
communicate anything at all.  It is even further compounded by fstack 
where beyond current initial bootstrapping there is no bandwidth to ask 
the user anything.

 The question here then: if the LinuxHost code has a question for the 
user, how does it ask that user the question via CoreCommand? As far as 
I can tell, none of the fhpd commands are interactive.

Possible solutions:

- Do exactly as the user instructs. Abandon all attempts at executable 
auto-location. If the user does not specify an executable, no executable 
is loaded or searched for. Only basic meta data is built.
- Allow the user to specify data to the corefile via another command 
later. Like a file command which specifies an executable and allows the 
corefile code to reboot and rebuild itself at a later time.
- Continue with existing plan above, but allows callbacks and active 
user interaction with the fhpd
- Something else?

Regards

Phil

             reply	other threads:[~2007-11-02 10:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02 10:03 Phil Muldoon [this message]
2007-11-02 13:50 ` Andrew Cagney
2007-11-05  9:52   ` Phil Muldoon
2007-11-08 11:25     ` Phil Muldoon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=472AF5FE.2010900@redhat.com \
    --to=pmuldoon@redhat.com \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).