From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752985AbXDMCWe (ORCPT ); Thu, 12 Apr 2007 22:22:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752987AbXDMCWe (ORCPT ); Thu, 12 Apr 2007 22:22:34 -0400 Received: from ns.theshore.net ([67.18.92.50]:55695 "EHLO www.theshore.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752969AbXDMCWe (ORCPT ); Thu, 12 Apr 2007 22:22:34 -0400 Message-ID: <461EE95A.3090600@theshore.net> Date: Thu, 12 Apr 2007 22:22:18 -0400 From: "Christopher S. Aker" User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Andi Kleen CC: "Bill Rugolsky Jr." , Alan Cox , linux-kernel@vger.kernel.org Subject: Re: [Feature Request?] Inline compression of process core dumps References: <461E55C6.1030905@theshore.net> <20070412172845.58bfeff5@the-village.bc.nu> <20070412164251.GC11736@ti88.telemetry-investments.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Alan Cox wrote: > Indeed. So useful that in current kernels you can set the core dump > path to be > > "|application" Cool stuff! However, it's not working (2.6.20.6): Core dump to |/home/caker/bin/dumper.pl.4442 pipe failed even though... # cat /proc/sys/kernel/core_uses_pid 0 # cat /proc/sys/kernel/core_pattern |/home/caker/bin/dumper.pl Looking at the code, it seems to me that format_corename() is appending .pid, regardless if !core_uses_pid and corename[0]=='|', in which case it creates an invalid path for call_usermodehelper_pipe(). Bug in the code, or bug in my methods? -Chris