mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Andi Kleen <ak@muc.de>
Cc: Greg KH <greg@kroah.com>, Andi Kleen <ak@suse.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [3/3] Support piping into commands in /proc/sys/kernel/core_pattern
Date: Wed, 16 Aug 2006 11:10:25 -0700	[thread overview]
Message-ID: <20060816111025.1ab702a1.akpm@osdl.org> (raw)
In-Reply-To: <20060816111801.0fc5093e.ak@muc.de>

On Wed, 16 Aug 2006 11:18:01 +0200
Andi Kleen <ak@muc.de> wrote:

> > Very nice, do you happen to have a program that can accept this kind of
> > input for crash dumps?  I'm guessing that the embedded people will
> > really want this functionality.
> 
> I had a cheesy demo/prototype. Basically it wrote the dump to a file again,
> ran gdb on it to get a backtrace and wrote the summary to a shared directory.
> Then there was a simple CGI script to generate a "top 10" crashes
> HTML listing.
> 
> Unfortunately this still had the disadvantage to needing full disk space
> for a dump except for deleting it afterwards (in fact it was worse because 
> over the pipe holes didn't work so if you have a holey address map it would 
> require more space).
> 
> Fortunately gdb seems to be happy to handle /proc/pid/fd/xxx input pipes
> as cores (at least it worked with zsh's =(cat core) syntax), so it would be 
> likely possible to do it without temporary space with a simple wrapper that 
> calls it in the right way.  I ran out of time before doing that though.
> 
> The demo prototype scripts weren't very good. If there is really interest
> I can dig them out (they are currently on a laptop disk on the desk 
> with the laptop itself being in service), but I would recommend to 
> rewrite them for any  serious application of this and fix the disk space problem.
> 
> Also to be really useful it should probably find a way to automatically
> fetch the debuginfos (I cheated and just installed them in advance)
> 
> If nobody else does it I can probably do the rewrite myself again at some point.
> 
> My hope at some point was that desktops would support it in their
> builtin crash reporters, but at least the KDE people I talked
> too seemed to be happy with their user space only solution.

It doens't sounds like there's particularly strong userspace "pull" for
this feature?

  reply	other threads:[~2006-08-16 18:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20060814 127.183332000@suse.de>
2006-08-14 11:27 ` [PATCH] [1/3] Some cleanup in the pipe code Andi Kleen
2006-08-14 11:27 ` [PATCH] [2/3] Create call_usermodehelper_pipe() Andi Kleen
2006-08-15 21:22   ` Andrew Morton
2006-08-16  2:13     ` Andrew Morton
2006-08-16  7:22       ` Andi Kleen
2006-08-14 11:27 ` [PATCH] [3/3] Support piping into commands in /proc/sys/kernel/core_pattern Andi Kleen
2006-08-15  0:43   ` Andrew Morton
2006-08-15  6:04     ` Andi Kleen
2006-08-16  8:43   ` Greg KH
2006-08-16  9:18     ` Andi Kleen
2006-08-16 18:10       ` Andrew Morton [this message]
2006-08-17  9:46         ` Andi Kleen
2006-08-17 11:27           ` Alan Cox
2006-08-18  5:30             ` Andrew Morton
2006-08-18  8:29               ` Andi Kleen
2006-08-18 12:01                 ` Arjan van de Ven
2006-08-18 12:10                   ` Arjan van de Ven

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=20060816111025.1ab702a1.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=ak@muc.de \
    --cc=ak@suse.de \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®